EditText AutoCorrect and AutoComplete not working

This is the editText that I defined in the XML layout:

    <EditText android:id="@+id/msg_text_input"
    android:text="" 
    android:layout_width="fill_parent"
    android:layout_height="wrap_content"
    android:layout_alignParentBottom="true"
    android:layout_alignParentLeft="true"
    android:layout_toLeftOf="@id/msg_button_send" 
    android:imeOptions="actionNone"
    android:inputType="text|textAutoComplete|textAutoCorrect|textShortMessage"/>

However, after I click EditText and start typing, autocomplete and autocomplete fail. What am I missing?

+5
source share
3 answers

I experimented and made the following change to the XML format:

    <EditText android:id="@+id/msg_text_input"
    android:text="" 
    android:layout_width="fill_parent"
    android:layout_height="wrap_content"
    android:layout_alignParentBottom="true"
    android:layout_alignParentLeft="true"
    android:layout_toLeftOf="@id/msg_button_send" 
    android:imeOptions="actionNone"
    android:autoText="true"/>

again, on the emulator it does nothing - BUUUUT - autofill appears on the device itself !!

The moral of the story: try on the device, because the emulator ... is not very good

+2
source

, , textAutoComplete , , . , android, , , , , .

textAutoCorrect , Android , ..... , ...

+10

All Articles