frament

在第一个界面first frgment中点击按钮show next page将跳转进入第二个界面second fragent,再次单击按钮show next page跳转进入第三个界面first fragment.首先做好三个布局界面的设计,其次再运用java来实现三个界面的跳转。

第一个主要布局代码如下

<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"

tools:context="com.example.mpyypm.chacha1.FragmentActivity">

posted on 2017-04-18 22:42  林湘  阅读(260)  评论(0)    收藏  举报

导航