activity_facility_detail.xml 2.07 KB
Newer Older
1 2 3
<?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"
4
    xmlns:tools="http://schemas.android.com/tools"
5 6 7 8 9 10 11 12


    android:layout_width="match_parent"
    android:layout_height="match_parent">

    <com.google.android.material.appbar.AppBarLayout
        android:id="@+id/appbar"

13 14
        android:layout_width="match_parent"
        android:layout_height="192dp">
15 16 17 18

        <com.google.android.material.appbar.CollapsingToolbarLayout
            android:layout_width="match_parent"
            android:layout_height="match_parent"
19
            app:contentScrim="?attr/colorPrimary"
20 21 22
            app:layout_scrollFlags="scroll|exitUntilCollapsed"
            app:layout_scrollInterpolator="@android:anim/decelerate_interpolator"

23
            app:toolbarId="@+id/toolbar">
24 25 26 27 28 29 30 31 32 33 34 35

            <ImageView
                android:id="@+id/facility_bg_image"
                android:layout_width="match_parent"
                android:layout_height="match_parent"
                android:contentDescription="@string/bg_image_desc"

                android:scaleType="centerCrop"
                app:layout_collapseMode="parallax" />

            <androidx.appcompat.widget.Toolbar
                android:id="@+id/toolbar"
36 37
                android:layout_width="match_parent"
                android:layout_height="?attr/actionBarSize" />
38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55
        </com.google.android.material.appbar.CollapsingToolbarLayout>
    </com.google.android.material.appbar.AppBarLayout>

    <androidx.core.widget.NestedScrollView
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        app:layout_behavior="com.google.android.material.appbar.AppBarLayout$ScrollingViewBehavior">


        <TextView
            android:id="@+id/open_hours"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            tools:text="Hours" />
    </androidx.core.widget.NestedScrollView>


</androidx.coordinatorlayout.widget.CoordinatorLayout>