AutoCompleteTextView does not allow numbers to be entered
I am trying to put numbers in AutoCompleteTextView
, but nothing happens. I can write all other characters except [0-9]
with the virtual keyboard. Please help me.
<AutoCompleteTextView
android:id="@+id/group_edittext_field"
android:layout_width="match_parent"
android:layout_height="50dp"
android:hint="@string/group"
android:inputType="textCapCharacters"
android:singleLine="true"
android:maxLength="5"
android:imeOptions="actionDone"
android:textCursorDrawable="@null"
android:textColor="@android:color/white"
android:background="@drawable/apptheme_textfield_activated_holo_light"
android:layout_marginTop="20dp"/>
+3
source to share