blob: 98f6fba81575f5568d3485e002178ad92205347e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
|
<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:orientation="vertical"
android:layout_width="match_parent"
android:layout_height="match_parent">
<androidx.constraintlayout.widget.ConstraintLayout
android:id="@id/flow_host_header"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintLeft_toLeftOf="parent"
app:layout_constraintRight_toRightOf="parent"
android:layout_width="match_parent"
android:layout_height="0dp">
<!-- TODO: firstBaselineToTopHeight compat -->
<androidx.constraintlayout.widget.ConstraintLayout
android:layout_width="0dp"
android:layout_height="wrap_content"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintEnd_toEndOf="parent">
<ProgressBar
android:id="@+id/flow_header_progressbar"
android:layout_width="0dp"
android:layout_height="wrap_content"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintBottom_toTopOf="@id/flow_header_progressbar_guideline"
android:indeterminate="true"
android:paddingTop="-4dp"
style="?android:attr/progressBarStyleHorizontal"/>
<androidx.constraintlayout.widget.Guideline
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:id="@id/flow_header_progressbar_guideline"
android:orientation="horizontal"
app:layout_constraintGuide_begin="2dp" />
</androidx.constraintlayout.widget.ConstraintLayout>
<TextView
android:id="@id/flow_header_title"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="64dp"
android:textSize="24sp"
android:textColor="?android:attr/textColorPrimary"
android:layout_gravity="center_horizontal"
android:firstBaselineToTopHeight="32dp"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintLeft_toLeftOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintRight_toRightOf="parent"
android:textAppearance="?android:attr/textAppearanceLarge"
tools:text="Title" />
<TextView
android:id="@id/flow_header_subtitle"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="8dp"
android:textSize="16sp"
android:textColor="?android:attr/textColorPrimary"
android:layout_gravity="center_horizontal"
android:firstBaselineToTopHeight="24dp"
android:textScaleX="1.1"
app:layout_constraintTop_toBottomOf="@id/flow_header_title"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintLeft_toLeftOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintRight_toRightOf="parent"
android:textAppearance="?android:attr/textAppearanceMedium"
tools:text="Subtitle" />
</androidx.constraintlayout.widget.ConstraintLayout>
<moe.yuuta.flow.widgets.FlowPager
android:id="@id/flow_host_pager"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="44dp"
app:layout_constraintTop_toBottomOf="@id/flow_host_header"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintLeft_toLeftOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintRight_toRightOf="parent"/>
<androidx.constraintlayout.widget.ConstraintLayout
android:id="@id/flow_host_nav"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="38dp"
android:layout_marginStart="44dp"
android:layout_marginLeft="44dp"
android:layout_marginEnd="44dp"
android:layout_marginRight="44dp"
app:layout_constraintTop_toBottomOf="@id/flow_host_pager"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintLeft_toLeftOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintRight_toRightOf="parent"
style="?android:attr/buttonBarStyle">
<Button
android:id="@id/flow_nav_left_button"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintLeft_toLeftOf="parent"
tools:text="Back"
style="?android:attr/buttonBarButtonStyle"/>
<Button
android:id="@id/flow_nav_right_button"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
app:layout_constraintRight_toRightOf="parent"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
tools:text="Next"
style="?attr/positiveButtonStyle" />
</androidx.constraintlayout.widget.ConstraintLayout>
</androidx.constraintlayout.widget.ConstraintLayout>
|