2

我想使用图层列表创建像谷歌启动画面(下图)这样的启动画面。我尝试过,但不同设备上的 UI 表现不同。这是我的代码

<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>

有什么方法可以让用户界面看起来像不同设备上的谷歌应用程序?

材料设计参考

在此处输入图像描述

4

1 回答 1

0

你的意思是“launcher_text2”图像,rt?在大约高度(底部工具栏+您想要的边距)的底部添加带有空格填充的图像

像这样的东西并再次检查

于 2016-11-04T05:59:25.703 回答