|
1 | 1 | <?xml version="1.0" encoding="utf-8"?>
|
2 |
| - |
3 |
| -<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android" |
4 |
| - xmlns:tools="http://schemas.android.com/tools" |
| 2 | +<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" |
5 | 3 | android:layout_width="match_parent"
|
6 | 4 | android:layout_height="match_parent"
|
7 |
| - xmlns:app="http://schemas.android.com/apk/res-auto" |
8 | 5 | android:background="?attr/tutorialBackground"
|
9 | 6 | android:gravity="center"
|
10 |
| - android:orientation="horizontal"> |
11 |
| - |
12 |
| - <androidx.constraintlayout.widget.Guideline |
13 |
| - android:id="@+id/center_guideline" |
14 |
| - android:layout_width="wrap_content" |
15 |
| - android:layout_height="match_parent" |
16 |
| - android:orientation="vertical" |
17 |
| - app:layout_constraintGuide_percent="0.55" /> |
| 7 | + android:paddingLeft="@dimen/huge_gap" |
| 8 | + android:paddingRight="@dimen/huge_gap"> |
18 | 9 |
|
19 |
| - <GridLayout |
20 |
| - android:layout_width="300dp" |
| 10 | + <ImageView |
| 11 | + android:layout_width="0dp" |
21 | 12 | android:layout_height="wrap_content"
|
22 |
| - android:layout_gravity="center_vertical" |
23 |
| - android:layout_marginBottom="8dp" |
24 |
| - android:layout_marginTop="8dp" |
25 |
| - android:columnCount="2" |
26 |
| - app:layout_constraintBottom_toBottomOf="parent" |
27 |
| - app:layout_constraintTop_toTopOf="parent" |
28 |
| - app:layout_constraintEnd_toStartOf="@id/center_guideline"> |
29 |
| - |
30 |
| - <ImageView |
31 |
| - android:id="@+id/mount_zao" |
32 |
| - android:layout_width="150dp" |
33 |
| - android:layout_height="118dp" |
34 |
| - android:contentDescription="@string/welcome_image_mount_zao" |
35 |
| - android:scaleType="fitXY" |
36 |
| - android:src="@drawable/mount_zao" /> |
37 |
| - |
38 |
| - <ImageView |
39 |
| - android:id="@+id/llamas" |
40 |
| - android:layout_width="150dp" |
41 |
| - android:layout_height="118dp" |
42 |
| - android:contentDescription="@string/welcome_image_llamas" |
43 |
| - android:scaleType="fitXY" |
44 |
| - android:src="@drawable/llamas" /> |
45 |
| - |
46 |
| - <ImageView |
47 |
| - android:id="@+id/rainbow_bridge" |
48 |
| - android:layout_width="150dp" |
49 |
| - android:layout_height="118dp" |
50 |
| - android:contentDescription="@string/welcome_image_rainbow_bridge" |
51 |
| - android:scaleType="fitXY" |
52 |
| - android:src="@drawable/rainbow_bridge" /> |
53 |
| - |
54 |
| - <ImageView |
55 |
| - android:id="@+id/tulip" |
56 |
| - android:layout_width="150dp" |
57 |
| - android:layout_height="118dp" |
58 |
| - android:contentDescription="@string/welcome_image_tulip" |
59 |
| - android:scaleType="fitXY" |
60 |
| - android:src="@drawable/tulip" /> |
61 |
| - |
62 |
| - </GridLayout> |
63 |
| - |
| 13 | + android:layout_marginRight="@dimen/large_gap" |
| 14 | + android:layout_weight="0.5" |
| 15 | + android:adjustViewBounds="true" |
| 16 | + android:contentDescription="@string/welcome_do_upload_content_description" |
| 17 | + android:src="@drawable/welcome_do_upload" /> |
64 | 18 |
|
65 | 19 | <LinearLayout
|
66 |
| - android:layout_width="wrap_content" |
| 20 | + android:layout_width="0dp" |
67 | 21 | android:layout_height="wrap_content"
|
68 |
| - android:gravity="center_vertical" |
69 |
| - android:orientation="vertical" |
70 |
| - android:layout_marginStart="@dimen/standard_gap" |
71 |
| - android:layout_marginLeft="@dimen/standard_gap" |
72 |
| - app:layout_constraintStart_toEndOf="@id/center_guideline" |
73 |
| - app:layout_constraintBottom_toBottomOf="parent" |
74 |
| - app:layout_constraintTop_toTopOf="parent"> |
75 |
| - |
| 22 | + android:layout_weight="0.5" |
| 23 | + android:orientation="vertical"> |
76 | 24 |
|
77 | 25 | <TextView
|
78 |
| - android:layout_width="wrap_content" |
| 26 | + android:layout_width="match_parent" |
79 | 27 | android:layout_height="wrap_content"
|
80 |
| - android:layout_gravity="center" |
81 |
| - android:gravity="center_horizontal" |
82 |
| - android:maxWidth="240dp" |
| 28 | + android:layout_marginTop="@dimen/standard_gap" |
| 29 | + android:layout_marginBottom="@dimen/standard_gap" |
83 | 30 | android:text="@string/tutorial_2_text"
|
84 | 31 | android:textAlignment="center"
|
85 | 32 | android:textColor="@android:color/white"
|
86 | 33 | android:textSize="@dimen/normal_text"
|
87 | 34 | android:textStyle="bold" />
|
88 | 35 |
|
89 | 36 | <LinearLayout
|
90 |
| - android:layout_width="wrap_content" |
| 37 | + android:layout_width="match_parent" |
91 | 38 | android:layout_height="wrap_content"
|
92 |
| - android:layout_gravity="center" |
93 |
| - android:maxWidth="240dp" |
94 | 39 | android:orientation="horizontal">
|
95 | 40 |
|
96 |
| - <TextView |
97 |
| - android:layout_width="wrap_content" |
98 |
| - android:layout_height="wrap_content" |
99 |
| - android:paddingRight="4dp" |
100 |
| - android:paddingTop="@dimen/standard_gap" |
101 |
| - android:text="@string/bullet" |
102 |
| - android:textColor="@android:color/white" |
103 |
| - android:textSize="16sp" /> |
| 41 | + <include layout="@layout/welcome_bullet" /> |
104 | 42 |
|
105 | 43 | <TextView
|
106 |
| - android:layout_width="wrap_content" |
| 44 | + android:layout_width="match_parent" |
107 | 45 | android:layout_height="wrap_content"
|
108 |
| - android:layout_gravity="center" |
109 |
| - android:gravity="start" |
110 |
| - android:maxWidth="240dp" |
111 |
| - android:paddingTop="@dimen/standard_gap" |
112 | 46 | android:text="@string/tutorial_2_subtext_1"
|
113 |
| - android:textAlignment="textStart" |
114 | 47 | android:textColor="@android:color/white" />
|
115 | 48 |
|
116 | 49 | </LinearLayout>
|
117 | 50 |
|
118 | 51 | <LinearLayout
|
119 |
| - android:layout_width="wrap_content" |
| 52 | + android:layout_width="match_parent" |
120 | 53 | android:layout_height="wrap_content"
|
121 |
| - android:layout_gravity="center" |
122 |
| - android:maxWidth="240dp" |
123 | 54 | android:orientation="horizontal">
|
124 | 55 |
|
125 |
| - <TextView |
126 |
| - android:layout_width="wrap_content" |
127 |
| - android:layout_height="wrap_content" |
128 |
| - android:paddingRight="4dp" |
129 |
| - android:text="@string/bullet" |
130 |
| - android:textColor="@android:color/white" |
131 |
| - android:textSize="16sp" /> |
| 56 | + <include layout="@layout/welcome_bullet" /> |
132 | 57 |
|
133 | 58 | <TextView
|
134 |
| - android:layout_width="wrap_content" |
| 59 | + android:layout_width="match_parent" |
135 | 60 | android:layout_height="wrap_content"
|
136 |
| - android:layout_gravity="center" |
137 |
| - android:gravity="start" |
138 |
| - android:maxWidth="240dp" |
139 | 61 | android:text="@string/tutorial_2_subtext_2"
|
140 |
| - android:textAlignment="textStart" |
141 | 62 | android:textColor="@android:color/white" />
|
142 |
| - |
143 | 63 | </LinearLayout>
|
144 | 64 |
|
145 | 65 | <LinearLayout
|
146 |
| - android:layout_width="wrap_content" |
| 66 | + android:layout_width="match_parent" |
147 | 67 | android:layout_height="wrap_content"
|
148 |
| - android:layout_gravity="center" |
149 |
| - android:maxWidth="240dp" |
150 | 68 | android:orientation="horizontal">
|
151 | 69 |
|
152 |
| - <TextView |
153 |
| - android:layout_width="wrap_content" |
154 |
| - android:layout_height="wrap_content" |
155 |
| - android:paddingRight="4dp" |
156 |
| - android:text="@string/bullet" |
157 |
| - android:textColor="@android:color/white" |
158 |
| - android:textSize="16sp" /> |
| 70 | + <include layout="@layout/welcome_bullet" /> |
159 | 71 |
|
160 | 72 | <TextView
|
161 |
| - android:layout_width="wrap_content" |
| 73 | + android:layout_width="match_parent" |
162 | 74 | android:layout_height="wrap_content"
|
163 |
| - android:layout_gravity="center" |
164 |
| - android:gravity="start" |
165 |
| - android:maxWidth="240dp" |
166 | 75 | android:text="@string/tutorial_2_subtext_3"
|
167 |
| - android:textAlignment="textStart" |
168 | 76 | android:textColor="@android:color/white" />
|
169 |
| - |
170 | 77 | </LinearLayout>
|
171 |
| - |
172 | 78 | </LinearLayout>
|
173 | 79 |
|
174 |
| -</androidx.constraintlayout.widget.ConstraintLayout> |
| 80 | +</LinearLayout> |
0 commit comments