如何添加自定义输入法preference到Android设置应用程序? [英] How to add preference of Custom Input method to Android Settings app?
问题描述
最近我已经开始开发Android软键盘,并得到了一些问题,preferences。
Recently I've started to develop Android Soft Keyboard and got some problem with preferences.
如何添加preferences到Android设置应用程序?我搜索几乎所有的源$ C $ AnySoftKeyboard的C,但没有发现任何东西什么把它们添加到设置应用程序。
How to add a preferences to Android setting app? I've searched almost all the source code of AnySoftKeyboard, but haven't found anything what would add them to Settings app.
我把一个链接显示了我的意思: HTTP:/ /$c$c.google.com/p/softkeyboard/wiki/Settings
I'm placing a link to show what I meant: http://code.google.com/p/softkeyboard/wiki/Settings
(从开始第一张图片)
感谢您
P.S。对不起,我的英文不好。
P.S. Sorry for my bad english..
推荐答案
我找到了自己:
在输入法的XML,你需要把机器人:settingsActivity 与链接到你的preferenceActivity类标签: <一href="http://$c$c.google.com/p/softkeyboard/source/browse/trunk/project/res/xml/method.xml">Example
in XML of input method you need to put android:settingsActivity tag with link to your PreferenceActivity class: Example
这篇关于如何添加自定义输入法preference到Android设置应用程序?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!