系统默认的size和density
来源:互联网 发布:互刷流量软件 编辑:程序博客网 时间:2024/06/03 12:30
参考文档路径
http://developer.android.com/intl/zh-cn/guide/practices/screens_support.html#support
系统默认的size和density
size normal
density medium-density mdpi
If no matching resource is available, the system uses the default resource and scales it up or down as needed to match the current screen size and density
The "default" resources are those that are not tagged with a configuration qualifier. For example, the resources in drawable/
are the default drawable resources. The system assumes that default resources are designed for the baseline screen size and density, which is a normal screen size and a medium-density. As such, the system scales default density resources up for high-density screens and down for low-density screens, as appropriate.
However, when the system is looking for a density-specific resource and does not find it in the density-specific directory, it won't always use the default resources. The system may instead use one of the other density-specific resources in order to provide better results when scaling. For example, when looking for a low-density resource and it is not available, the system prefers to scale-down the high-density version of the resource, because the system can easily scale a high-density resource down to low-density by a factor of 0.5, with fewer artifacts, compared to scaling a medium-density resource by a factor of 0.75.
small
Resources for small size screens.normal
Resources for normal size screens. (This is the baseline size.)large
Resources for large size screens.xlarge
Resources for extra-large size screens.Densityldpi
Resources for low-density (ldpi) screens (~120dpi).mdpi
Resources for medium-density (mdpi) screens (~160dpi). (This is the baseline density.)hdpi
Resources for high-density (hdpi) screens (~240dpi).xhdpi
Resources for extra-high-density (xhdpi) screens (~320dpi).xxhdpi
Resources for extra-extra-high-density (xxhdpi) screens (~480dpi).xxxhdpi
Resources for extra-extra-extra-high-density (xxxhdpi) uses (~640dpi). Use this for the launcher icon only, see note above.nodpi
Resources for all densities. These are density-independent resources. The system does not scale resources tagged with this qualifier, regardless of the current screen's density.tvdpi
Resources for screens somewhere between mdpi and hdpi; approximately 213dpi. This is not considered a "primary" density group. It is mostly intended for televisions and most apps shouldn't need it—providing mdpi and hdpi resources is sufficient for most apps and the system will scale them as appropriate. If you find it necessary to provide tvdpi resources, you should size them at a factor of 1.33*mdpi. For example, a 100px x 100px image for mdpi screens should be 133px x 133px for tvdpi.Orientationland
Resources for screens in the landscape orientation (wide aspect ratio).port
Resources for screens in the portrait orientation (tall aspect ratio).Aspect ratiolong
Resources for screens that have a significantly taller or wider aspect ratio (when in portrait or landscape orientation, respectively) than the baseline screen configuration.notlong
Resources for use screens that have an aspect ratio that is similar to the baseline screen configuration.- 系统默认的size和density
- Android 修改系统默认density
- 查找actionbar的系统默认size
- 修改ElasticSearch默认的from size
- ElasticSearch默认的分页参数 size
- 关于android多分辨率中的density和density-independent pixel的区别
- HDFS 的 file size 和 block size
- 系统默认的ORACLE用户名和口令
- px、dip和density
- Android屏幕密度(Density)和分辨率的解释
- Android屏幕密度(Density)和分辨率的关系
- Android屏幕密度(Density)和分辨率的解释
- Android屏幕密度(Density)和分辨率的关系
- Android屏幕密度(Density)和分辨率的关系
- Android屏幕密度(Density)和分辨率的关系
- Android屏幕密度(Density)和分辨率的关系
- Android屏幕密度(Density)和分辨率的解释
- Android屏幕密度(Density)和分辨率的解释
- 串口API(2)
- SD卡工具类(SDCardUtils)
- 红警资源系列一 红警资源导出
- 各大磁力种子搜索引擎对比
- 面试题2
- 系统默认的size和density
- EJB系列(一)——Session Bean基础介绍
- android 录制手机视频与生成gif图片
- windows平台下VLC2.0.5编译
- OpenCV之Mat类
- Android Volley完全解析(三),定制自己的Request
- JavaSE入门学习4:搭建Java开发环境(二)
- 安装软件碰到问题解决方法
- 安卓如何读取Assets目录下的文件和图片