RemoteViews.SetCompoundButtonChecked(Int32, Boolean) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
等效于调用 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)。
本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。