Android的:如何键盘上创建自定义形状的钥匙? [英] Android: How to create custom shape keys on keyboard?

查看:150
本文介绍了Android的:如何键盘上创建自定义形状的钥匙?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我不知道怎么会可能使Android键盘上的自定义形状的关键。创建自定义键盘是比较容易的,但是需要做来创建新的按钮什么。他们还需要与所有事件的正常响应键盘。

I wonder how could is possible to make custom shape key on android keyboard. To create custom keyboard is relatively easy, but what needs to be done to create new buttons. They also need to respond with all events as normal keyboard.

任何想法从哪里开始?

推荐答案

您需要为您希望自定义键盘上的每个键创建一个图像,然后创建XML支持键盘的设计,并在将其加载到应用与他们键盘类。
你需要更多的细节?
如果是这样,如果你愿意,我一直希望有这个类走了一会儿,我会prepare之一。

You need to create an image for each key you want on your custom keyboard, and then, create the xml supporting the design of your keyboard and load it in your application with they Keyboard class. Do you need more details? If so, I will prepare one if you want, I've been wanting to have a go at this class for a while.

这篇关于Android的:如何键盘上创建自定义形状的钥匙?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆