<?
xml
version
=
"1.0"
encoding
=
"utf-8"
?>
<
androidx.coordinatorlayout.widget.CoordinatorLayout
android:layout_width
=
"match_parent"
android:layout_height
=
"match_parent"
tools:context
=
".MainActivity"
>
<
com.google.android.material.appbar.AppBarLayout
android:id
=
"@+id/appBarLayout"
android:layout_width
=
"match_parent"
android:layout_height
=
"wrap_content"
android:theme
=
"@style/ThemeOverlay.AppCompat.Dark.ActionBar"
>
<
com.google.android.material.appbar.CollapsingToolbarLayout
android:layout_width
=
"match_parent"
android:layout_height
=
"wrap_content"
app:contentScrim
=
"@color/green"
app:layout_scrollFlags
=
"scroll|snap|exitUntilCollapsed"
app:title
=
"@string/app_name"
>
<
ImageView
android:layout_width
=
"match_parent"
android:layout_height
=
"250dp"
android:scaleType
=
"centerCrop"
android:src
=
"@drawable/image"
app:layout_collapseMode
=
"parallax"
/>
<
androidx.appcompat.widget.Toolbar
android:layout_width
=
"match_parent"
android:layout_height
=
"?attr/actionBarSize"
app:layout_collapseMode
=
"pin"
app:popupTheme
=
"@style/ThemeOverlay.AppCompat.Dark"
/>
</
com.google.android.material.appbar.CollapsingToolbarLayout
>
</
com.google.android.material.appbar.AppBarLayout
>
<
androidx.core.widget.NestedScrollView
android:layout_width
=
"match_parent"
android:layout_height
=
"wrap_content"
app:layout_behavior
=
"@string/appbar_scrolling_view_behavior"
>
<
TextView
android:layout_width
=
"match_parent"
android:layout_height
=
"wrap_content"
android:lineSpacingExtra
=
"8sp"
android:padding
=
"16dp"
android:text
=
"@string/content"
android:textSize
=
"20sp"
/>
</
androidx.core.widget.NestedScrollView
>
</
androidx.coordinatorlayout.widget.CoordinatorLayout
>