I'm new to android development ,
I use onProgressChanged
to get current progress as progress is a parameter of the function .
but I want to get only the final value of progress when user release the seekbar
not the Immediate value.
Thanks in advance.
Step1: Create a new project. After that, you will have java and XML file. Step2: Open your xml file and add a SeekBar and TextView for message as shown below, max attribute in SeekBar define the maximum it can take. Assign ID to SeekBar And TextView.
In Android, SeekBar is an extension of ProgressBar that adds a draggable thumb, a user can touch the thumb and drag left or right to set the value for current progress.
The onStopTrackTouch
method defined in OnSeekBarChangeListener
is called when the user stops sliding the SeekBar
(i.e., has finished the touch gesture) and provides the "final value".
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With