Sliding up when the head hidden
<androidx.coordinatorlayout.widget.CoordinatorLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@color/appWhite">
<com.google.android.material.appbar.AppBarLayout
android:id="@+id/appBar"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:theme="@android:style/ThemeOverlay.Material.ActionBar">
<com.google.android.material.appbar.CollapsingToolbarLayout
android:id="@+id/ctlToolBar"
android:layout_width="match_parent"
android:layout_height="wrap_content"
app:contentScrim="@color/appWhite"
app:layout_scrollFlags="scroll|exitUntilCollapsed|snap"
app:statusBarScrim="@android:color/transparent"
app:titleEnabled="false">
<RelativeLayout
android:id="@+id/rlMap"
android:layout_width="match_parent"
android:layout_height="@dimen/qb_px_250"
android:background="@color/appWhite">
<com.amap.api.maps.TextureMapView
android:id="@+id/mvMapView"
android:layout_width="match_parent"
android:layout_height="@dimen/qb_px_250"
android:background="@android:color/white" />
<ImageView
android:id="@+id/ivLocation"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true"
android:layout_marginLeft="@dimen/qb_px_8"
android:layout_marginBottom="@dimen/qb_px_8"
android:src="@mipmap/location_back" />
</RelativeLayout>
</com.google.android.material.appbar.CollapsingToolbarLayout>
</com.google.android.material.appbar.AppBarLayout>
<androidx.recyclerview.widget.RecyclerView
android:id="@+id/recyclerView"
android:layout_width="match_parent"
android:layout_height="match_parent"
app:layout_behavior="@string/appbar_scrolling_view_behavior"/>
</androidx.coordinatorlayout.widget.CoordinatorLayout>