简体   繁体   中英

Numeric Soft Keyboard control

I have an EditText control for currency input, however, as everybody knows, Android does not replace the decimal separator in the keyboard like the users locale.

So I'm thinking on creating a dialog to edit this value, like a calculator. This way I won't have an EditText, but a TextView with a numeric soft keyboard.

Do you know any numeric keyboard control that I can plug into my dialog? Or maybe a solution to this Android gap?

For similar problem, I used:

android:inputType="date"

in xml layout for EditText. This gave me a numeric soft keyboard like calculator. Hope this helps.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM