Google se compromete a impulsar la igualdad racial para las comunidades afrodescendientes. Obtén información al respecto.

SeekBarPreference

open class SeekBarPreference : Preference
kotlin.Any
   ↳ androidx.preference.Preference
   ↳ androidx.preference.SeekBarPreference

Preference based on android.preference.SeekBarPreference but uses support preference as a base . It contains a title and a SeekBar and an optional SeekBar value TextView. The actual preference layout is customizable by setting android:layout on the preference widget layout or seekBarPreferenceStyle attribute.

The SeekBar 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.

The SeekBar value view can be shown or disabled by setting showSeekBarValue attribute to true or false, respectively.

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

Summary

Inherited constants
Public constructors
<init>(context: Context!, attrs: AttributeSet!, defStyleAttr: Int, defStyleRes: Int)

<init>(context: Context!, attrs: AttributeSet!, defStyleAttr: Int)

<init>(context: Context!, attrs: AttributeSet!)

<init>(context: Context!)

Public methods
open Int

Gets the upper bound set on the SeekBar.

open Int

Gets the lower bound set on the SeekBar.

Int

Returns the amount of increment change via each arrow key click.

open Boolean

Gets whether the current SeekBar value is displayed to the user.

open Boolean

Gets whether the SeekBarPreference should continuously save the SeekBar value while it is being dragged.

open Int

Gets the current progress of the SeekBar.

open Boolean

Gets whether the SeekBar should respond to the left/right keys.

open Unit

open Unit
setAdjustable(adjustable: Boolean)

Sets whether the SeekBar should respond to the left/right keys.

Unit
setMax(max: Int)

Sets the upper bound on the SeekBar.

open Unit
setMin(min: Int)

Sets the lower bound on the SeekBar.

Unit
setSeekBarIncrement(seekBarIncrement: Int)

Sets the increment amount on the SeekBar for each arrow key press.

open Unit
setShowSeekBarValue(showSeekBarValue: Boolean)

Sets whether the current SeekBar value is displayed to the user.

open Unit
setUpdatesContinuously(updatesContinuously: Boolean)

Sets whether the SeekBarPreference should continuously save the SeekBar value while it is being dragged.

open Unit
setValue(seekBarValue: Int)

Sets the current progress of the SeekBar.

Protected methods
open Any!

open Unit

open Parcelable!

open Unit
onSetInitialValue(defaultValue: Any?)

Inherited functions