小编Dar*_*mar的帖子

Comma doesnt work on Samsung Android Keyboard

I set InputType.TYPE_NUMBER_FLAG_DECIMAL or InputType.TYPE_CLASS_NUMBER to my EditText and i want to use comma for decimal separator. So i set digits "0123456789.," to EditText.

editText.keyListener = DigitsKeyListener.getInstance("0123456789.,")
Run Code Online (Sandbox Code Playgroud)

I set a TextWatcher on EditText to handle user input. When i clicked comma(",") on Android emulator keyboard, it is working as expected but if i get build on my phone, which has Samsung Keyboard, comma key is disabled and doesnt work. I searched so much but i couldn't find a way.

Any …

android samsung-mobile kotlin android-studio

5
推荐指数
1
解决办法
510
查看次数

标签 统计

android ×1

android-studio ×1

kotlin ×1

samsung-mobile ×1