ANDROID - Numeric keyboard
问题 Good afternoon. I have an EditText that may contain numbers and letters. By deploying the keyboard, is there any way to deploy it in numerical form?. If I put the EditText as numeric I do, but that's not my case. Thank you very much. 回答1: Try this: EditText myEditText = (EditText)findViewById(R.id.myEditText); myEditText.setInputType(InputType.TYPE_NUMBER_FLAG_DECIMAL); Then set it back to alphanumeric when you are done with numeric.. 回答2: You can: Hide/Show different EditTexts that have