简体   繁体   English

如何在android虚拟键盘上显示弹出键?

[英]how to display popup keys on android virtual keyboard?

I am newbie to android application development. 我是android应用程序开发的新手。 I am currently developing a virtual keyboard with unicode characters. 我目前正在开发具有Unicode字符的虚拟键盘。 As the number of characters are too many to be displayed on the keyboard, some of them are hidden and only showup when the user preses a similar key. 由于字符数太多而无法在键盘上显示,因此其中的一些字符被隐藏,只有在用户按下相似的键时才会显示。 For example, in my cellphone, when I press A, the characters "A", "B", "C" will be displayed as popup keys to let me choose one of them. 例如,在我的手机中,当我按A时,字符“ A”,“ B”,“ C”将显示为弹出键,让我选择其中之一。 I just want to implement virtual keyboard similar to my cellphone's keyboard. 我只想实现类似于手机键盘的虚拟键盘。 I know how implement virtual keyboard using the KeyboardView and Keyboard classes, and keyboard xml resource. 我知道如何使用KeyboardView和Keyboard类以及键盘xml资源实现虚拟键盘。

Can anyone give me a hint on how to display popup keys? 谁能给我提示如何显示弹出键?

There are many sample you can use it to help you, Look at this and pick one to use it. 您可以使用许多示例来帮助您,请看一下并选择其中一个使用它。

githup project Githup项目

Good Blog Documentation 好的博客文档

tutorial Blog 教程博客

Android Documentation Android文档

Custom Keyboard 自定义键盘

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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