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

如果选中按钮,则为 false 以取消选中它。

属性

注解

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

本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。

适用于