简体   繁体   English

Android-在画布上创建虚拟键盘

[英]Android - Creating a virtual keyboard base on the canvas

I'm new to Android and i'm not sure about where to start for the creation of a virtual keyboard. 我是Android的新手,我不确定从哪里开始创建虚拟键盘。 I read things about foreground services, but this is still confuse in my mind. 我阅读了有关前台服务的内容,但是这在我心中仍然感到困惑。 Is a foreground service the right way to create a virtual keyboard ? 前台服务是创建虚拟键盘的正确方法吗? If yes, how could I attach a piece of UI to that service on which I could draw keys how I want to using a canvas ? 如果是,如何将UI附加到该服务上,以便可以在我的画布上绘制按键?

I'm not asking you to do the work for me, I just need to be pointed to the right direction. 我不是要你为我做工作,我只需要指出正确的方向。 Thank you :) 谢谢 :)

这是使用XML和IME输入类创建的自定义键盘的示例。

http://code.tutsplus.com/tutorials/create-a-custom-keyboard-on-android--cms-22615

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

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