解决应用白屏

修改原生的drawable目录下的launch_background.xml

<?xml version="1.0" encoding="utf-8"?><!-- Modify this file to customize your launch splash screen -->
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
    <item android:drawable="@android:color/white" />
    <!-- You can insert your own image assets here -->
    <!-- <item>
        <bitmap
            android:gravity="center"
            android:src="@mipmap/launch_image" />
    </item> -->
     //这样写可以通过图片铺满整个屏幕,不同屏幕可能会有拉伸
    <item android:drawable="@mipmap/splash_bg">
    </item>
</layer-list>

  

posted @ 2019-02-19 16:46  飞雪飘鸿  阅读(376)  评论(0编辑  收藏  举报
https://damo.alibaba.com/ https://tianchi.aliyun.com/course?spm=5176.21206777.J_3941670930.5.87dc17c9BZNvLL