androidautocompleteandroid-edittextautocompletetextview

Android: How to make an AutoCompleteTextView SingleLine?


    <AutoCompleteTextView
        android:id="@+id/product"
        android:layout_width="fill_parent"
        android:layout_height="wrap_content"
        android:hint="product"
        android:singleLine="true"
        android:textColor="@color/white"
        android:textSize="15dp" />

this is my code for AutoCompleteTextView.

The problem is I want to type in some text and then click Next on the soft-keyboard. Next is appearing on the soft-keyboard but its not taking cursor to the next EditText. In the same screen rest all EditText have the same code and they work fine. Is AutoCompleteTextView any different from normal EditText in such case??


Solution

  • Set android:imeOptions="actionNext" in AutoCompleteTextView in xml .