ViewPager 滑动页(四)

需求:在ViewPager 滑动页(三) 基础上,减少界面层级。

效果图:

图层数变更前:

ViewPager 滑动页(四)

图层数变更后:

ViewPager 滑动页(四)

主要代码实现:

<?xml version="1.0" encoding="utf-8"?>
<merge xmlns:android="http://schemas.android.com/apk/res/android"> <android.support.v4.view.ViewPager
android:id="@+id/viewpager"
android:layout_width="match_parent"
android:layout_height="match_parent" /> <LinearLayout
android:id="@+id/container"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_gravity="bottom"
android:background="@android:color/transparent"
android:gravity="center"
android:orientation="horizontal" /> </merge>

代码:http://pan.baidu.com/s/1c0AqPxu

上一篇:spring boot自定义线程池以及异步处理


下一篇:最小生成树之Prime法