Compartilhar via


Switch.SetThumbIcon(Icon) Method

Definition

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

[Android.Runtime.Register("setThumbIcon", "(Landroid/graphics/drawable/Icon;)V", "GetSetThumbIcon_Landroid_graphics_drawable_Icon_Handler", ApiSince=31)]
public virtual void SetThumbIcon (Android.Graphics.Drawables.Icon? icon);
[<Android.Runtime.Register("setThumbIcon", "(Landroid/graphics/drawable/Icon;)V", "GetSetThumbIcon_Landroid_graphics_drawable_Icon_Handler", ApiSince=31)>]
abstract member SetThumbIcon : Android.Graphics.Drawables.Icon -> unit
override this.SetThumbIcon : Android.Graphics.Drawables.Icon -> unit

Parameters

icon
Icon

an Icon holding the desired thumb, or null to clear the thumb

Attributes

Remarks

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

Java documentation for android.widget.Switch.setThumbIcon(android.graphics.drawable.Icon).

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