com.google.android.material.textfield.TextInputLayout.setEnabled()方法的使用及代码示例

x33g5p2x  于2022-01-30 转载在 其他  
字(1.6k)|赞(0)|评价(0)|浏览(245)

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

TextInputLayout.setEnabled介绍

暂无

代码示例

代码示例来源:origin: stripe/stripe-android

@Override
public void setEnabled(boolean enabled) {
  mExpiryTextInputLayout.setEnabled(enabled);
  mCardNumberTextInputLayout.setEnabled(enabled);
  mCvcTextInputLayout.setEnabled(enabled);
  mPostalInputLayout.setEnabled(enabled);
  mIsEnabled = enabled;
}

代码示例来源:origin: pranavpandey/dynamic-support

@Override
public void setEnabled(boolean enabled) {
  super.setEnabled(enabled);
  setAlpha(enabled ? WidgetDefaults.ADS_ALPHA_ENABLED : WidgetDefaults.ADS_ALPHA_DISABLED);
}

代码示例来源:origin: jruesga/rview

@Override
public void onCheckedChanged(CompoundButton button, boolean checked) {
  mBinding.baseWrapper.setEnabled(checked);
  mBinding.baseWrapper.setHintEnabled(checked);
  enabledOrDisableButtons();
}

代码示例来源:origin: jruesga/rview

@Override
public ViewDataBinding inflateView(LayoutInflater inflater,
    @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {
  mBinding = DataBindingUtil.inflate(inflater, R.layout.base_chooser_dialog, container, true);
  mBinding.changeBase.setOnCheckedChangeListener(this);
  // initially 'change parent revision' is unchecked
  mBinding.baseWrapper.setEnabled(false);
  mBinding.baseWrapper.setHintEnabled(false);
  mAdapter = new BaseAdapter(mBinding.getRoot().getContext(),
      mLegacyChangeId, mProjectId, mBranch);
  return mBinding;
}

相关文章