Does anyone know how to create in the XML of an EditText that numeric bar on the keyboard?
This bar appears when you arrow the inputType as textPassword, however this will depend on the Android keyboard. If you want to use an editText with visible text, you can use a textVisiblePassword.
<EditText
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:id="@+id/editText"
android:hint="Search"
android:inputType="textPassword" />
or
<EditText
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:id="@+id/editText"
android:hint="Search"
android:inputType="textVisiblePassword" />
You can set up a inputType
for your EditText
:
<EditText
...
android:inputType="textPassword|number" ... />
One option is to use one custom keyboard and add to your project . As far as I know, you will not be able to do this with the standard Android keyboard, as there are no options in android:inputType
that satisfy what you need.