理解可用屏幕宽度最小主场迎战宽度 [英] understanding Available screen width vs. smallest Width

查看:117
本文介绍了理解可用屏幕宽度最小主场迎战宽度的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

文档状态的以下内容:

最小屏幕宽度 - 画面的基本大小,可用屏幕区域的最短的尺寸指示
可用屏幕宽度 - 指定DP单位的最低可用宽度在该资源应该由值定义

minimum screen width - The fundamental size of a screen, as indicated by the shortest dimension of the available screen area Available screen width - Specifies a minimum available width in dp units at which the resources should be used—defined by the value.

除非我失去了一些东西,他们似乎是完全一样的东西..有人可以解释这种差异?

Unless I am missing something, they seem to be the exact same thing.. can someone explain the difference ?

推荐答案

在短,主要的区别是,最小宽度不考虑设备的方向。不管是什么方向,如果该设备至少有宽度,让我们说,然后为600dp,比如一些资源可以应用。

In short, the main difference is that the smallestWidth does not consider a device orientation. No matter what orientation, if the device has width at least, let's say, 600dp then, for instance, some resources can be applied.

在另一方面 availableWidth 认为当前可用的宽度。

On the other hand availableWidth considers the current available width.

希望扫清你的困惑。如果没有,我会建议测试是直接在设备上。

Hope that clears your confusion. If not, I would advise to test is directly on a device.

这篇关于理解可用屏幕宽度最小主场迎战宽度的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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