Java Code Examples for android.widget.EditText#setAutofillHints()

The following examples show how to use android.widget.EditText#setAutofillHints() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: AbstractMultipleStepsActivity.java    From input-samples with Apache License 2.0 5 votes vote down vote up
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;
}
 
Example 2
Source File: AbstractMultipleStepsActivity.java    From android-AutofillFramework with Apache License 2.0 5 votes vote down vote up
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;
}