简体   繁体   中英

Automatically show custom keyboard for EditText. Android

I want to make the custom keyboard in my android application and show it for specific EditText.
I've read documentation and found, that I need to extend the InputMethodService class. But I didn't find out how to show this keyboard automatically for some EditText.

Thanks

There is a example present in Android SDK

Load that Android Project

New --> Android Sample Project --> Soft Keyboard

To show your keyboard for particular edit text box you need to override OnTouchlistener

我在这里找到了我想要的解决方案: http//www.infiniterecursion.us/2011/02/android-activity-custom-keyboard.html

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM