Add the following line of code, and it will do the trick 🙂
editText.setRawInputType(Configuration.KEYBOARD_QWERTY);
This will show the the numeric keypad first, but also allows you to enter free text.
More information here.
More Related Contents:
- Move layouts up when soft keyboard is shown?
- EditText with number keypad by default, but allowing alphabetic characters
- android:windowSoftInputMode=”adjustResize” doesn’t make any difference?
- Page scroll when soft keyboard popped up
- Get Cursor Position in Android in Edit Text?
- Android Keyboard hides EditText
- Android Camera Intent: how to get full sized photo?
- ViewPager.setOffscreenPageLimit(0) doesn’t work as expected
- How to animate RecyclerView items when they appear
- How to set Navigation Drawer to be opened from right to left
- How to create a closed (circular) ListView?
- Scrollview vertical and horizontal in android
- How to connect to more than one firebase database from an android App
- Where can I find Android source code online? [closed]
- Distance calculation from my location to destination location in android
- How to check device natural (default) orientation on Android (i.e. get landscape for e.g., Motorola Charm or Flipout)
- Is it possible to Generate a thumbnail from a video url in android
- Avoid reloading activity with asynctask on orientation change in android
- ActionBar in a DialogFragment
- Android: Launch activity from clickable text
- Android ViewPager setCurrentItem not working after onResume
- How to force a cache clearing using Universal Image Loader Android?
- Wakelock and doze mode
- How to Apply Corner Radius to LinearLayout
- How to change the border color(un-focused) of an EditText?
- First launch of Activity with Google Maps is very slow
- How to create fixed footer in android layout?
- Map API v2 Authorisation Failure
- Android Studio, Gradle Errors. Content not allowed in Prolog
- Action Required: Your app is not compliant with Google Play Policies , what is the solution?