本文整理了Java中android.widget.CheckBox.setFocusable()
方法的一些代码示例,展示了CheckBox.setFocusable()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。CheckBox.setFocusable()
方法的具体详情如下:
包路径:android.widget.CheckBox
类名称:CheckBox
方法名:setFocusable
暂无
代码示例来源:origin: stackoverflow.com
cb.setChecked(false); // Initialize
cb.setTag(groupPosition + "," + childPosition);
cb.setFocusable(false); // To make the whole row selectable
cb.setOnCheckedChangeListener(new OnCheckedChangeListener() {
public void onCheckedChanged(CompoundButton buttonView, boolean isChecked) {
代码示例来源:origin: tcoxon/XkcdViewer
cb.setFocusable(false);
cb.setFocusableInTouchMode(false);
cb.setOnCheckedChangeListener(new OnCheckedChangeListener() {
代码示例来源:origin: lltvcn/FreeText
ck.setChecked(false);
ck.setClickable(false);
ck.setFocusable(false);
itemView.setOnClickListener(new View.OnClickListener() {
@Override
代码示例来源:origin: casific/murmur
@Override
public void bindView(View view, Context context, Cursor cursor) {
viewHolder = (ViewHolder) view.getTag();
boolean addedViaPhone = cursor.getInt(addedVia_colIndex) == FriendStore.ADDED_VIA_PHONE;
if(viewHolder.mCheckBox != null){
viewHolder.mCheckBox.setChecked(cursor.getInt(checked_colIndex) == FriendStore.TRUE);
viewHolder.mCheckBox.setFocusable(false);
}
viewHolder.mIconView.setImageResource(addedViaPhone ? R.drawable.ic_phonebook_dark : R.drawable.ic_qr_dark);
setHashtagLinks(viewHolder.mNameView, cursor.getString(name_colIndex));
char currentIndex = cursor.getString(name_colIndex).toUpperCase().charAt(0);
char prevIndex = '^';
char nextIndex = '^';
if(cursor.getPosition() > 0 && cursor.moveToPrevious()){
prevIndex = cursor.getString(name_colIndex).toUpperCase().charAt(0);
cursor.moveToNext();
}
if(cursor.moveToNext()){
nextIndex = cursor.getString(name_colIndex).toUpperCase().charAt(0);
cursor.moveToPrevious();
}
if(viewHolder.mIndexView != null){
viewHolder.mIndexView.setText(currentIndex+"");
viewHolder.mIndexView.setVisibility((currentIndex != prevIndex) ? View.VISIBLE : View.INVISIBLE);
}
viewHolder.mDivider.setVisibility(currentIndex != nextIndex ? View.VISIBLE : View.INVISIBLE);
}
代码示例来源:origin: geniusgithub/AndroidDialer
/**
* Returns the {@link CheckBox} view, creating it if necessary.
*/
public CheckBox getCheckBox() {
if (mCheckBox == null) {
mCheckBox = new CheckBox(getContext());
// Make non-focusable, so the rest of the ContactListItemView can be clicked.
mCheckBox.setFocusable(false);
addView(mCheckBox);
}
return mCheckBox;
}
代码示例来源:origin: DeviceConnect/DeviceConnect-Android
removeCheck.setFocusable(false);
} else {
removeCheck.setVisibility(View.GONE);
代码示例来源:origin: GeoODK/collect
c.setTag(Integer.valueOf(i));
c.setId(QuestionWidget.newUniqueId());
c.setFocusable(!prompt.isReadOnly());
c.setEnabled(!prompt.isReadOnly());
for (int vi = 0; vi < ve.size(); vi++) {
代码示例来源:origin: GeoODK/collect
c.setText(prompt.getSelectChoiceText(mItems.get(i)));
c.setTextSize(TypedValue.COMPLEX_UNIT_DIP, mAnswerFontsize);
c.setFocusable(!prompt.isReadOnly());
c.setEnabled(!prompt.isReadOnly());
代码示例来源:origin: supertaohaili/book
checkBox.setFocusable(false);
addView(checkBox);
layoutParams = (LayoutParams) checkBox.getLayoutParams();
代码示例来源:origin: adolfAn/FBReader_AS
} else {
bag.mCheckboxSelection.setVisibility(View.VISIBLE);
bag.mCheckboxSelection.setFocusable(false);
bag.mCheckboxSelection.setOnCheckedChangeListener(new CompoundButton.OnCheckedChangeListener() {
内容来源于网络,如有侵权,请联系作者删除!