简体   繁体   中英

Any way to support samsung galaxy s4 using compatible screen sizes

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" /> 

<screen>元素中使用480而不是xxhdpi

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM