2

For supporting multiple screens we can define layouts as layout-sw360dp layout-sw600dp, layout-sw720dp etc, But for example for a device that chooses the layout-sw360dp, the device screen density can be of

 xhdpi,xxhdpi,xxxhdpi 

So should we have to define multiple dimens values as,

values-sw360dp-xhdpi

values-sw360dp-xxhdpi

values-sw360dp-xxxhdpi

Otherwise if I'm not giving values specifically for each densities, my layout will get broken for various devices with different densities.

  • 2
    Possible duplicate of [Creating multi-screen support app android](http://stackoverflow.com/questions/22728159/creating-multi-screen-support-app-android) – kiran kumar Jan 17 '17 at 04:47
  • possible duplicate of http://stackoverflow.com/questions/21280277/different-values-folders-in-android – Manohar Jan 17 '17 at 04:58

1 Answers1

0

For dimens you have to manage like this given below.

values-w600dp

values-w720dp

values-w820dp

values-xhdpi

values-xxhdpi

values-xxxhdpi

Community
  • 1
  • 1
Patel Pinkal
  • 8,984
  • 4
  • 28
  • 50