Android: floating point virtual keyboard on Samsung Galaxy S5

167 Views Asked by At

In my app on the EditText I need to show virtual keyboard for floating point value. I have NumberEditText class that is inherited from EditText. In it's constructor I do this

// set digital keyboard
setRawInputType(InputType.TYPE_CLASS_NUMBER or InputType.TYPE_NUMBER_FLAG_DECIMAL)
// add allowed input 
keyListener = DigitsKeyListener.getInstance("0123456789.,")  

This works perfectly, I see the keyboard with digits and .

enter image description here

But when I open the app on Samsung Galaxy S5 there is no . on the keyboard, I can enter only integer values but not floating point ones.

enter image description here

Any ideas how to fix it?

0

There are 0 best solutions below