2011-11-11 43 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