Is there a way to get an Android soft keyboard that has only numbers (no decimals, spaces) with Java code?
问题 I have an iPhone app that uses different keyboard layouts. Some are custom and some are built in: Numbers only: Decimals: Custom X button for ISBN numbers: I'd like to do the same thing on Android, but even the normal InputType.TYPE_CLASS_NUMBER still includes a decimals, space, comma, etc. How can I customize the keyboards in Android?? 回答1: It's not possible using the built-in keyboard. You'll have to develop a custom soft keyboard, or write an inline view that works like a keyboard