Google 致力于为黑人社区推动种族平等。查看具体举措

DropDownPreference

open class DropDownPreference : ListPreference
kotlin.Any
   ↳ androidx.preference.Preference
   ↳ androidx.preference.DialogPreference
   ↳ androidx.preference.ListPreference
   ↳ androidx.preference.DropDownPreference

A ListPreference that presents the options in a drop down menu rather than a dialog.

Summary

Inherited constants
Public constructors
<init>(context: Context!)

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

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

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

Public methods
open Unit

open Unit
setEntries(@NonNull entries: Array<CharSequence!>)

open Unit

Protected methods
open ArrayAdapter<Any!>!

By default, this class uses a simple ArrayAdapter.

open Unit

open Unit

Inherited functions