2

I want to create splash screen like google splash screen(image attached below) using layer-list.I tried but UI behaving different on different devices. here is my code

<layer-list xmlns:android="http://schemas.android.com/apk/res/android"
    android:opacity="opaque">
    <!-- The background color, preferably the same as your normal theme -->
    <item android:id="@+id/item_bottom_stroke" >
        <shape android:shape="rectangle">
            <solid android:color="#FFFFFF"/>
        </shape>
    </item>
    <!-- Your product logo - 144dp color version of your app icon -->
    <item>
        <bitmap android:gravity="center"
            android:src="@drawable/web_hi_res_512" />
    </item>
    <item android:gravity="bottom">
        <bitmap android:gravity="bottom"
            android:src="@drawable/launcher_text2" />
    </item>
</layer-list>

Is there any way that UI look like google apps on different devices ?

material design reference

enter image description here

JosephM
  • 2,935
  • 4
  • 18
  • 28
  • Checked it in Emulator and it is working fine. Can you post screenshot of your issue? – Myth Nov 03 '16 at 11:22
  • getting issue when check on different devices. text not showing on some devices. – JosephM Nov 04 '16 at 04:41
  • You mean "launcher_text2" image, rt? Append this image with Space padding in bottom of about height of (Bottom toolbar + margin you want) – Myth Nov 04 '16 at 05:49

1 Answers1

0

You mean "launcher_text2" image, rt? Append this image with Space padding in bottom of about height of (Bottom toolbar + margin you want)

Something like this and check it again

Myth
  • 1,218
  • 12
  • 15