效果:
此gif来自https://www.jianshu.com/p/33a798ac3298,不知道怎么录gif,就在网上找了一个别人的
1.新建一个Activity,命名为SplashActivity(当然名字可以随便),并将其设置为最先启动的Activity,即在AndroidManifest.xml中:
2.为其添加布局<?xml version="1.0" encoding="utf-8"?>
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"
tools:context="com.example.splashlx2.SplashActivity">
a