Advertisement
Guest User

Untitled

a guest
Feb 19th, 2020
129
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 5.50 KB | None | 0 0
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <androidx.coordinatorlayout.widget.CoordinatorLayout xmlns:android="http://schemas.android.com/apk/res/android"
  3.    xmlns:app="http://schemas.android.com/apk/res-auto"
  4.    android:layout_width="match_parent"
  5.    android:layout_height="match_parent">
  6.  
  7.     <com.google.android.material.appbar.AppBarLayout
  8.        android:id="@+id/appBarLayout"
  9.        android:layout_width="match_parent"
  10.        android:layout_height="wrap_content">
  11.  
  12.         <com.google.android.material.appbar.CollapsingToolbarLayout
  13.            android:layout_width="match_parent"
  14.            android:layout_height="289dp"
  15.            app:layout_scrollFlags="scroll|exitUntilCollapsed"
  16.            app:titleEnabled="false">
  17.  
  18.             <androidx.constraintlayout.widget.ConstraintLayout
  19.                android:layout_width="match_parent"
  20.                android:layout_height="match_parent"
  21.                app:layout_collapseMode="parallax">
  22.  
  23.                 <!-- isi content mu disini -->
  24.  
  25.             </androidx.constraintlayout.widget.ConstraintLayout>
  26.  
  27.             <androidx.appcompat.widget.Toolbar
  28.                android:layout_width="match_parent"
  29.                android:layout_height="166dp"
  30.                app:layout_collapseMode="pin" />
  31.  
  32.             <ImageView
  33.                style="?attr/actionButtonStyle"
  34.                android:layout_width="wrap_content"
  35.                android:layout_height="wrap_content"
  36.                android:layout_gravity="top|start"
  37.                android:src="@android:drawable/ic_lock_power_off"
  38.                app:layout_collapseMode="pin" />
  39.  
  40.             <ImageView
  41.                style="?attr/actionButtonStyle"
  42.                android:layout_width="wrap_content"
  43.                android:layout_height="wrap_content"
  44.                android:layout_gravity="top|end"
  45.                android:src="@android:drawable/ic_lock_lock"
  46.                app:layout_collapseMode="pin" />
  47.         </com.google.android.material.appbar.CollapsingToolbarLayout>
  48.     </com.google.android.material.appbar.AppBarLayout>
  49.  
  50.     <androidx.cardview.widget.CardView
  51.        android:layout_width="match_parent"
  52.        android:layout_height="108dp"
  53.        android:layout_marginStart="16dp"
  54.        android:layout_marginEnd="16dp"
  55.        app:cardElevation="8dp"
  56.        app:layout_anchor="@id/appBarLayout"
  57.        app:layout_anchorGravity="bottom" />
  58.  
  59.     <androidx.core.widget.NestedScrollView
  60.        android:layout_width="match_parent"
  61.        android:layout_height="match_parent"
  62.        android:fillViewport="true"
  63.        app:layout_behavior="@string/appbar_scrolling_view_behavior">
  64.  
  65.         <LinearLayout
  66.            android:layout_width="match_parent"
  67.            android:layout_height="match_parent"
  68.            android:orientation="vertical"
  69.            android:paddingStart="16dp"
  70.            android:paddingTop="54dp"
  71.            android:paddingEnd="16dp">
  72.  
  73.             <TextView
  74.                android:layout_width="match_parent"
  75.                android:layout_height="wrap_content"
  76.                android:text="Hello World!"
  77.                android:textAppearance="?attr/textAppearanceHeadline3" />
  78.  
  79.             <TextView
  80.                android:layout_width="match_parent"
  81.                android:layout_height="wrap_content"
  82.                android:text="Hello World!"
  83.                android:textAppearance="?attr/textAppearanceHeadline3" />
  84.  
  85.             <TextView
  86.                android:layout_width="match_parent"
  87.                android:layout_height="wrap_content"
  88.                android:text="Hello World!"
  89.                android:textAppearance="?attr/textAppearanceHeadline3" />
  90.  
  91.             <TextView
  92.                android:layout_width="match_parent"
  93.                android:layout_height="wrap_content"
  94.                android:text="Hello World!"
  95.                android:textAppearance="?attr/textAppearanceHeadline3" />
  96.  
  97.             <TextView
  98.                android:layout_width="match_parent"
  99.                android:layout_height="wrap_content"
  100.                android:text="Hello World!"
  101.                android:textAppearance="?attr/textAppearanceHeadline3" />
  102.  
  103.             <TextView
  104.                android:layout_width="match_parent"
  105.                android:layout_height="wrap_content"
  106.                android:text="Hello World!"
  107.                android:textAppearance="?attr/textAppearanceHeadline3" />
  108.  
  109.             <TextView
  110.                android:layout_width="match_parent"
  111.                android:layout_height="wrap_content"
  112.                android:text="Hello World!"
  113.                android:textAppearance="?attr/textAppearanceHeadline3" />
  114.  
  115.             <TextView
  116.                android:layout_width="match_parent"
  117.                android:layout_height="wrap_content"
  118.                android:text="Hello World!"
  119.                android:textAppearance="?attr/textAppearanceHeadline3" />
  120.  
  121.             <TextView
  122.                android:layout_width="match_parent"
  123.                android:layout_height="wrap_content"
  124.                android:text="Hello World!"
  125.                android:textAppearance="?attr/textAppearanceHeadline3" />
  126.  
  127.             <TextView
  128.                android:layout_width="match_parent"
  129.                android:layout_height="wrap_content"
  130.                android:text="Hello World!"
  131.                android:textAppearance="?attr/textAppearanceHeadline3" />
  132.         </LinearLayout>
  133.  
  134.     </androidx.core.widget.NestedScrollView>
  135.  
  136. </androidx.coordinatorlayout.widget.CoordinatorLayout>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement