Android
android.widget
public static interface

android.widget.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 as well as changes that were initiated programmatically.

Summary

Public Methods

          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.

Details

Public Methods

public 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 setMax(int). (The default value for max is 100.)
fromTouch True if the progress change was initiated by a user's touch gesture.

public 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

public 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
Copyright 2007 Google Inc. Build 0.9_r1-98467 - 14 Aug 2008 18:56