Android: How to make an AutoCompleteTextView SingleLine?

Archie.bpgc picture Archie.bpgc · Sep 11, 2012 · Viewed 15.2k times · Source
    <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 not 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??

Answer

Chirag picture Chirag · Sep 11, 2012

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