2011-11-11 20 views
1

私はデフォルトで極端な左隅に極端な右隅にアンドロイドでシークバーの親指を配置したいですか?可能ですか? XMLでAndroid Seekbar Thumbの位置

:yes.youはこれを試すことができ

答えて

6

<SeekBar android:id="@+id/seek" 
     android:layout_width="fill_parent" 
     android:layout_height="90dip" 
     android:max="80" 
     android:progress="80"  
     /> 

また、プログラム的に、あなたはそれを設定することができます。

SeekBar sb=(SeekBar)findViewById(R.id.seek); 
sb.setProgress(80); //you must set your maximum progress here,which you specified in your xml