android ViewPager滑动欢迎界面
【推荐】2019 Java 开发者跳槽指南.pdf(吐血整理) >>> 我们看到很多应用安装后第一次打开时会出现一页一页滑动的欢迎界面,如下所示,下面就来看看实现过程 1、布局 看到这样的应用我们很容易想到它的所用组件和布局方式,就来看布局方式 <FrameLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="match_parent" android:orientation="vertical" tools:context=".MainActivity" > <android.support.v4.view.ViewPager android:id="@+id/viewpager" android:layout_width="match_parent" android:layout_height="wrap_content" android:background="@android:color/white" > </android.support.v4.view.ViewPager>