How to distinguish between Galaxy S-3 and Galaxy S-4 layouts?

I have a problem with delimiting layout folders for galaxy s4 ssung and galaxy s3 ssung. I tried layout-sw360dp, layout-sw360dp-xxhdpi, layout-sw360dp-xhdpi, etc. All the time, the galaxy s4 and galaxy s3 are selected from the layout-sw360dp-xhdpi.

So what should be the correct layout folder for both of these devices?

enter image description here

+6
source share
2 answers

I use some specific resolution values โ€‹โ€‹in my projects to distinguish them from other layouts and screens.

You can create layouts with the exact minimum height and width that can be seen from gsmarena.

Samsung S3: http://www.gsmarena.com/samsung_i9300_galaxy_s_iii-4238.php

S3 layout folder name: layout-w720-h1280

Samsung S4: http://www.gsmarena.com/samsung_i9500_galaxy_s4-5125.php

S4 layout folder name: layout-w1080-h1920

Thus, they will use the appropriate layouts, creating such folders of layouts.

+2
source

Galaxy S4 has a Full HD screen, you can create a separate layout for this resolution using layout-xxhdpi for S4 and layout-xhdpi for S3.

+1
source

All Articles