I use two different methods to achieve responsive design on Android devices.
Method 1. I used different dens.xml in different folders, for example
values-hdpi values-ldpi values-mdpi values-xhdpi values-xxhdpi
Method 2. I copied all my layouts into
layout layout-large layout-small layout-xlarge
and given different heights, widths and others
When I use the first method, I do not get the right responsive design, and when I use the second method, I get the right design, but it increases the size of the application.
So, please tell me the best process to achieve a 100% responsive design different from my two methods.
source share