Android studio layout size folders

廉价感情. 提交于 2019-12-04 09:05:53

DP is not the same as PIXEL!!!

You think it's ignoring because devices with 1080dp do not exist (yet?).

  • values-sw720dp: that's for Nexus 9 and 10 inch tablets
  • values-sw600dp: that's for 7 to 8 inch tablets
  • values-sw360dp: that's for small phones

I suggest you installing this app https://play.google.com/store/apps/details?id=nl.qbus.sizemeup&hl=en on your devices, it shows the size of each devive in pixels and in DP.

Also, read more about it here http://developer.android.com/guide/practices/screens_support.html

By default, Android Studio (version > 0.8) groups resources with the same name into one folder, with their distinguishing qualifiers in a muted grey. Be sure you're also using the correct qualifiers.

The modifier you're using sw<N>dp (smallest width) represents resources for the shortest of the screen's available height and width.

Are you sure your shortest screen's dimension are not less than 1080dp?

Read more about resource folder modifiers here.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!