|
1 |
| -<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" |
| 1 | +<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android" |
| 2 | + xmlns:app="http://schemas.android.com/apk/res-auto" |
2 | 3 | xmlns:tools="http://schemas.android.com/tools"
|
3 | 4 | android:layout_width="match_parent"
|
4 | 5 | android:layout_height="match_parent"
|
|
12 | 13 | android:id="@+id/icon"
|
13 | 14 | android:layout_width="wrap_content"
|
14 | 15 | android:layout_height="wrap_content"
|
15 |
| - android:layout_centerHorizontal="true" |
16 |
| - android:layout_marginBottom="16dp" |
17 |
| - android:src="@drawable/firebase_lockup_400" /> |
| 16 | + android:src="@drawable/firebase_lockup_400" |
| 17 | + app:layout_constraintEnd_toEndOf="parent" |
| 18 | + app:layout_constraintStart_toStartOf="parent" |
| 19 | + app:layout_constraintTop_toTopOf="parent" /> |
18 | 20 |
|
19 | 21 | <TextView
|
20 | 22 | android:id="@+id/welcomeTextView"
|
21 | 23 | android:layout_width="wrap_content"
|
22 | 24 | android:layout_height="wrap_content"
|
23 | 25 | android:layout_below="@+id/icon"
|
24 |
| - android:layout_centerHorizontal="true" |
25 |
| - android:text="Welcome..." /> |
| 26 | + android:layout_marginTop="16dp" |
| 27 | + android:text="Welcome..." |
| 28 | + app:layout_constraintEnd_toEndOf="@+id/icon" |
| 29 | + app:layout_constraintStart_toStartOf="@+id/icon" |
| 30 | + app:layout_constraintTop_toBottomOf="@+id/icon" /> |
26 | 31 |
|
27 | 32 | <Button
|
| 33 | + android:id="@+id/fetchButton" |
28 | 34 | android:layout_width="wrap_content"
|
29 | 35 | android:layout_height="wrap_content"
|
30 | 36 | android:text="@string/fetch_remote_welcome_message"
|
31 |
| - android:id="@+id/fetchButton" |
32 |
| - android:layout_centerVertical="true" |
33 |
| - android:layout_centerHorizontal="true" /> |
| 37 | + app:layout_constraintBottom_toBottomOf="parent" |
| 38 | + app:layout_constraintEnd_toEndOf="parent" |
| 39 | + app:layout_constraintStart_toStartOf="parent" |
| 40 | + app:layout_constraintTop_toBottomOf="@+id/welcomeTextView" /> |
34 | 41 |
|
35 |
| -</RelativeLayout> |
| 42 | +</androidx.constraintlayout.widget.ConstraintLayout> |
0 commit comments