0

I am asking the same question as this one but the question is very old and I am wondering if there is any direct answer to this one.As I recently saw this in an app with this keyboard

enter image description here

Is this kind of keyboard available in android now. If yes how can I get it? I am using Cordova to get this kind of keyboard. Any help would be greatly appreciated.

Community
  • 1
  • 1
Prashanth VG
  • 191
  • 1
  • 14

2 Answers2

0

accepted You can get any kind of Keyboard when you tap an input depending on its type

For a numeric keyboard, you need to set its type to number

<input type="number" name="txtNumber"/>
Sachin Suthar
  • 692
  • 10
  • 28
0

You have to set pattern here

<input type="number" pattern="\d*"/>

This will shows digits only.

Kirankumar Dafda
  • 2,354
  • 5
  • 29
  • 56
  • Just tried it, still is same as type="number" and shows me "-" "," "." I don't want those characters. – Prashanth VG Jan 17 '17 at 05:18
  • If you see the screenshot it has only numbers from 0-9 , delete and enter. That's all i want to be there in the keyboard. – Prashanth VG Jan 17 '17 at 05:19
  • [Here](http://blog.pamelafox.org/2012/05/triggering-numeric-keyboards-with-html5.html) I found one link where, there are many different between iPhone and Android device to with the same line of code. – Kirankumar Dafda Jan 17 '17 at 05:20
  • But the screenshot in OP is from an android device only. I want to replicate that. Any other ideas? – Prashanth VG Jan 17 '17 at 05:23
  • Checking for native android app keyboard types, will update here if found any related code which i can able implement from native to hybrid for this. – Kirankumar Dafda Jan 17 '17 at 05:27