Skip to content

ouacyou/SupportingMultipleScreens-Android

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 

Repository files navigation

SupportingMultipleScreens-Android

##屏幕适配新解Supporting Multiple Screens## ######以前是在屏幕密度后面指定具体的分辨率来区分,比如values-hdpi-800x480,layout-1280x720;>现在官网已经不建议这么去做,主要原因是目前android机器类型太多,显得不够灵活通用;现在建议方法是通过可用高度或者可用宽度来指定:

######values-h<sh>dp ######values-w<sw>dp

android在加载的时候会通过自身的dp=px/density(dp=800/1.5)或者相近的资源res去加载layout或values文件。

例如:800x480px

values-h500dp 加载时设备会进入到此文件中去读取.

About

Supporting Multiple Screens

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published