<LinearLayout
android:layout_width=“match_parent”
android:layout_height=“40dp”
android:layout_gravity=“bottom”
android:orientation=“horizontal”>
<ImageView
android:layout_width=“0dp”
android:layout_height=“match_parent”
android:layout_weight=“1”
android:src=“@mipmap/ic_launcher”/>
<ImageView
android:layout_width=“0dp”
android:layout_height=“match_parent”
android:layout_weight=“1”
android:src=“@mipmap/ic_launcher”/>
<ImageView
android:layout_width=“0dp”
android:layout_height=“70dp”
android:layout_weight=“1”
android:layout_gravity=“bottom” //子控件配合
android:src=“@mipmap/ic_launcher”/>
<ImageView
android:layout_width=“0dp”
android:layout_height=“match_parent”
android:layout_weight=“1”
android:src=“@mipmap/ic_launcher”/>
<ImageView
android:layout_width=“0dp”
android:layout_height=“match_parent”
android:layout_weight=“1”
android:src=“@mipmap/ic_launcher”/>
了解 PagerTransformer
===================
第一步:写布局
注意点:根布局 和 ViewPager 都得加 clipChildren = “false" 属性,缺一不可
<?xml version="1.0" encoding="utf-8"?><LinearLayout xmlns:android=“http://schemas.android.com/apk/res/android”
xmlns:app=“http://schemas.android.com/apk/res-auto”
xmlns:tools=“http://schemas.android.com/tool