It works:
<EditText android:id="@+id/pinEdit" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_margin="4dp" android:digits="1234567890" android:inputType="textPassword" android:maxLength="4" > <requestFocus /> </EditText>
If the numbers will work for you.
EDIT: Ah, I see, he doesnβt pick up the number pad .... back to the drawing board.
source share