【问题标题】:SoftKeyboard Sample blurry font / key background problemSoftKeyboard Sample 字体模糊/按键背景问题
【发布时间】:2010-12-09 00:39:46
【问题描述】:
【问题讨论】:
标签:
android
soft-keyboard
【解决方案1】:
这个问题比较老了,但是我刚刚碰到同样的问题,解决了,找不到解决办法。
问题是这个键盘默认设置为低密度的小键盘。查看此参考以获取更多信息:
http://developer.android.com/guide/topics/manifest/supports-screens-element.html
以下是解决AndroidManifest.xml 文件中问题的设置:
<supports-screens android:resizeable="false"
android:smallScreens="false"
android:normalScreens="false"
android:largeScreens="true"
android:xlargeScreens="true"
android:anyDensity="true"
android:requiresSmallestWidthDp="600"
android:compatibleWidthLimitDp="600"
android:largestWidthLimitDp="600"/>
【解决方案2】:
我找到了答案。
在键盘视图 xml 中放入 android:shadowRadius="0.0"
<android.inputmethodservice.KeyboardView
...
android:shadowRadius="0.0" />