How can I fix low resolution of my custom soft Keyboard View?

我们两清 提交于 2019-12-08 05:42:29

问题


I am developing a custom softkeyboard using softkeyboard sample of android SDK for 10 inches tablet PCs.

First question: I noticed that the resolution of my keyboard is very low on tablet that is obvious in the following images. Actually in my keyboard area, the resolution is same as Pocket PCs resolution.

How can I change its resolution to normal resolution of tablet PCs (10in)?

In my softkeyboard getMaxWidth(); returns 545 that is very low for tablet.

Second question: how can I change the font size of key labels?

Thanks a lot,


My keyboard View:

My desired View:


回答1:


I found the answer of my first question:

<manifest xmlns:android="http://schemas.android.com/apk/res/android"     

    <supports-screens
        android:anyDensity="true"
        android:largeScreens="true"
        android:normalScreens="true"
        android:smallScreens="true" />

</manifest>

My reference is this link.



来源:https://stackoverflow.com/questions/8061623/how-can-i-fix-low-resolution-of-my-custom-soft-keyboard-view

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!