简体   繁体   中英

how can i show the candidates view under the android soft keyboard?

I'm trying to make a softkeyboard for android but when i edit the candidates view it always shows above the keyboard layout. I tried to set Y position and it moves down but the keyboard layout hides it, although the keyboard is empty and transparent.

I need to show candidates view under the keyboard layout or whatever place, but not above.

Thanks.

The easiest way is not to use the candidate view. In fact we didn't use it at Swype at all- we didn't like some of the built in behaviors. Just return a null candidate view in onCreateCandidateView. Then in your main keyboard layout, add a view to use for candidates below the keyboard and use that as the candidate view.

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