How can I fix low resolution of my custom soft Key

2019-05-31 04:19发布

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: enter image description here

My desired View: enter image description here

1条回答
成全新的幸福
2楼-- · 2019-05-31 04:46

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.

查看更多
登录 后发表回答