软键盘问题 [英] SoftKeyboard Questions

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

问题描述

所以,我玩了SoftKeyboard演示项目,我有5个问题和1个问题:

So , I played with SoftKeyboard Demo Project , and I have 5 Questions and 1 Problem:

1)我的问题是,在键入单词并切换到符号键盘",键入符号时,删除了先前键入的单词,例如:i键入单词>>在建议列表中选择>>切换到符号,在这种情况下,单词没有被删除,如何处理?

1) My problem , when typing a Word , and switchting to Symbol Keyboard , Type a Symbol , the previous Word Typed is Removed , Exepted If : i Type the Word >> Select in the Suggestion List >> Switch to Symbol , in this Case the Word is Not Removed , What Handle This?

2)如何更改背景键颜色?,例如:像在CyanogenMode键盘中一样,按键是灰色,而Shift-EnterSpace等则是更暗,我的意思是按键的背景颜色,而不是图标

2) How to change the Background Key Color ? , Eg. : Like in CyanogenMode Keyboard , Keys are Gray Dark and Shift-EnterSpace etc are More Dark , i mean the Background Color of the Keys , Not an Icon

3)长按某个键时,例如,我设法弹出一个更多键的弹出窗口.:'a',弹出窗口可以正常工作,但是会出现一个十字形图标(如Windows中的寡妇),以关闭弹出窗口,如何释放该键(如在CM键盘中那样)时自动关闭弹出窗口?

3) I managed to get a Popup for More Keys when Long Press on a Key , Eg. : 'a' , the Popup appear and work Fine , But a Cross Icon(like in Widows) Appear to close the Popup , How to Make the Popup Close Automatically when releasing the Key , like in CM Keyboard ?

4)如何处理长按空格键/Enter键,例如:要更改语言还是显示输入设置?

4) How to handle Long Press on Space/Enter , Eg. : to Change Language Or Show Input Settings?

5)在哪里可以找到所有对应的键码列表?例如:"a" = 97吗?

5) Where can I find all Corresponding Keycode List ? Eg.: 'a' = 97 ?

6)软键盘是否支持外部词典?

6) Does SoftKeyboard Support External Dictionaries?

推荐答案

克隆此 git clone https://android.googlesource.com/platform/packages/inputmethods/LatinIME 几乎可以回答所有问题上面的问题,这是android默认键盘.

Clone this git clone https://android.googlesource.com/platform/packages/inputmethods/LatinIME will answer almost all the questions above, this is android default keyboard.

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

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