如何解决的我的自定义软键盘显示分辨率低?我的、自定义、如何解决、分辨率

2023-09-07 09:12:04 作者:微微一笑辣眼睛

我开发一个自定义softkeyboard使用10英寸平板电脑的Andr​​oid SDK的softkeyboard样本。

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.

我怎样才能改变它的分辨率平板电脑的正常分辨率(10英寸)?

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

在我softkeyboard getMaxWidth(); 返回545,这是非常低的平板

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

第二个问题:如何更改键标签的字体大小

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

非常感谢,

我的键盘查看:

My keyboard View:

我需要的视图:

My desired View:

推荐答案

我发现我的第一个问题的答案:

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>

我引用的这个链接。