Skip to content

Most visited

Recently visited

navigation
Added in API level 1

SeekBar.OnSeekBarChangeListener

public static interface SeekBar.OnSeekBarChangeListener

android.widget.SeekBar.OnSeekBarChangeListener


A callback that notifies clients when the progress level has been changed. This includes changes that were initiated by the user through a touch gesture or arrow key/trackball as well as changes that were initiated programmatically.

Summary

Public methods

abstract void onProgressChanged(SeekBar seekBar, int progress, boolean fromUser)

Notification that the progress level has changed.

abstract void onStartTrackingTouch(SeekBar seekBar)

Notification that the user has started a touch gesture.

abstract void onStopTrackingTouch(SeekBar seekBar)

Notification that the user has finished a touch gesture.

Public methods

onProgressChanged

Added in API level 1
void onProgressChanged (SeekBar seekBar, 
                int progress, 
                boolean fromUser)

Notification that the progress level has changed. Clients can use the fromUser parameter to distinguish user-initiated changes from those that occurred programmatically.

Parameters
seekBar SeekBar: The SeekBar whose progress has changed
progress int: The current progress level. This will be in the range 0..max where max was set by setMax(int). (The default value for max is 100.)
fromUser boolean: True if the progress change was initiated by the user.

onStartTrackingTouch

Added in API level 1
void onStartTrackingTouch (SeekBar seekBar)

Notification that the user has started a touch gesture. Clients may want to use this to disable advancing the seekbar.

Parameters
seekBar SeekBar: The SeekBar in which the touch gesture began

onStopTrackingTouch

Added in API level 1
void onStopTrackingTouch (SeekBar seekBar)

Notification that the user has finished a touch gesture. Clients may want to use this to re-enable advancing the seekbar.

Parameters
seekBar SeekBar: The SeekBar in which the touch gesture began
This site uses cookies to store your preferences for site-specific language and display options.

Hooray!

This class requires API level or higher

This doc is hidden because your selected API level for the documentation is . You can change the documentation API level with the selector above the left navigation.

For more information about specifying the API level your app requires, read Supporting Different Platform Versions.