首先看一个效果图:
XML布局如下:
<LinearLayout
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="com.xbxzc.layouttransition.MainActivity">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"