語言

Switch.SetThumbIcon(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

參數

icon
Icon

一個手持目標拇指或 null 清空拇指的圖示

屬性

備註

將用於開關「拇指」的繪製圖示設定為指定圖示。

Java 文件 android.widget.Switch.setThumbIcon(android.graphics.drawable.Icon)。

本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。

適用於