Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?xml version="1.0" encoding="utf-8"?>
- <FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
- 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" >
- <LinearLayout
- android:id="@+id/main"
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:orientation="vertical">
- <androidx.coordinatorlayout.widget.CoordinatorLayout
- android:id="@+id/main_content"
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:fitsSystemWindows="false">
- <com.google.android.material.appbar.AppBarLayout
- android:id="@+id/appbar"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:background="@color/gray">
- <com.google.android.material.appbar.CollapsingToolbarLayout
- android:id="@+id/collapsing_toolbar"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:fitsSystemWindows="true"
- app:expandedTitleMarginEnd="64dp"
- app:expandedTitleMarginStart="48dp"
- app:expandedTitleTextAppearance="@android:color/transparent"
- app:layout_scrollFlags="scroll|exitUntilCollapsed">
- <!--app:layout_scrollFlags="scroll|enterAlways|enterAlwaysCollapsed">-->
- <androidx.cardview.widget.CardView
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- app:cardElevation="1dp"
- app:cardCornerRadius="@dimen/default_margin"
- app:cardUseCompatPadding="true">
- <LinearLayout
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:orientation="vertical">
- // Set Header here
- </LinearLayout>
- </androidx.cardview.widget.CardView>
- </com.google.android.material.appbar.CollapsingToolbarLayout>
- <View
- android:layout_width="match_parent"
- android:layout_height="wrap_content" />
- </com.google.android.material.appbar.AppBarLayout>
- <RecyclerView
- android:id="@+id/list"
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:layout_marginTop="4dp"
- android:background="@color/white"
- app:layout_collapseMode="parallax"
- app:layout_behavior="@string/appbar_scrolling_view_behavior" />
- </androidx.coordinatorlayout.widget.CoordinatorLayout>
- </LinearLayout>
- </FrameLayout>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement