SwitchPreference.SetSwitchTextOn(Int32) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.