android.widget.CheckBox.isEnabled()方法的使用及代码示例

x33g5p2x  于2022-01-18 转载在 其他  
字(2.1k)|赞(0)|评价(0)|浏览(153)

本文整理了Java中android.widget.CheckBox.isEnabled()方法的一些代码示例,展示了CheckBox.isEnabled()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。CheckBox.isEnabled()方法的具体详情如下:
包路径:android.widget.CheckBox
类名称:CheckBox
方法名:isEnabled

CheckBox.isEnabled介绍

暂无

代码示例

代码示例来源:origin: chrisk44/Hijacker

@Override
public void onStop(){
  if(task!=null){
    if(task.sizeAnimator!=null){
      task.sizeAnimator.cancel();
    }
  }
  //Backup options
  pin_delay = pinDelayView.getText().toString();
  locked_delay = lockedDelayView.getText().toString();
  pixie_dust = pixie_dust_cb.isChecked();
  pixie_dust_enabled = pixie_dust_cb.isEnabled();
  ignore_locked = ignored_locked_cb.isChecked();
  eap_fail = eap_fail_cb.isChecked();
  small_dh = small_dh_cb.isChecked();
  no_nack = no_nack_cb.isChecked();
  super.onStop();
}
static String get_chroot_env(final Activity activity){

代码示例来源:origin: federicoiosue/checklistview

/**
 * Checks if is the hint item
 */
public boolean isHintItem() {
  return !getCheckBox().isEnabled();
}

代码示例来源:origin: XunMengWinter/Now

else
    mJsTv.setText(R.string.js_open_description);
  mPreferencesHelper.setJSEnabled(mJsCB.isEnabled());
});

代码示例来源:origin: dalong982242260/FlowLayout

/**
 * 刷新数据
 *
 * @param mSelectPosition 选中
 */
private void notifyAllItemView(int mSelectPosition) {
  for (int i = 0; i < getChildCount(); i++) {
    CheckBox chk = (CheckBox) getChildAt(i).findViewById(R.id.single_select_chk);
    int tag = (Integer) chk.getTag();
    //选中状态  单选
    if (mSelectPosition >= 0) {
      if (chk.isEnabled()) {
        if (tag == mSelectPosition) {
          this.mSelectPosition = mSelectPosition;
          setChecked(chk);
        } else {
          if (mIsSingle) {
            setUnChecked(chk);
          }
        }
      }
    }
  }
}

代码示例来源:origin: quemb/QMBForm

@Test
public void shouldBeDisabled(){
  RowDescriptor rowDescriptor = RowDescriptor.newInstance("disabled", RowDescriptor.FormRowDescriptorTypeBooleanCheck);
  rowDescriptor.setDisabled(true);
  FormCheckFieldCell testCell = new FormCheckFieldCell(activity, rowDescriptor);
  assertThat(testCell.getCheckBox().isEnabled(), is(false));
}

代码示例来源:origin: MCMrARM/revolution-irc

});
mServerPort.setText(String.valueOf(getDefaultPort(mServerSSL.isEnabled())));
mServerSSL.setOnCheckedChangeListener((CompoundButton buttonView, boolean isChecked) -> {
  if (String.valueOf(getDefaultPort(!isChecked)).equals(mServerPort.getText().toString()))

相关文章