自定义弹出键盘的键 [英] Custom popup for key of keyboard

查看:352
本文介绍了自定义弹出键盘的键的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想提出的自定义键盘.. 现在我的问题是,我想自定义弹出关键pressed。 所以,我可以改变它。 键弹出等作为这一形象

I am making custom keyboard.. Now my question is that I want custom popup for key pressed. So, can I change it. popup of key like as this image

如果有任何人知道这个话,请帮我...

If any one know about this then please help me...

CapDroid

推荐答案

是啊,它不是太难的。只是检查出的AOSP 的时间在这里。 它在资源文件全部完成,这里是一个简短的片段。从 symbols.xml 我的键盘的项目文件。

Yup, its not too hard at all. Just check out the time in the AOSP here. It's all done in the resource files, here is a short snippet. From the symbols.xml file of my keyboard project.

<Key android:codes="49" android:keyLabel="1" android:keyEdgeFlags="left"
     android:popupKeyboard="@xml/kbd_popup_template"
     android:popupCharacters="¹½⅓¼⅛"/>

这篇关于自定义弹出键盘的键的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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