public abstract class SeekBarPreference extends DialogPreference
| Modifier and Type | Field and Description |
|---|---|
protected int |
currentValue
|
protected int |
increment
|
protected int |
max
|
protected String |
messageText
|
protected int |
min
|
protected SharedPreferences |
preferences
|
| Constructor and Description |
|---|
SeekBarPreference(Context context, AttributeSet attrs)
|
| Modifier and Type | Method and Description |
|---|---|
protected abstract String |
getCurrentValueText(int progress)
Override this method to control the text below the seek bar.
|
void |
onClick(DialogInterface dialog, int which)
|
protected View |
onCreateDialogView()
|
void |
onProgressChanged(SeekBar seekBar, int progress, boolean fromUser)
|
void |
onStartTrackingTouch(SeekBar seekBar)
|
void |
onStopTrackingTouch(SeekBar seekBar)
|
protected StringmessageText
protected int min
protected int max
protected int increment
protected final SharedPreferences preferences
protected int currentValue
public void onClick(DialogInterface dialog,
int which)public void onProgressChanged(SeekBar seekBar,
int progress,
boolean fromUser)public void onStartTrackingTouch(SeekBar seekBar)
public void onStopTrackingTouch(SeekBar seekBar)
protected View onCreateDialogView()
protected abstract StringgetCurrentValueText(int progress)
progress - the current value of the seek bar.