1

Which EditText Keyboard Inputtype combinaison can help me getting the following view. I try several issue but nothing. May be someone among you does already face this problem.

What i want to get is Numerics on the top and the possibility to switch to symbols and letters

What i want to get if a use touch the EditText must be as following enter image description here

Festus Tamakloe
  • 11,231
  • 9
  • 53
  • 65

2 Answers2

1

You may add the following attribute to your EditText in xml.

android:inputType="text|number"

However, some of the characters you input will not be appear - those which conflict with type number, like @ = ! etc.

And in order to get search button (on bottom-right) in your virtual-keyboard, you may use:

android:imeOptions="actionSearch"

Update Add the following to your EditText's xml and it will get you all the characters available in the keyboard under number inputmode:

android:inputType="number"
android:digits="0123456789.@#$&*-=()!"':;/?"

If you want to support more characters then simply append their html name in android:digits.

waqaslam
  • 67,549
  • 16
  • 165
  • 178
-2

Try this:

 <EditText
        android:layout_width="150dp"
        android:layout_height="150dp"
        android:inputType="PutHereNestedInputType"
        />

InputTypes
Hope it's help.

jimpanzer
  • 3,470
  • 4
  • 44
  • 84