1

I want to show the keyboard like this on edit text focus.

How to show the soft keyboard in the layout shown in the image? I want the + - / * ( ) keys.

  • Does this answer your question? [keyboard with numeric and basic math operations for an EditText](https://stackoverflow.com/questions/58696230/keyboard-with-numeric-and-basic-math-operations-for-an-edittext) – javdromero Aug 18 '21 at 19:18
  • @javdromero The above question is same as mine, but there are no right answers – Padmaja Seshadri Aug 19 '21 at 17:35

2 Answers2

0

All you need is input type! So in your XML file. Add this line to your editText:

android:inputType="number"

Also, you can use other types based on your needs, like:text,phone,date,password,etc.

Mohammad Derakhshan
  • 1,262
  • 11
  • 33
0

You need to add the following code into you EditText

android:inputType="phone"

enter image description here

Also, if you want to show those special characters, it will depend of the current keyboard of the phone, but generally after press in *# it will apper

enter image description here

Dharman
  • 30,962
  • 25
  • 85
  • 135
rguzman
  • 319
  • 3
  • 8