本文整理了Java中android.widget.CheckBox.setBackgroundResource()
方法的一些代码示例,展示了CheckBox.setBackgroundResource()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。CheckBox.setBackgroundResource()
方法的具体详情如下:
包路径:android.widget.CheckBox
类名称:CheckBox
方法名:setBackgroundResource
暂无
代码示例来源:origin: aa112901/remusic
@Override
public void setBackgroundResource(int resId) {
if (mBackgroundHelper != null) {
mBackgroundHelper.setBackgroundResId(resId);
} else {
super.setBackgroundResource(resId);
}
}
代码示例来源:origin: smuyyh/BookReader
stateResId = R.drawable.book_review_rating_bar_selector;
cb.setBackgroundResource(stateResId);
if (i + 1 <= countSelected) {
cb.setChecked(true);
代码示例来源:origin: GaoGersy/MultiSelecter
public void onNoChoice() {
if (mCheckBox != null) {
mCheckBox.setBackgroundResource(noChoiceBackgroundResource);
itemView.setOnClickListener(null);
}
}
代码示例来源:origin: GaoGersy/MultiSelecter
public void onNormal(T data) {
if (mCheckBox != null) {
mCheckBox.setBackgroundResource(normalBackgroundResource);
setClickListener(data);
}
}
代码示例来源:origin: GaoGersy/MultiSelecter
public void onSelected(T data) {
if (mCheckBox != null) {
mCheckBox.setBackgroundResource(normalBackgroundResource);
mCheckBox.setChecked(true);
data.setSelected(true);
if (mListener != null) {
mListener.onItemClick(itemView, data, true);
}
setClickListener(data);
}
}
代码示例来源:origin: whyalwaysmea/AndroidDemos
checkBox.setBackgroundResource(background.resourceId);
代码示例来源:origin: dalong982242260/FlowLayout
chk.setTextSize(TypedValue.COMPLEX_UNIT_SP, mTextSize);
if (mTextColor != null) chk.setTextColor(mTextColor);
chk.setBackgroundResource(mBackground);
chk.setTag(mChildList == null ? 0 : mChildList.size());
setUnChecked(chk);
内容来源于网络,如有侵权,请联系作者删除!