1.背景
在平常的开发应用中,我们常常需要设计一个app的启动界面,它没有标题栏,只显示3到5秒后直接跳转,或是用户可以选择直接跳转。这一功能广泛应用于各个app当中,特别是显示广告的时候。所以我们也来学习一下如何实现这一功能。
2.效果图
3.布局文件
封面界面的xml布局文件
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical">
<ImageView
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@drawable/fangmian_xinchun"/>
<TextView
android:id="@+id/textView"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textSize=