Class SeekBarPreference



  • public abstract class SeekBarPreference
    extends DialogPreference
    A base class for creating seek bar preferences.
    • Field Detail

      • messageText

        protected String messageText
      • min

        protected int min
      • max

        protected int max
      • increment

        protected int increment
      • preferences

        protected final SharedPreferences preferences
      • currentValue

        protected int currentValue
    • Constructor Detail

      • SeekBarPreference

        public SeekBarPreference(Context context,
                                 AttributeSet attrs)
    • Method Detail

      • onClick

        public void onClick(DialogInterface dialog,
                            int which)
      • onProgressChanged

        public void onProgressChanged(SeekBar seekBar,
                                      int progress,
                                      boolean fromUser)
      • onStartTrackingTouch

        public void onStartTrackingTouch(SeekBar seekBar)
      • onStopTrackingTouch

        public void onStopTrackingTouch(SeekBar seekBar)
      • onCreateDialogView

        protected View onCreateDialogView()
      • getCurrentValueText

        protected abstract String getCurrentValueText(int progress)
        Override this method to control the text below the seek bar.
        Parameters:
        progress - the current value of the seek bar.
        Returns:
        the text to display.