Search code examples
androidimageandroid-layoutlayoutandroid-imageview

Are these layouts enough to scale images for smaller DPI devices?


Make copy of main activity file in the following folders.

res/layout/main_activity.xml
res/layout-w600dp/main_activity.xml
res/layout-large/main_activity.xml
res/layout-xlarge/main_activity.xml

And resize my images from drawable and place them into these folders

ldpi     (~120dpi).
mdpi     (~160dpi).
hdpi    (~240dpi).
xhdpi     (~320dpi).
xxhdpi     (~480dpi).
xxxhdpi (~640dpi). 

Is this enough to make my app scale properly for phones with lower resolution?


Solution

  • yes, after a lot of experimentation the layouts seem to work, all I had to do was make seperate folders for them.