首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 移动开发 > 移动开发 >

解决了google键盘存在触摸识别误差有关问题

2012-09-16 
解决了google键盘存在触摸识别误差问题解决了google键盘存在触摸识别误差问题触摸一个键的顶部区域,却等效

解决了google键盘存在触摸识别误差问题

解决了google键盘存在触摸识别误差问题

触摸一个键的顶部区域,却等效按下了改键上方的键。
该输入法目录下SkbContainer.java文件中???? * For finger touch, user tends to press the bottom part of the target key,
???? * or he/she even presses the area out of it, so it is necessary to make a
???? * simple bias correction. If the input method runs on emulator, no bias
???? * correction will be used.
???? */
??? private static final int Y_BIAS_CORRECTION = -10;
是为了让触摸时按键操作和视觉上的统一,所以设Y_BIAS_CORRECTION = -10,因为我们机器屏幕较大,做这种处理后反而变成了触摸误差,故Y轴校正可不要,改Y_BIAS_CORRECTION = 0解决。

热点排行