2011-11-11 106 views

回答

6

yes.you可以试试这个:

在XML

:也

<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