sesl.androidx
Toggle table of contents
main
Platform filter
main
Switch theme
Search in API
sesl.androidx
preference
/
androidx.preference
/
DropDownPreference
Drop
Down
Preference
open
class
DropDownPreference
:
ListPreference
(
source
)
(SESL variant) A
ListPreference
that presents the options in a drop down menu rather than a dialog.
Members
Constructors
Drop
Down
Preference
Link copied to clipboard
constructor
(
@
NonNull
context
:
Context
)
constructor
(
@
NonNull
context
:
Context
,
@
Nullable
attrs
:
AttributeSet
)
constructor
(
@
NonNull
context
:
Context
,
@
Nullable
attrs
:
AttributeSet
,
defStyle
:
Int
)
constructor
(
@
NonNull
context
:
Context
,
@
Nullable
attrs
:
AttributeSet
,
defStyleAttr
:
Int
,
defStyleRes
:
Int
)
Functions
on
Bind
View
Holder
Link copied to clipboard
open
fun
onBindViewHolder
(
@
NonNull
holder
:
PreferenceViewHolder
)
Binds the created View to the data for this preference.
sesl
Get
Spinner
Link copied to clipboard
open
fun
seslGetSpinner
(
)
:
AppCompatSpinner
set
Entries
Link copied to clipboard
open
fun
setEntries
(
@
NonNull
entries
:
Array
<
CharSequence
>
)
Sets the human-readable entries to be shown in the list.
set
Value
Index
Link copied to clipboard
open
fun
setValueIndex
(
index
:
Int
)
Sets the value to the given index from the entry values.