如何解决的我的自定义软键盘显示分辨率低? [英] How can I fix low resolution of my custom soft Keyboard View?

查看:217
本文介绍了如何解决的我的自定义软键盘显示分辨率低?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我开发一个自定义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>

我引用的这个链接。

这篇关于如何解决的我的自定义软键盘显示分辨率低?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆