I have been doing a lot of research on the best ways to design layouts for different screen sizes, screen density and orientations and I am getting increasingly confused.
1. Design Density vs Screen Size
I have read this link
Now when designing for gingerbread what should be considered. Layouts in each folder say LDPI, HDPI and MDPI
. But that increases the size of the entire application.
Now i have stopped considering for LDPI. But now we also have XHDPI and XXHDPI
.
So how do we go about designing for all pages and yet keep the size reasonable?
And what should be given more preference screen size, density or resolution?
FOr images 9-patch images
can be used . What is the best tool to create them?
2.Landscape vs Potrait.
Now in this layout equation if we include different layouts for screen orientation, the application becomes bulkier and the work tedious.
Creating smaller xmls and including them is one good solution
but even then ,considering all the different types it still becomes tedious. Specially for Android 4 and above with each fragment having a different layout,
My question is-- what is the best and most efficient way to design layouts considering all the above.