Partager via


SwitchPreference.SetSwitchTextOff(Int32) Method

Definition

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

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

Parameters

resId
Int32

The text as a string resource ID

Attributes

Remarks

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

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