Java Code Examples for android.widget.TextView.setImeOptions()

The following are Jave code examples for showing how to use setImeOptions() of the android.widget.TextView class. You can vote up the examples you like. Your votes will be used in our system to get more good examples.
Example 1
Project: DateTimePicker   File:   Source Code and License Vote up 5 votes
 * Sets the IME options for a spinner based on its ordering.
 * @param spinner      The spinner.
 * @param spinnerCount The total spinner count.
 * @param spinnerIndex The index of the given spinner.
private void setImeOptions(NumberPicker spinner, int spinnerCount, int spinnerIndex) {
    final int imeOptions;
    if (spinnerIndex < spinnerCount - 1) {
        imeOptions = EditorInfo.IME_ACTION_NEXT;
    } else {
        imeOptions = EditorInfo.IME_ACTION_DONE;
    TextView input = (TextView) spinner.findViewById(;