ListPreference.SetEntryValues Method

Definition

Overloads

SetEntryValues(ICharSequence[])

The array to find the value to save for a preference when an entry from entries is selected.

SetEntryValues(Int32)
SetEntryValues(String[])

The array to find the value to save for a preference when an entry from entries is selected.

SetEntryValues(ICharSequence[])

The array to find the value to save for a preference when an entry from entries is selected.

[Android.Runtime.Register("setEntryValues", "([Ljava/lang/CharSequence;)V", "GetSetEntryValues_arrayLjava_lang_CharSequence_Handler")]
public virtual void SetEntryValues (Java.Lang.ICharSequence[]? entryValues);
[<Android.Runtime.Register("setEntryValues", "([Ljava/lang/CharSequence;)V", "GetSetEntryValues_arrayLjava_lang_CharSequence_Handler")>]
abstract member SetEntryValues : Java.Lang.ICharSequence[] -> unit
override this.SetEntryValues : Java.Lang.ICharSequence[] -> unit

Parameters

entryValues
ICharSequence[]

The array to be used as values to save for the preference.

Attributes

Remarks

The array to find the value to save for a preference when an entry from entries is selected. If a user clicks on the second item in entries, the second item in this array will be saved to the preference.

Java documentation for android.preference.ListPreference.setEntryValues(java.lang.CharSequence[]).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to

SetEntryValues(Int32)

[Android.Runtime.Register("setEntryValues", "(I)V", "GetSetEntryValues_IHandler")]
public virtual void SetEntryValues (int entryValuesResId);
[<Android.Runtime.Register("setEntryValues", "(I)V", "GetSetEntryValues_IHandler")>]
abstract member SetEntryValues : int -> unit
override this.SetEntryValues : int -> unit

Parameters

entryValuesResId
Int32

The entry values array as a resource.

Attributes

Remarks

Java documentation for android.preference.ListPreference.setEntryValues(int).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

See also

Applies to

SetEntryValues(String[])

The array to find the value to save for a preference when an entry from entries is selected.

public void SetEntryValues (string[]? entryValues);
member this.SetEntryValues : string[] -> unit

Parameters

entryValues
String[]

The array to be used as values to save for the preference.

Remarks

The array to find the value to save for a preference when an entry from entries is selected. If a user clicks on the second item in entries, the second item in this array will be saved to the preference.

Java documentation for android.preference.ListPreference.setEntryValues(java.lang.CharSequence[]).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to