語言

RemoteViews.SetCompoundButtonChecked(Int32, Boolean) 方法

定義

等同於呼叫 android.widget.CompoundButton#setChecked(boolean)

[Android.Runtime.Register("setCompoundButtonChecked", "(IZ)V", "GetSetCompoundButtonChecked_IZHandler", ApiSince=31)]
public virtual void SetCompoundButtonChecked(int viewId, bool checked);
[<Android.Runtime.Register("setCompoundButtonChecked", "(IZ)V", "GetSetCompoundButtonChecked_IZHandler", ApiSince=31)>]
abstract member SetCompoundButtonChecked : int * bool -> unit
override this.SetCompoundButtonChecked : int * bool -> unit

參數

viewId
Int32

要設定屬性的視圖的 ID。

checked
Boolean

true是檢查按鈕,false是取消勾選。

屬性

備註

Java 文件 android.widget.RemoteViews.setCompoundButtonChecked(int, boolean)

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

適用於