How to display some value on seekbar as default?

Adam picture Adam · Jan 10, 2012 · Viewed 47.7k times · Source

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.

Answer

mseo picture mseo · Jan 10, 2012

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