0

i have many input fields in my project and all of them accept numeric values followed by alphabetic values(like 246736adsf) so i want to show numeric keyboard first(in keyboard having numeric and alphabetic values) and alphabetic on selection. I tried a lot but all problems open only numeric not combination of both. So please help me to get rid of this problem. Thanking you.

HungryHeart
  • 71
  • 1
  • 7

1 Answers1

-1

set input type to number for edit text like this

    android:inputType="number" 

UPDATE

        EditText text = (EditText)findViewById(R.id.editText);
    text.setInputType(InputType.TYPE_CLASS_NUMBER | InputType.TYPE_CLASS_TEXT);
Prachi
  • 2,559
  • 4
  • 25
  • 37