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


1 answer


I tried the same code and it works fine, but if it doesn't work in your case you just delete android:inputType="textCapCharacters"

. I'm sure it will accept all characters.



0


source







All Articles