I have a standard direct EditText editor, I want to show dictionary sentences on top of this EditText, so I did this in XML:
<EditText android:id="@+id/messaging_messageEdit" android:layout_width="0dp" android:layout_height="wrap_content" android:layout_gravity="center" android:layout_margin="10dp" android:layout_weight="85" android:background="@drawable/clanz_edit_text_holo_dark" android:ems="10" android:hint="Type your message here..." android:singleLine="true" android:inputType="textAutoComplete" android:textColor="#dedede" > </EditText>
I thought the inputType parameter inputType take care of viewing the automatic dictionary. A dictionary opens on my phone (Nexus Android 5.1), but it is empty. On the Genymotion emulator (Android 4.1.1), it does not appear at all.
What am I missing?
source share