使用兼容的屏幕尺寸的任何方式来支持三星Galaxy S4 [英] Any way to support samsung galaxy s4 using compatible screen sizes

查看:160
本文介绍了使用兼容的屏幕尺寸的任何方式来支持三星Galaxy S4的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我最近发布了一个应用程序,但用户界面真的没有准备好更大的平板电脑屏幕,直到我得到这个固定的,我过滤掉某些设备具有XLARGE屏幕尺寸采用兼容屏标签:

 <兼容屏>
    <屏幕
        机器人:screenDensity =LDPI
        机器人:屏幕大小=小/>
    / *所有的尺寸到大型xhdpi * /
    <屏幕
        机器人:screenDensity =xhdpi
        机器人:屏幕尺寸=大/>
< /兼容屏>
 

不幸的是,宣布兼容的屏幕尺寸这样的清单中排除S4。我不能找到指定兼容屏幕和不排除S4的一种方式。

请注意,一个非常类似的问题已经被问<一href="http://stackoverflow.com/questions/16401339/app-not-available-on-the-google-market-galaxy-s4">here但接受的答案(它表示在441dpi S4的下xxhdpi屏密度铲斗下降)不会在这种特定的情况有所帮助xxhdpi不是屏幕密度有效的清单属性值

编辑:

非常感谢以下CommonsWare的答案。正确的桶的S4则为:

 &LT;屏幕
    机器人:screenDensity =480
    机器人:屏幕大小=正常/&GT;
 

解决方案

使用 480 ,而不是 xxhdpi &LT;屏幕&GT; 元素

I've recently released an app but the ui really isn't ready for larger tablet screen so until I get this fixed I've filtered out certain devices with an xlarge screen size using compatible screen tags:

<compatible-screens>
    <screen
        android:screenDensity="ldpi"
        android:screenSize="small" />
    /* All sizes up to large xhdpi */
    <screen
        android:screenDensity="xhdpi"
        android:screenSize="large" />
</compatible-screens>

Unfortunately, declaring compatible screen sizes like this in the manifest excludes the S4. I can't find a way of specifying compatible screens and not excluding the S4.

Note, a very similar question has been asked here but the accepted answer (which indicates that at 441dpi the S4 falls under the xxhdpi screen density bucket) does not help in this particular situation as xxhdpi is not a valid manifest attribute value for screen density.

EDIT:

Many thanks for CommonsWare's answer below. The correct bucket for the S4 is then:

<screen
    android:screenDensity="480"
    android:screenSize="normal" /> 

解决方案

Use 480 instead of xxhdpi in the <screen> element.

这篇关于使用兼容的屏幕尺寸的任何方式来支持三星Galaxy S4的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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