Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Open a numeric keyboard without forcing the EditText to be numeric only

I've come across this while doing work on creating my own Keyboard but can't for the life of me remember where I ran across it.

I want top open the Numeric keyboard. However, I want my EditText to only accept an IP address. Adding a filter to my EditText wasn't too hard thanks to this answer.

However, now I want to make the Numeric keyboard to open rather than the standard text keyboard. Unfortunately search results are saturated with the same "How do you limit EditText to numeric input?" questions over and over.

Could anyone point me to the right place for manually opening the Numeric Keyboard.

like image 328
Graeme Avatar asked Dec 12 '11 15:12

Graeme


1 Answers

Not sure if this is the best solution, but I use android:inputType="phone".

like image 87
Glitch Avatar answered Oct 07 '22 01:10

Glitch