How to display some value on seekbar as default?
问题 I have a seekbar for example: from 0 to 10. How can I make if I want to set seekbar to 5 as default position. So in this example seekbar should start from middle. 回答1: Use this one android:progress="5" Like "progress", it inherits some of it's attributes from ProgressBar. You find all the attributes at http://developer.android.com/reference/android/widget/SeekBar.html 回答2: To get Seekbar at the value of 5 In the xml layout use the max value as 10 android:max="10" In the java for seekbar to