Build 1.0_r1(from source)

android.preference
Class VolumePreference

java.lang.Object
  extended by android.preference.Preference
      extended by android.preference.DialogPreference
          extended by android.preference.SeekBarPreference
              extended by android.preference.VolumePreference
All Implemented Interfaces:
DialogInterface.OnClickListener, DialogInterface.OnDismissListener, OnDependencyChangeListener, PreferenceManager.OnActivityDestroyListener, PreferenceManager.OnActivityStopListener, SeekBar.OnSeekBarChangeListener, Comparable<Preference>, Runnable

public class VolumePreference
extends SeekBarPreference
implements SeekBar.OnSeekBarChangeListener, Runnable, PreferenceManager.OnActivityStopListener


Nested Class Summary
 
Nested classes/interfaces inherited from class android.preference.Preference
Preference.BaseSavedState, Preference.OnPreferenceChangeInternalListener, Preference.OnPreferenceChangeListener, Preference.OnPreferenceClickListener
 
Field Summary
 
Fields inherited from class android.preference.Preference
DEFAULT_ORDER
 
Constructor Summary
VolumePreference(Context context, AttributeSet attrs)
           
 
Method Summary
 void onActivityStop()
          See Activity's onStop.
protected  void onBindDialogView(View view)
          Binds views in the content View of the dialog to data.
protected  void onDialogClosed(boolean positiveResult)
          Called when the dialog is dismissed and should be used to save data to the SharedPreferences.
 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.
 void run()
          Begin doing the active part of the class' code.
 
Methods inherited from class android.preference.SeekBarPreference
getSeekBar
 
Methods inherited from class android.preference.DialogPreference
getDialogIcon, getDialogLayoutResource, getDialogMessage, getDialogTitle, getNegativeButtonText, getPositiveButtonText, onActivityDestroy, onClick, onClick, onCreateDialogView, onDismiss, onPrepareDialogBuilder, onRestoreInstanceState, onSaveInstanceState, setDialogIcon, setDialogIcon, setDialogLayoutResource, setDialogMessage, setDialogMessage, setDialogTitle, setDialogTitle, setNegativeButtonText, setNegativeButtonText, setPositiveButtonText, setPositiveButtonText, showDialog
 
Methods inherited from class android.preference.Preference
callChangeListener, compareTo, dispatchRestoreInstanceState, dispatchSaveInstanceState, findPreferenceInHierarchy, getContext, getDependency, getEditor, getFilterableStringBuilder, getId, getIntent, getKey, getLayoutResource, getOnPreferenceChangeListener, getOnPreferenceClickListener, getOrder, getPersistedBoolean, getPersistedFloat, getPersistedInt, getPersistedLong, getPersistedString, getPreferenceManager, getSharedPreferences, getShouldDisableView, getSummary, getTitle, getView, getWidgetLayoutResource, hasKey, hasSpecifiedLayout, isEnabled, isPersistent, isSelectable, notifyChanged, notifyDependencyChange, notifyHierarchyChanged, onAttachedToActivity, onAttachedToHierarchy, onBindView, onCreateView, onDependencyChanged, onGetDefaultValue, onPrepareForRemoval, onSetInitialValue, performClick, persistBoolean, persistFloat, persistInt, persistLong, persistString, requireKey, restoreHierarchyState, saveHierarchyState, setDefaultValue, setDependency, setEnabled, setIntent, setKey, setLayoutResource, setOnPreferenceChangeInternalListener, setOnPreferenceChangeListener, setOnPreferenceClickListener, setOrder, setPersistent, setSelectable, setShouldDisableView, setSummary, setSummary, setTitle, setTitle, setWidgetLayoutResource, shouldCommit, shouldDisableDependents, shouldPersist, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

VolumePreference

public VolumePreference(Context context,
                        AttributeSet attrs)
Method Detail

onBindDialogView

protected void onBindDialogView(View view)
Description copied from class: DialogPreference
Binds views in the content View of the dialog to data.

Make sure to call through to the superclass implementation.

Overrides:
onBindDialogView in class SeekBarPreference
Parameters:
view - The content View of the dialog, if it is custom.

onDialogClosed

protected void onDialogClosed(boolean positiveResult)
Description copied from class: DialogPreference
Called when the dialog is dismissed and should be used to save data to the SharedPreferences.

Overrides:
onDialogClosed in class DialogPreference
Parameters:
positiveResult - Whether the positive button was clicked (true), or the negative button was clicked or the dialog was canceled (false).

onActivityStop

public void onActivityStop()
Description copied from interface: PreferenceManager.OnActivityStopListener
See Activity's onStop.

Specified by:
onActivityStop in interface PreferenceManager.OnActivityStopListener

onProgressChanged

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

Specified by:
onProgressChanged in interface SeekBar.OnSeekBarChangeListener
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

public void onStartTrackingTouch(SeekBar seekBar)
Description copied from interface: SeekBar.OnSeekBarChangeListener
Notification that the user has started a touch gesture. Clients may want to use this to disable advancing the seekbar.

Specified by:
onStartTrackingTouch in interface SeekBar.OnSeekBarChangeListener
Parameters:
seekBar - The SeekBar in which the touch gesture began

onStopTrackingTouch

public void onStopTrackingTouch(SeekBar seekBar)
Description copied from interface: SeekBar.OnSeekBarChangeListener
Notification that the user has finished a touch gesture. Clients may want to use this to re-enable advancing the seekbar.

Specified by:
onStopTrackingTouch in interface SeekBar.OnSeekBarChangeListener
Parameters:
seekBar - The SeekBar in which the touch gesture began

run

public void run()
Description copied from interface: Runnable
Begin doing the active part of the class' code.

Specified by:
run in interface Runnable

Build 1.0_r1(from source)

Please submit a feedback, bug or feature