Udostępnij za pośrednictwem


Switch.SetThumbResource(Int32) Method

Definition

Set the drawable used for the switch "thumb" - the piece that the user can physically touch and drag along the track.

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

Parameters

resId
Int32

Resource ID of a thumb drawable

Attributes

Remarks

Set the drawable used for the switch "thumb" - the piece that the user can physically touch and drag along the track.

Java documentation for android.widget.Switch.setThumbResource(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