0

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?

Vrushi Patel
  • 2,361
  • 1
  • 17
  • 30
Shashank Setty
  • 138
  • 1
  • 9
  • I dont know whether you are going to accept. My thought is there is no harm in avoiding phone with low resolution (mdpi & ldpi) even you are trying to make consumer based application. – Ganesh Kanna Feb 08 '19 at 05:20
  • hi, thanks for the reply but my app isn't scaling properly for normal dpi as well, here's the link https://stackoverflow.com/questions/54571547/my-layouts-arent-scaling-properly-on-low-dpi-devices so someone suggested I do this instead so I wanted to know if these folders are enough... – Shashank Setty Feb 08 '19 at 05:31

1 Answers1

0

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

Shashank Setty
  • 138
  • 1
  • 9