下面列出了android.widget.EditText#setAutofillHints ( ) 实例代码,或者点击链接到github查看源代码,也可以在右侧发表评论。
private LinearLayout newStep(int labelId, String autofillHints) {
LinearLayout layout = new LinearLayout(this);
layout.setOrientation(LinearLayout.HORIZONTAL);
TextView label = new TextView(this);
label.setText(labelId);
layout.addView(label);
EditText input = new EditText(this);
input.setAutofillHints(autofillHints);
input.setWidth(500); // TODO: proper size
layout.addView(input);
return layout;
}
private LinearLayout newStep(int labelId, String autofillHints) {
LinearLayout layout = new LinearLayout(this);
layout.setOrientation(LinearLayout.HORIZONTAL);
TextView label = new TextView(this);
label.setText(labelId);
layout.addView(label);
EditText input = new EditText(this);
input.setAutofillHints(autofillHints);
input.setWidth(500); // TODO: proper size
layout.addView(input);
return layout;
}