1
+ <?xml version =" 1.0" encoding =" utf-8" ?>
2
+ <layout xmlns : android =" http://schemas.android.com/apk/res/android"
3
+ xmlns : app =" http://schemas.android.com/apk/res-auto" >
4
+
5
+ <androidx .coordinatorlayout.widget.CoordinatorLayout
6
+ android : layout_width =" match_parent"
7
+ android : layout_height =" match_parent"
8
+ android : fitsSystemWindows =" true" >
9
+
10
+ <com .google.android.material.appbar.AppBarLayout
11
+ android : id =" @+id/app_bar_layout"
12
+ android : layout_width =" match_parent"
13
+ android : layout_height =" @dimen/appbar_layout_height"
14
+ android : background =" @android:color/transparent"
15
+ android : fitsSystemWindows =" true"
16
+ app : elevation =" 0dp"
17
+ app : expanded =" false"
18
+ app : layout_behavior =" com.matter.virtual.device.app.core.common.ui.DisableAppBarLayoutBehavior" >
19
+
20
+ <com .google.android.material.appbar.CollapsingToolbarLayout
21
+ android : id =" @+id/toolbar_layout"
22
+ android : layout_width =" match_parent"
23
+ android : layout_height =" match_parent"
24
+ android : fitsSystemWindows =" true"
25
+ android : theme =" @style/Theme.CollapsingToolbar"
26
+ app : layout_scrollFlags =" scroll|exitUntilCollapsed" >
27
+
28
+ <TextView
29
+ android : id =" @+id/collapse_title"
30
+ android : layout_width =" match_parent"
31
+ android : layout_height =" match_parent"
32
+ android : gravity =" center"
33
+ android : text =" @string/title_loading"
34
+ android : textAlignment =" center"
35
+ android : textSize =" @dimen/collapse_title_text_size" />
36
+
37
+ <androidx .appcompat.widget.Toolbar
38
+ android : id =" @+id/toolbar"
39
+ android : layout_width =" match_parent"
40
+ android : layout_height =" ?attr/actionBarSize"
41
+ android : layout_gravity =" bottom"
42
+ android : background =" @android:color/transparent"
43
+ android : contentInsetStart =" 0dp"
44
+ android : contentInsetLeft =" 0dp"
45
+ android : contentInsetEnd =" 0dp"
46
+ android : contentInsetRight =" 0dp"
47
+ android : theme =" @style/Theme.CollapsingToolbar"
48
+ app : contentInsetEnd =" 0dp"
49
+ app : contentInsetLeft =" 0dp"
50
+ app : contentInsetRight =" 0dp"
51
+ app : contentInsetStart =" 0dp"
52
+ app : contentInsetStartWithNavigation =" 0dp"
53
+ app : elevation =" 0dp"
54
+ app : layout_collapseMode =" pin" >
55
+
56
+ <androidx .constraintlayout.widget.ConstraintLayout
57
+ android : layout_width =" match_parent"
58
+ android : layout_height =" match_parent" >
59
+
60
+ <TextView
61
+ android : id =" @+id/toolbar_title"
62
+ android : layout_width =" match_parent"
63
+ android : layout_height =" wrap_content"
64
+ android : text =" @string/title_loading"
65
+ android : textAlignment =" viewStart"
66
+ android : textSize =" @dimen/toolbar_title_text_size"
67
+ app : layout_constraintBottom_toBottomOf =" parent"
68
+ app : layout_constraintStart_toStartOf =" parent"
69
+ app : layout_constraintTop_toTopOf =" parent" />
70
+ </androidx .constraintlayout.widget.ConstraintLayout>
71
+ </androidx .appcompat.widget.Toolbar>
72
+ </com .google.android.material.appbar.CollapsingToolbarLayout>
73
+ </com .google.android.material.appbar.AppBarLayout>
74
+
75
+ <androidx .core.widget.NestedScrollView
76
+ android : id =" @+id/nested_scroll_view"
77
+ android : layout_width =" match_parent"
78
+ android : layout_height =" match_parent"
79
+ android : fillViewport =" true"
80
+ app : layout_behavior =" @string/appbar_scrolling_view_behavior" >
81
+
82
+ <FrameLayout
83
+ android : layout_width =" match_parent"
84
+ android : layout_height =" wrap_content"
85
+ android : animateLayoutChanges =" true" >
86
+
87
+ <androidx .constraintlayout.widget.ConstraintLayout
88
+ android : layout_width =" match_parent"
89
+ android : layout_height =" wrap_content"
90
+ android : layout_marginStart =" @dimen/menu_item_side_space"
91
+ android : layout_marginTop =" 20dp"
92
+ android : layout_marginEnd =" @dimen/menu_item_side_space"
93
+ android : background =" @drawable/menu_item_bg" >
94
+
95
+ <com .google.android.material.progressindicator.CircularProgressIndicator
96
+ android : id =" @+id/loading_progress"
97
+ android : layout_width =" wrap_content"
98
+ android : layout_height =" wrap_content"
99
+ android : layout_marginStart =" 20dp"
100
+ android : layout_marginTop =" 20dp"
101
+ android : layout_marginEnd =" 20dp"
102
+ android : layout_marginBottom =" 20dp"
103
+ app : indicatorColor =" @color/colorControlActivated"
104
+ android : indeterminate =" true"
105
+ app : layout_constraintBottom_toTopOf =" @+id/loading_description"
106
+ app : layout_constraintEnd_toEndOf =" parent"
107
+ app : layout_constraintStart_toStartOf =" parent"
108
+ app : layout_constraintTop_toTopOf =" parent" />
109
+
110
+ <androidx .appcompat.widget.AppCompatTextView
111
+ android : id =" @+id/loading_description"
112
+ android : layout_width =" match_parent"
113
+ android : layout_height =" wrap_content"
114
+ android : layout_marginStart =" 20dp"
115
+ android : layout_marginTop =" 20dp"
116
+ android : layout_marginEnd =" 20dp"
117
+ android : layout_marginBottom =" 20dp"
118
+ android : gravity =" center"
119
+ android : text =" @string/description_loading"
120
+ android : textAlignment =" center"
121
+ android : textSize =" 17sp"
122
+ app : layout_constraintBottom_toBottomOf =" parent"
123
+ app : layout_constraintEnd_toEndOf =" parent"
124
+ app : layout_constraintStart_toStartOf =" parent"
125
+ app : layout_constraintTop_toBottomOf =" @+id/loading_progress" />
126
+ </androidx .constraintlayout.widget.ConstraintLayout>
127
+ </FrameLayout >
128
+ </androidx .core.widget.NestedScrollView>
129
+ </androidx .coordinatorlayout.widget.CoordinatorLayout>
130
+ </layout >
0 commit comments