|
1 | 1 | <?xml version="1.0" encoding="utf-8"?>
|
2 |
| - |
3 |
| -<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" |
| 2 | +<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android" |
| 3 | + xmlns:app="http://schemas.android.com/apk/res-auto" |
4 | 4 | android:layout_width="fill_parent"
|
5 | 5 | android:layout_height="fill_parent"
|
6 | 6 | android:background="#fff2f2f2"
|
7 |
| - android:paddingLeft="16dp" |
8 |
| - android:paddingTop="16dp" |
9 |
| - android:paddingRight="16dp" |
10 |
| - android:paddingBottom="16dp"> |
| 7 | + android:padding="16dp"> |
11 | 8 |
|
12 | 9 | <ImageView
|
13 | 10 | android:id="@+id/icon"
|
14 | 11 | android:layout_width="wrap_content"
|
15 | 12 | android:layout_height="wrap_content"
|
16 |
| - android:layout_centerHorizontal="true" |
17 |
| - android:src="@drawable/firebase_lockup_400" /> |
| 13 | + android:src="@drawable/firebase_lockup_400" |
| 14 | + app:layout_constraintEnd_toEndOf="parent" |
| 15 | + app:layout_constraintStart_toStartOf="parent" |
| 16 | + app:layout_constraintTop_toTopOf="parent" /> |
18 | 17 |
|
19 | 18 | <TextView
|
20 | 19 | android:id="@+id/contentIndexLabel"
|
21 | 20 | style="@style/TextAppearance.AppCompat.Medium"
|
22 | 21 | android:layout_width="wrap_content"
|
23 | 22 | android:layout_height="wrap_content"
|
24 |
| - android:layout_below="@+id/icon" |
25 |
| - android:layout_alignParentStart="true" |
26 |
| - android:text="@string/content_label" /> |
| 23 | + android:text="@string/content_label" |
| 24 | + app:layout_constraintStart_toStartOf="parent" |
| 25 | + app:layout_constraintTop_toBottomOf="@+id/icon" /> |
27 | 26 |
|
28 | 27 | <TextView
|
29 | 28 | android:id="@+id/textView"
|
30 | 29 | android:layout_width="wrap_content"
|
31 | 30 | android:layout_height="wrap_content"
|
32 |
| - android:layout_below="@+id/contentIndexLabel" |
33 |
| - android:layout_alignParentStart="true" |
34 |
| - android:text="@string/link_label" /> |
| 31 | + android:text="@string/link_label" |
| 32 | + app:layout_constraintStart_toStartOf="@+id/contentIndexLabel" |
| 33 | + app:layout_constraintTop_toBottomOf="@+id/contentIndexLabel" /> |
35 | 34 |
|
36 | 35 | <TextView
|
37 | 36 | android:id="@+id/link"
|
38 | 37 | android:layout_width="wrap_content"
|
39 | 38 | android:layout_height="wrap_content"
|
40 |
| - android:layout_below="@+id/contentIndexLabel" |
41 |
| - android:layout_toEndOf="@+id/textView" |
42 |
| - android:text="@string/none" /> |
| 39 | + android:text="@string/none" |
| 40 | + app:layout_constraintBottom_toBottomOf="@+id/textView" |
| 41 | + app:layout_constraintStart_toEndOf="@+id/textView" |
| 42 | + app:layout_constraintTop_toTopOf="@+id/textView"/> |
43 | 43 |
|
44 | 44 | <TextView
|
45 | 45 | android:id="@+id/stickerIndexLabel"
|
46 | 46 | style="@style/TextAppearance.AppCompat.Medium"
|
47 | 47 | android:layout_width="wrap_content"
|
48 | 48 | android:layout_height="wrap_content"
|
49 |
| - android:layout_below="@+id/textView" |
50 |
| - android:layout_alignParentStart="true" |
| 49 | + android:text="@string/stickers_label" |
51 | 50 | android:layout_marginTop="20dp"
|
52 |
| - android:text="@string/stickers_label" /> |
| 51 | + app:layout_constraintStart_toStartOf="parent" |
| 52 | + app:layout_constraintTop_toBottomOf="@+id/textView" /> |
53 | 53 |
|
54 | 54 | <Button
|
55 | 55 | android:id="@+id/addStickersBtn"
|
56 | 56 | android:layout_width="wrap_content"
|
57 | 57 | android:layout_height="wrap_content"
|
58 |
| - android:layout_below="@+id/stickerIndexLabel" |
59 |
| - android:layout_alignEnd="@+id/clearStickersBtn" |
60 |
| - android:layout_alignParentStart="true" |
61 |
| - android:text="Add Stickers" /> |
| 58 | + android:text="Add Stickers" |
| 59 | + app:layout_constraintStart_toStartOf="parent" |
| 60 | + app:layout_constraintTop_toBottomOf="@+id/stickerIndexLabel" /> |
62 | 61 |
|
63 | 62 | <Button
|
64 | 63 | android:id="@+id/clearStickersBtn"
|
65 | 64 | android:layout_width="wrap_content"
|
66 | 65 | android:layout_height="wrap_content"
|
67 |
| - android:layout_below="@+id/addStickersBtn" |
68 |
| - android:layout_alignParentStart="true" |
69 |
| - android:text="Clear Stickers" /> |
| 66 | + android:text="Clear Stickers" |
| 67 | + app:layout_constraintStart_toStartOf="parent" |
| 68 | + app:layout_constraintTop_toBottomOf="@+id/addStickersBtn" /> |
70 | 69 |
|
71 |
| -</RelativeLayout> |
| 70 | +</androidx.constraintlayout.widget.ConstraintLayout> |
0 commit comments