截图
启动页的
activity_splash.xml
我用了一张图片自己添加吧
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:id="@+id/activity_splash"
tools:context=".SplashActivity"
android:theme="@android:style/Theme.NoTitleBar.Fullscreen"
android:background="@mipmap/diyi">
manifest 定义
package="com.stdu">
android:allowBackup="true"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:roundIcon="@mipmap/ic_launcher_round"
android:supportsRtl="true"
android:theme="@style/AppTheme">
SplashActivity.javpackage com.stdu;
import android.content.Intent;
import an