Reputation: 820
I have the design of the screen. for example - my design has two layers (dark and light green colors) and text or logo.
How I can to create this logo for all screens? I think, that ONE big image (and copies for hdpi mdpi etc, because this application can be used on 320x240 screen and on the google nexus with retina-style display) - is no good idea. How can I to create one background, one rectangle and logo layers?
Upvotes: 0
Views: 273
Reputation: 17119
You have to take a look at LayerDrawable :
A
Drawable
that manages an array of otherDrawables
. These are drawn in array order, so the element with the largest index will be drawn on top.It can be defined in an XML file with the
<layer-list
> element. Each Drawable in the layer is defined in a nested<item>
.
Upvotes: 1