Add android:inputType="number"
as an XML attribute.
More Related Contents:
- How do i start a new line in String? [duplicate]
- How to stop EditText from gaining focus when an activity starts in Android?
- Android soft keyboard covers EditText field
- Is there a way to define a min and max value for EditText in Android?
- How do I check if my EditText fields are empty? [closed]
- Android EditText delete(backspace) key event
- Soft keyboard open and close listener in an activity in Android
- Turn off autosuggest for EditText?
- How to create EditText with rounded corners?
- How do you set the EditText keyboard to only consist of numbers on Android?
- TextWatcher for more than one EditText
- How can I know when an EditText loses focus?
- Is there a way to programmatically scroll a scroll view to a specific edit text?
- EditText maxLines not working – user can still input more lines than set
- How to draw rounded rectangle in Android UI?
- android edittext onchange listener
- How to hide underbar in EditText
- How to do something after user clicks on my EditText
- Set unchangeable some part of editText android
- Soft Keyboard shows up on EditText focus ONLY once
- EditText with soft keyboard and “Back” button
- Android different EditText backgrounds for different states using shapes, selector or list
- How to change focus color of EditText in Android
- programmatically add id to R.id
- AlertDialog with EditText, open soft keyboard automatically with focus on EditText doesn’t work
- Android EditText Gmail like to field
- Get back key event on EditText
- how to validate a URL / website name in EditText in Android?
- How to change the focus to next edit text in android?
- How to limit EditText length to 7 integers and 2 decimal places?