效果1:
直接先上效果
cl_1.gif
看了效果再上代码
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent">
android:id="@+id/app_bar"
android:layout_width="match_parent"
android:layout_height="wrap_content">
android:id="@+id/ctl_test"
android:layout_width="match_parent"
android:layout_height="wrap_content"
app:contentScrim="@color/colorPrimary"
app:layout_scrollFlags="scroll|exitUntilCollapsed">
android:layout_wid