SeekBarPreference

(SESL variant) Preference based on android.preference.SeekBarPreference but uses support preference as a base . It contains a title and a SeslSeekBar The actual preference layout is customizable by setting android:layout on the preference widget layout or seekBarPreferenceStyle attribute.

The SeslSeekBar within the preference can be defined adjustable or not by setting adjustable attribute. If adjustable, the preference will be responsive to DPAD left/right keys. Otherwise, it skips those keys.

Other SeslSeekBar specific attributes (e.g. title, summary, defaultValue, min, max) can be set directly on the preference widget layout.

Constructors

Link copied to clipboard
constructor(@NonNull context: Context, @Nullable attrs: AttributeSet, defStyleAttr: Int, defStyleRes: Int)
constructor(@NonNull context: Context, @Nullable attrs: AttributeSet, defStyleAttr: Int)
constructor(@NonNull context: Context, @Nullable attrs: AttributeSet)
constructor(@NonNull context: Context)

Types

Functions

Link copied to clipboard
open fun getMax(): Int
Gets the upper bound set on the SeslSeekBar.
Link copied to clipboard
open fun getMin(): Int
Gets the lower bound set on the SeslSeekBar.
Link copied to clipboard
Link copied to clipboard
Returns the amount of increment change via each arrow key click.
Link copied to clipboard
Gets whether the current SeslSeekBar value is displayed to the user.
Link copied to clipboard
Gets whether the SeekBarPreference should continuously save the SeslSeekBar value while it is being dragged.
Link copied to clipboard
open fun getValue(): Int
Gets the current progress of the SeslSeekBar.
Link copied to clipboard
open fun isAdjustable(): Boolean
Gets whether the SeslSeekBar should respond to the left/right keys.
Link copied to clipboard
Binds the created View to the data for this preference.
Link copied to clipboard
open fun setAdjustable(adjustable: Boolean)
Sets whether the SeslSeekBar should respond to the left/right keys.
Link copied to clipboard
fun setMax(max: Int)
Sets the upper bound on the SeslSeekBar.
Link copied to clipboard
open fun setMin(min: Int)
Sets the lower bound on the SeslSeekBar.
Link copied to clipboard
fun setSeekBarIncrement(seekBarIncrement: Int)
Sets the increment amount on the SeslSeekBar for each arrow key press.
Link copied to clipboard
open fun setShowSeekBarValue(showSeekBarValue: Boolean)
Sets whether the current SeslSeekBar value is displayed to the user.
Link copied to clipboard
open fun setUpdatesContinuously(updatesContinuously: Boolean)
Sets whether the SeekBarPreference should continuously save the SeslSeekBar value while it is being dragged.
Link copied to clipboard
open fun setValue(seekBarValue: Int)
Sets the current progress of the SeslSeekBar.