Android values ​​folder for different display sizes

The following value folders have been announced.

  • values
  • values-sw320dp (... to 4``)
  • values-sw480dp (5 '' to 5.5``)
  • values-sw600dp (7 'to 10``)
  • values-sw720dp (10 '' to ...)

Each folder has one variable.xml file with different fields, paddings, etc.

But I don’t know which folder with certain values ​​should work with a display between 4 '' and 5 '', in particular 4.65 '' and 4.7 ''.

+4
source share
1 answer

Check the resolution of the device and follow the graphs offered by Android: http://developer.android.com/guide/practices/screens_support.html

:

, :

  • 320dp: (240x320 ldpi, 320x480 mdpi, 480x800 hdpi ..).
  • 480dp: Tweener, Streak (480x800 mdpi).
  • 600dp: 7- (600x1024 mdpi).
  • 720dp: 10- (720x1280 mdpi, 800x1280 mdpi ..).

4,65- "values-480dp".

+4

All Articles