Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?xml version="1.0" encoding="utf-8"?>
- <androidx.coordinatorlayout.widget.CoordinatorLayout xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto"
- android:layout_width="match_parent"
- android:layout_height="match_parent">
- <com.google.android.material.appbar.AppBarLayout
- android:id="@+id/appBarLayout"
- android:layout_width="match_parent"
- android:layout_height="wrap_content">
- <com.google.android.material.appbar.CollapsingToolbarLayout
- android:layout_width="match_parent"
- android:layout_height="289dp"
- app:layout_scrollFlags="scroll|exitUntilCollapsed"
- app:titleEnabled="false">
- <androidx.constraintlayout.widget.ConstraintLayout
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- app:layout_collapseMode="parallax">
- <!-- isi content mu disini -->
- </androidx.constraintlayout.widget.ConstraintLayout>
- <androidx.appcompat.widget.Toolbar
- android:layout_width="match_parent"
- android:layout_height="166dp"
- app:layout_collapseMode="pin" />
- <ImageView
- style="?attr/actionButtonStyle"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_gravity="top|start"
- android:src="@android:drawable/ic_lock_power_off"
- app:layout_collapseMode="pin" />
- <ImageView
- style="?attr/actionButtonStyle"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_gravity="top|end"
- android:src="@android:drawable/ic_lock_lock"
- app:layout_collapseMode="pin" />
- </com.google.android.material.appbar.CollapsingToolbarLayout>
- </com.google.android.material.appbar.AppBarLayout>
- <androidx.cardview.widget.CardView
- android:layout_width="match_parent"
- android:layout_height="108dp"
- android:layout_marginStart="16dp"
- android:layout_marginEnd="16dp"
- app:cardElevation="8dp"
- app:layout_anchor="@id/appBarLayout"
- app:layout_anchorGravity="bottom" />
- <androidx.core.widget.NestedScrollView
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:fillViewport="true"
- app:layout_behavior="@string/appbar_scrolling_view_behavior">
- <LinearLayout
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:orientation="vertical"
- android:paddingStart="16dp"
- android:paddingTop="54dp"
- android:paddingEnd="16dp">
- <TextView
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:text="Hello World!"
- android:textAppearance="?attr/textAppearanceHeadline3" />
- <TextView
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:text="Hello World!"
- android:textAppearance="?attr/textAppearanceHeadline3" />
- <TextView
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:text="Hello World!"
- android:textAppearance="?attr/textAppearanceHeadline3" />
- <TextView
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:text="Hello World!"
- android:textAppearance="?attr/textAppearanceHeadline3" />
- <TextView
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:text="Hello World!"
- android:textAppearance="?attr/textAppearanceHeadline3" />
- <TextView
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:text="Hello World!"
- android:textAppearance="?attr/textAppearanceHeadline3" />
- <TextView
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:text="Hello World!"
- android:textAppearance="?attr/textAppearanceHeadline3" />
- <TextView
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:text="Hello World!"
- android:textAppearance="?attr/textAppearanceHeadline3" />
- <TextView
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:text="Hello World!"
- android:textAppearance="?attr/textAppearanceHeadline3" />
- <TextView
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:text="Hello World!"
- android:textAppearance="?attr/textAppearanceHeadline3" />
- </LinearLayout>
- </androidx.core.widget.NestedScrollView>
- </androidx.coordinatorlayout.widget.CoordinatorLayout>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement