本文整理了Java中android.widget.CheckBox.setSelected()
方法的一些代码示例,展示了CheckBox.setSelected()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。CheckBox.setSelected()
方法的具体详情如下:
包路径:android.widget.CheckBox
类名称:CheckBox
方法名:setSelected
暂无
代码示例来源:origin: AriesHoo/UIWidget
@Override
public void setSelected(boolean selected) {
super.setSelected(selected);
if (delegate != null)
delegate.setSelected(selected);
}
代码示例来源:origin: WangDaYeeeeee/Mysplash
@Override
public void onRequestACollectionSuccess(Call<Collection> call, Response<Collection> response) {
if (response.isSuccessful() && response.body() != null) {
AuthManager.getInstance().getCollectionsManager().addCollectionToFirst(response.body());
adapter.notifyItemInserted(1);
setState(SHOW_COLLECTIONS_STATE);
nameTxt.setText("");
descriptionTxt.setText("");
checkBox.setSelected(false);
if (listener != null) {
listener.onAddCollection(response.body());
}
} else {
setState(INPUT_COLLECTION_STATE);
notifyCreateFailed();
}
}
代码示例来源:origin: stackoverflow.com
id_check=(CheckBox) v.findViewById(R.id.check_familyview);
id_check.setSelected(false);
if(selectedlist.contains(""+getFamilyId(position))){
id_check.setSelected(true);
内容来源于网络,如有侵权,请联系作者删除!