David Marsh
David Marsh

Reputation: 147

How many layout resource folders do i really need to cover all android devices

I have found many questions and answers on this topic and have read through the developer guidelines but with many different device sizes out and no doubt more new sizes in future, what would be the best practice to cover all of these? i have seen people mention that by using layout-small layout-normal layout-large layout-xlarge, would be enough to cover the majority of devices that are out! i have seen others say not to use them as they are deprecated and instead should use layouts with smallest width i.e layout-sw380dp layout-sw480dp and so forth. with all this in mind i find my self mixing layouts and to be honest it gets confusing! take a look at this picture for example

enter image description here

I have many layouts, do i really need all of these? so to the experienced android developers i ask, how many and what layout resource folders do you use to target the huge range of devices out there?

Upvotes: 2

Views: 266

Answers (1)

Mattia
Mattia

Reputation: 124

Usually i keep all auto-generated directories because with the "default" structure you can create application for many devices. If you want create an app that uses more graphical details, you should use all already created directory that are in the screenshot

EDIT: Default structure = This is the auto-generated directories for new project with Android Studio :)

Upvotes: 1

Related Questions