Skip to content

Commit 37cbb80

Browse files
add mock property detail layout
1 parent 132c50c commit 37cbb80

2 files changed

Lines changed: 67 additions & 3 deletions

File tree

103 KB
Loading
Lines changed: 67 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,72 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<layout>
3-
<androidx.constraintlayout.widget.ConstraintLayout
4-
xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent"
3+
4+
<androidx.coordinatorlayout.widget.CoordinatorLayout xmlns:android="http://schemas.android.com/apk/res/android"
5+
xmlns:app="http://schemas.android.com/apk/res-auto"
6+
android:layout_width="match_parent"
57
android:layout_height="match_parent">
68

7-
</androidx.constraintlayout.widget.ConstraintLayout>
9+
<!--
10+
OUTLINE
11+
<CoordinatorLayout>
12+
<AppbarLayout>
13+
<CollapsingToolbarLayout>
14+
<Header/>
15+
<Toolbar/>
16+
</CollapsingToolbarLayout>
17+
</ AppbarLayout >
18+
<Scrollable View.../>
19+
</CoordinatorLayout>
20+
-->
21+
22+
<com.google.android.material.appbar.AppBarLayout
23+
android:id="@+id/appbar"
24+
android:layout_width="match_parent"
25+
android:layout_height="wrap_content">
26+
27+
<com.google.android.material.appbar.CollapsingToolbarLayout
28+
android:id="@+id/collapsingToolbar"
29+
android:layout_width="match_parent"
30+
android:layout_height="200dp"
31+
app:contentScrim="?attr/colorPrimary"
32+
app:expandedTitleMarginEnd="64dp"
33+
app:expandedTitleMarginStart="48dp"
34+
app:layout_scrollFlags="scroll|exitUntilCollapsed">
35+
36+
<ImageView
37+
android:id="@+id/headerImage"
38+
android:layout_width="match_parent"
39+
android:layout_height="match_parent"
40+
android:scaleType="centerCrop"
41+
android:src="@drawable/mock_property"
42+
app:layout_collapseMode="parallax" />
43+
44+
<androidx.appcompat.widget.Toolbar
45+
android:id="@+id/toolbar"
46+
android:layout_width="match_parent"
47+
android:layout_height="?attr/actionBarSize"
48+
app:layout_collapseMode="parallax" />
49+
</com.google.android.material.appbar.CollapsingToolbarLayout>
50+
51+
52+
</com.google.android.material.appbar.AppBarLayout>
53+
54+
55+
<androidx.constraintlayout.widget.ConstraintLayout
56+
android:layout_width="match_parent"
57+
android:layout_height="match_parent"
58+
app:layout_behavior="@string/appbar_scrolling_view_behavior">
59+
60+
<LinearLayout
61+
android:layout_width="wrap_content"
62+
android:layout_height="3000dp"
63+
android:background="#f00"
64+
app:layout_constraintEnd_toEndOf="parent"
65+
app:layout_constraintStart_toStartOf="parent"
66+
app:layout_constraintTop_toTopOf="parent" />
67+
68+
</androidx.constraintlayout.widget.ConstraintLayout>
69+
70+
71+
</androidx.coordinatorlayout.widget.CoordinatorLayout>
872
</layout>

0 commit comments

Comments
 (0)