Udostępnij za pośrednictwem


SwitchPreference.SetSwitchTextOn(Int32) Method

Definition

Set the text displayed on the switch widget in the on state.

[Android.Runtime.Register("setSwitchTextOn", "(I)V", "GetSetSwitchTextOn_IHandler")]
public virtual void SetSwitchTextOn (int resId);
[<Android.Runtime.Register("setSwitchTextOn", "(I)V", "GetSetSwitchTextOn_IHandler")>]
abstract member SetSwitchTextOn : int -> unit
override this.SetSwitchTextOn : int -> unit

Parameters

resId
Int32

The text as a string resource ID

Attributes

Remarks

Set the text displayed on the switch widget in the on state. This should be a very short string; one word if possible.

Java documentation for android.preference.SwitchPreference.setSwitchTextOn(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.

Applies to