Numeric keyboard as default [duplicate]
问题 This question already has answers here : Closed 6 years ago . Possible Duplicate: EditText with number keypad by default, but allowing alphabetic characters I have an EditText where user can enter both numbers (0 - 9) and characters (a -z, what ever). But I would like to set the numeric soft-keyboard as default. I want the numeric keyboard appearing first, but user can press the [ABC] button and enter what ever character he wants. Is this possible? 回答1: As far as I know, if you use inputType=