开发者

Android: how to display keypad

开发者 https://www.devze.com 2023-02-05 02:28 出处:网络
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. May

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

0

精彩评论

暂无评论...
验证码 换一张
取 消