Gedzis
Gedzis

Reputation: 33

Android: how to display keypad

i am developing simple adroid application. I main program i need to see kaypad(just letters). I have tried to add buttons and then and caption, events, but it takes a lot of time to configure app. Maybe there is another way to display simple letter keypad?

Upvotes: 0

Views: 595

Answers (1)

Pinki
Pinki

Reputation: 21929

EditText EditTextName=findViewById(R.id.EditText01);
((InputMethodManager) getSystemService(Context.INPUT_METHOD_SERVICE)).showSoftInput(EditTextName), 0);

write above code in edittext focus listener.Then u got the keypad whenever that view has focus

Upvotes: 2

Related Questions