Create a single layout for the default 4.7-inch (hdpi) screens in the layout folder and in the size folder. This is your Superset .
Now let's say you need your layouts for 7-inch devices. Create values folder-sw600dp for 7inch in portrait orientation
Now let's say that you want your layouts for 10-inch devices to create -dw720dp folder values
NOTE. - For landscape, just add "-land" before the folder names.
Now let's say that you have new devices, such as Xperia SP (4.7 'and XHDPI) and Nexus 5 (5 "and XXHDPI).
To do this, you can create values-xhdpi and values-xxhdpi-folders and similar add -land for landscape orientation.
I hope you understand how to create folders.
Now your superset is defined in the values folder. Most measurements will only be used here. Now run the application on other devices. No matter what the mismatch is, just add this specific size to your values folder
To check which folder your layouts, images are used from, use my trick.
Create five identical lines and put in it all the values, such as: Default screen Screen 4.7 XHDPI screen MDPI screen
Create five drop-down folders, most of them already exist: - drawable-hdpi, drawable-mdpi, drawable-xhdpi, drawable-xxhdpi, drawable-xxxhdpi Place the screenshots below in their corresponding folder under the same name





Here's what my res folder looks like, and I support all devices from screen 4.7 and above: -

Rahul Gupta Jan 24 '14 at 4:08 2014-01-24 04:08
source share