Enforcing Input Method Of Edit Text
I've tried searching around for an answer to this but I can't seem to find an answer. Is it possible for me to prevent a user from changing the input method of an edittext that I h
Solution 1:
As far as I know, it's not possible to force a user to use a specific system keyboard inside your application (reference: android app specific soft keyboard). That reference does show you how to create your own, though. It wouldn't be terribly difficult to create a View that pops up when the EditText
is focused that provides the user with a set of numbers.
You can also set the android:digits="0123456789"
attribute in your EditText
to disallow other characters from being entered.
Post a Comment for "Enforcing Input Method Of Edit Text"