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

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

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

TextInputLayout.setHintEnabled介绍

暂无

代码示例

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

@Override
public void setHintEnabled(boolean enabled) {
  if (mForceShowHint) {
    mWasHintEnabled = enabled;
    return;
  }
  super.setHintEnabled(enabled);
}

代码示例来源: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;
}

相关文章