使用最小宽度限定符-Android [英] Use the smallest width qualifier -Android

查看:212
本文介绍了使用最小宽度限定符-Android的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Android文档使用最小宽度的限定符 状态:

Android documentation Use the Smallest-width Qualifier states:

res/layout-sw600dp/main_activity.xml   # For 7" tablets (600dp wide and bigger)

600dp: a 7" tablet (600x1024 mdpi).
720dp: a 10" tablet (720x1280 mdpi, 800x1280 mdpi, etc)

表示660dp及更高的屏幕宽度类似于平板电脑.但是一部只能说5.5英寸和1440x2960 570dpi的手机并不意味着它是平板电脑.

meaning that screen widths with 660dp and higher are tablets like. But a phone with lets say only 5.5 inches and 1440x2960 570dpi doesnt mean that it is a tablet.

那么如何区分这种差异?

So how can you distinguish that difference?

谢谢

推荐答案

但是可以说只有5.5英寸和1440x2960 570dpi的手机并不意味着它是平板电脑.

But a phone with lets say only 5.5 inches and 1440x2960 570dpi doesnt mean that it is a tablet.

正确.

那么如何区分这种差异?

So how can you distinguish that difference?

使用最小宽度的限定符.

Use the smallest-width qualifier.

1440像素(570 dpi)= 2.53英寸= 404dp. 404dp小于600dp,因此您建议的设备不会使用-sw600dp资源.

1440 pixels at 570 dpi = 2.53 inches = 404dp. 404dp is less than 600dp, and so your proposed device would not use -sw600dp resources.

这篇关于使用最小宽度限定符-Android的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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