本文整理了Java中com.google.android.material.textfield.TextInputLayout.setHintEnabled()
方法的一些代码示例,展示了TextInputLayout.setHintEnabled()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。TextInputLayout.setHintEnabled()
方法的具体详情如下:
包路径:com.google.android.material.textfield.TextInputLayout
类名称: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;
}
内容来源于网络,如有侵权,请联系作者删除!