monyag
monyag

Reputation: 820

How do I create splash screen that works on all screen dimensions?

I have the design of the screen. for example - my design has two layers (dark and light green colors) and text or logo.

enter image description here

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

Answers (1)

Binoy Babu
Binoy Babu

Reputation: 17119

You have to take a look at LayerDrawable :

A Drawable that manages an array of other Drawables. 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>.

More details

Guide

Upvotes: 1

Related Questions