OsmAnd
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Member Functions | Protected Member Functions | Package Attributes
net.osmand.plus.views.SeekBarPreference Class Reference

Inherits DialogPreference.

List of all members.

Public Member Functions

 SeekBarPreference (final Context context, final AttributeSet attrs)
int getMax ()
int getValue ()
void onProgressChanged (final SeekBar seek, final int value, final boolean fromTouch)
void onStartTrackingTouch (final SeekBar seek)
void onStopTrackingTouch (final SeekBar seek)
void setMax (final int max)
void setValue (final int value)

Protected Member Functions

void onBindDialogView (final View v)
View onCreateDialogView ()
void onDialogClosed (boolean positiveResult)
void onSetInitialValue (final boolean restore, final Object defaultValue)

Package Attributes

TextView valueTextView
final String valueText
int value
int valueToSave = 0

Detailed Description

A preference item that uses a seek-bar, or slider to set the value.

Author:
Jordan Frank <jordan.frank@cs.mcgill.ca>

Constructor & Destructor Documentation

net.osmand.plus.views.SeekBarPreference.SeekBarPreference ( final Context  context,
final AttributeSet  attrs 
)

Default constructor.

Parameters:
contextThe application context.
attrsThe attribute set, containing the text, title, values, and range for the slider dialog.

Member Function Documentation

void net.osmand.plus.views.SeekBarPreference.onDialogClosed ( boolean  positiveResult) [protected]
void net.osmand.plus.views.SeekBarPreference.onProgressChanged ( final SeekBar  seek,
final int  value,
final boolean  fromTouch 
)
void net.osmand.plus.views.SeekBarPreference.onSetInitialValue ( final boolean  restore,
final Object  defaultValue 
) [protected]

Member Data Documentation


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines