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开发者_Python百科 another way to display simple letter keypad?
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
精彩评论