问题
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