本文整理了Java中android.support.design.widget.TextInputLayout.<init>()
方法的一些代码示例,展示了TextInputLayout.<init>()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。TextInputLayout.<init>()
方法的具体详情如下:
包路径:android.support.design.widget.TextInputLayout
类名称:TextInputLayout
方法名:<init>
暂无
代码示例来源:origin: Sea-n/Android-TG-Bot
@Override
public RecyclerView.ViewHolder onCreateViewHolder(ViewGroup parent, int viewType) {
TextInputLayout view = new TextInputLayout(parent.getContext());
ViewGroup.LayoutParams params = new RecyclerView.LayoutParams(
ViewGroup.LayoutParams.WRAP_CONTENT, ViewGroup.LayoutParams.WRAP_CONTENT);
view.setLayoutParams(params);
return new DummyViewHolder(view);
}
代码示例来源:origin: dariopellegrini/FormBuilder
switch (type) {
case TEXT:
textInputLayout = new TextInputLayout(context);
editText.setEnabled(formElement.getEnabled());
editText.setHint(formElement.getHint());
return editText;
case EMAIL:
textInputLayout = new TextInputLayout(context);
editText.setEnabled(formElement.getEnabled());
editText.setHint(formElement.getHint());
return textInputLayout;
case PHONE:
textInputLayout = new TextInputLayout(context);
editText.setEnabled(formElement.getEnabled());
editText.setHint(formElement.getHint());
return textInputLayout;
case PASSWORD:
textInputLayout = new TextInputLayout(context);
editText.setEnabled(formElement.getEnabled());
editText.setHint(formElement.getHint());
return textInputLayout;
case NUMBER:
textInputLayout = new TextInputLayout(context);
editText.setEnabled(formElement.getEnabled());
editText.setHint(formElement.getHint());
代码示例来源:origin: concretesolutions/canarinho
@Before
public void setUp() {
final ActivityController<Activity> activityController = buildActivity(Activity.class);
final Activity activity = activityController.create().get();
activityController.start().resume().visible();
TextInputLayout textInputLayout;
activity.setContentView(textInputLayout = new TextInputLayout(activity));
textInputLayout.addView(editText = new EditText(activity));
editText.setText("0,00");
}
代码示例来源:origin: concretesolutions/canarinho
@Before
public void setUp() {
final ActivityController<MainActivity> activityController = buildActivity(MainActivity.class);
final Activity activity = activityController.create().get();
final TextInputLayout textInputLayout = new TextInputLayout(activity);
textInputLayout.addView(editText = new EditText(activity));
activityController.start().resume().visible();
final Watchers.SampleEventoDeValidacao sampleEventoDeValidacao =
new Watchers.SampleEventoDeValidacao(textInputLayout);
editText.addTextChangedListener(watcher = new BoletoBancarioTextWatcher(sampleEventoDeValidacao));
activity.setContentView(textInputLayout);
}
内容来源于网络,如有侵权,请联系作者删除!