1

I'm trying to reset seekbar value to return to default one it starts with e.g zero value

my current view is here

needed view is here

I'm using seekBar.setProgress(0);

but not working well [as expected] any suggestion?

Notes:

  1. I set max value in runtime
  2. Seekbar is flipped 180 degrees that mean zero value is at right
Moustafa EL-Saghier
  • 1,721
  • 1
  • 13
  • 43

1 Answers1

0

add below attribute in seekbar elements(your xml layout)

android:max="100" 

then find seekbar view and use below code for second image

//or Instead of the above code  seekBar.setMax(100);
seekBar.setProgress(100);
amin mahmoudi
  • 630
  • 7
  • 26