Android Studio Layout Format Folders

I am trying to create a different layout for 1080dp and others using "layout-sw1080dp", but it seems that android studio completely ignores it and loads it from the default layout folder.

I tried a different way - set different sizes using the values-sw1080dp and did nothing!

What is the correct way to write different layouts for different screen sizes?

+4
source share
3 answers

DP is not the same as PIXEL !!!

You think this is ignored, since 1080dp devices do not exist (yet?).

  • values-sw720dp: for Nexus 9 and 10 inch tablets
  • values-sw600dp: for tablets from 7 to 8 inches
  • values-sw360dp:

https://play.google.com/store/apps/details?id=nl.qbus.sizemeup&hl=en , DP.

, http://developer.android.com/guide/practices/screens_support.html

+7

Android Studio ( > 0,8) . , .

enter image description here

enter image description here

+1

The modifier that you use sw<N>dp(smallest width) represents resources for the shortest available in height and width of the screen.

Are you sure your shortest screen size is at least 1080dp?

Read more about resource folder modifiers here .

0
source

All Articles