简体   繁体   中英

GridView of Items in an InputMethod Android

I have a standard ime working fine with regular keyboard xml files and a regular KeyboardView.

I would now like to add a button that switches to a GridView of images.

How would I get a GridView to pop-up in the keyboard area?

I needed to return a LinearLayout that held the GridView when onCreateInputView() was called. Now I can freely switch between KeyboardViews and GridViews.

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