Build 1.0_r1(from source)

android.widget
Interface SeekBar.OnSeekBarChangeListener

All Known Implementing Classes:
VolumePreference
Enclosing class:
SeekBar

public static interface 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 as well as changes that were initiated programmatically.


Method Summary
 void onProgressChanged(SeekBar seekBar, int progress, boolean fromTouch)
          Notification that the progress level has changed.
 void onStartTrackingTouch(SeekBar seekBar)
          Notification that the user has started a touch gesture.
 void onStopTrackingTouch(SeekBar seekBar)
          Notification that the user has finished a touch gesture.
 

Method Detail

onProgressChanged

void onProgressChanged(SeekBar seekBar,
                       int progress,
                       boolean fromTouch)
Notification that the progress level has changed. Clients can use the fromTouch parameter to distinguish user-initiated changes from those that occurred programmatically.

Parameters:
seekBar - The SeekBar whose progress has changed
progress - The current progress level. This will be in the range 0..max where max was set by ProgressBar.setMax(int). (The default value for max is 100.)
fromTouch - True if the progress change was initiated by a user's touch gesture.

onStartTrackingTouch

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 - The SeekBar in which the touch gesture began

onStopTrackingTouch

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 - The SeekBar in which the touch gesture began

Build 1.0_r1(from source)

Please submit a feedback, bug or feature