Reputation: 5522
I'm currently sizing a background for an android application, I want to know, what resolutions should I supply for low, medium and high density screens?
I can't make a decision, as the documentation seems to refer to the density, which depends on the resolution and the physical size of the screen, while I really want an image that is scaled as little as possible to minimize resource the footprint.
Many thanks
Upvotes: 3
Views: 9734
Reputation: 1323
You can also use four 9-patch images(for all density types) that has stretchable patches on header and footer of the image(that will just stretch the header and footer color to stretched area, this would look good in most cases) and create them based on minimum screen sizes:-
Upvotes: 1
Reputation: 15267
If you really want to choose background images based on resolution, you could combine density (-hdpi, -mdpi...) and screen size (-small, -large...) qualifiers, but it won't give you much precision, as they are not standardized, especially screen size qualifiers.
See Resource directory qualifiers for screen size and density.
Upvotes: 2
Reputation: 1302
It depends on a lot of different things. But for smaller apps I would just skip hdpi, mdpi & ldpi and put all of it in /drawable Put high res images there and phones with lower density will scale them down.
Links of interest: http://developer.android.com/guide/practices/screens_support.html
Happy coding
Upvotes: 4