CompoundButton.SetButtonIcon(Icon) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
將這個 CompoundButton 的按鈕設為指定的圖示。
[Android.Runtime.Register("setButtonIcon", "(Landroid/graphics/drawable/Icon;)V", "GetSetButtonIcon_Landroid_graphics_drawable_Icon_Handler", ApiSince=31)]
public virtual void SetButtonIcon(Android.Graphics.Drawables.Icon? icon);
[<Android.Runtime.Register("setButtonIcon", "(Landroid/graphics/drawable/Icon;)V", "GetSetButtonIcon_Landroid_graphics_drawable_Icon_Handler", ApiSince=31)>]
abstract member SetButtonIcon : Android.Graphics.Drawables.Icon -> unit
override this.SetButtonIcon : Android.Graphics.Drawables.Icon -> unit
參數
- icon
- Icon
圖示長按目標按鈕,或 null 用來清除按鈕
- 屬性
備註
將這個 CompoundButton 的按鈕設為指定的圖示。
Java 文件 android.widget.CompoundButton.setButtonIcon(android.graphics.drawable.Icon)。
本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。