|
1 | 1 | <?xml version="1.0" encoding="utf-8"?>
|
2 | 2 | <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
| 3 | + xmlns:app="http://schemas.android.com/apk/res-auto" |
3 | 4 | xmlns:tools="http://schemas.android.com/tools"
|
4 | 5 | android:id="@+id/main_layout"
|
5 | 6 | android:layout_width="match_parent"
|
|
8 | 9 | android:orientation="vertical"
|
9 | 10 | android:weightSum="4">
|
10 | 11 |
|
11 |
| - <LinearLayout |
| 12 | + <androidx.constraintlayout.widget.ConstraintLayout |
12 | 13 | android:layout_width="match_parent"
|
13 | 14 | android:layout_height="0dp"
|
14 | 15 | android:layout_weight="3"
|
|
18 | 19 | <ImageView
|
19 | 20 | android:id="@+id/icon"
|
20 | 21 | style="@style/ThemeOverlay.FirebaseIcon"
|
| 22 | + android:layout_width="wrap_content" |
| 23 | + android:layout_height="wrap_content" |
21 | 24 | android:contentDescription="@string/desc_firebase_lockup"
|
22 | 25 | android:src="@drawable/firebase_lockup_400"
|
23 |
| - android:layout_width="wrap_content" |
24 |
| - android:layout_height="wrap_content" /> |
| 26 | + app:layout_constraintEnd_toEndOf="parent" |
| 27 | + app:layout_constraintStart_toStartOf="parent" |
| 28 | + app:layout_constraintTop_toTopOf="parent" /> |
25 | 29 |
|
26 | 30 | <TextView
|
27 | 31 | android:id="@+id/titleText"
|
28 | 32 | android:layout_width="wrap_content"
|
29 | 33 | android:layout_height="wrap_content"
|
30 |
| - android:layout_marginBottom="@dimen/title_bottom_margin" |
31 |
| - android:text="@string/generic_title_text" |
| 34 | + android:layout_marginTop="16dp" |
32 | 35 | android:gravity="center"
|
33 |
| - android:theme="@style/ThemeOverlay.MyTitleText" /> |
| 36 | + android:text="@string/generic_title_text" |
| 37 | + android:theme="@style/ThemeOverlay.MyTitleText" |
| 38 | + app:layout_constraintEnd_toEndOf="@+id/icon" |
| 39 | + app:layout_constraintStart_toStartOf="@+id/icon" |
| 40 | + app:layout_constraintTop_toBottomOf="@+id/icon" /> |
34 | 41 |
|
35 | 42 | <TextView
|
36 | 43 | android:id="@+id/status"
|
37 | 44 | style="@style/ThemeOverlay.MyTextDetail"
|
38 |
| - android:text="@string/signed_out" /> |
| 45 | + android:layout_marginTop="16dp" |
| 46 | + android:text="@string/signed_out" |
| 47 | + app:layout_constraintEnd_toEndOf="@+id/titleText" |
| 48 | + app:layout_constraintStart_toStartOf="@+id/titleText" |
| 49 | + app:layout_constraintTop_toBottomOf="@+id/titleText" /> |
39 | 50 |
|
40 | 51 | <TextView
|
41 | 52 | android:id="@+id/detail"
|
42 | 53 | style="@style/ThemeOverlay.MyTextDetail"
|
| 54 | + app:layout_constraintEnd_toEndOf="@+id/status" |
| 55 | + app:layout_constraintStart_toStartOf="@+id/status" |
| 56 | + app:layout_constraintTop_toBottomOf="@+id/status" |
43 | 57 | tools:text="Firebase User ID: 123456789abc" />
|
44 | 58 |
|
45 |
| - <RelativeLayout |
46 |
| - android:id="@+id/spinnerLayout" |
| 59 | + <TextView |
| 60 | + android:id="@+id/providerSpinnerLabel" |
47 | 61 | android:layout_width="wrap_content"
|
48 | 62 | android:layout_height="wrap_content"
|
49 |
| - android:layout_marginTop="16dp"> |
50 |
| - |
51 |
| - <TextView |
52 |
| - android:id="@+id/providerSpinnerLabel" |
53 |
| - android:layout_width="wrap_content" |
54 |
| - android:layout_height="wrap_content" |
55 |
| - android:textSize="16sp" |
56 |
| - android:textStyle="bold" |
57 |
| - android:text="@string/generic_label_provider"/> |
| 63 | + android:layout_marginTop="16dp" |
| 64 | + android:text="@string/generic_label_provider" |
| 65 | + android:textSize="16sp" |
| 66 | + android:textStyle="bold" |
| 67 | + app:layout_constraintStart_toStartOf="@+id/detail" |
| 68 | + app:layout_constraintTop_toBottomOf="@+id/detail" /> |
58 | 69 |
|
59 |
| - <Spinner |
60 |
| - android:id="@+id/providerSpinner" |
61 |
| - android:layout_width="wrap_content" |
62 |
| - android:layout_height="wrap_content" |
63 |
| - android:layout_alignBaseline="@+id/providerSpinnerLabel" |
64 |
| - android:layout_toRightOf="@+id/providerSpinnerLabel" |
65 |
| - android:layout_toEndOf="@+id/providerSpinnerLabel" /> |
| 70 | + <Spinner |
| 71 | + android:id="@+id/providerSpinner" |
| 72 | + android:layout_width="0dp" |
| 73 | + android:layout_height="wrap_content" |
| 74 | + android:layout_alignBaseline="@+id/providerSpinnerLabel" |
| 75 | + android:layout_toEndOf="@+id/providerSpinnerLabel" |
| 76 | + android:layout_toRightOf="@+id/providerSpinnerLabel" |
| 77 | + app:layout_constraintBottom_toBottomOf="@+id/providerSpinnerLabel" |
| 78 | + app:layout_constraintEnd_toEndOf="@+id/detail" |
| 79 | + app:layout_constraintStart_toEndOf="@+id/providerSpinnerLabel" |
| 80 | + app:layout_constraintTop_toTopOf="@+id/providerSpinnerLabel" /> |
66 | 81 |
|
67 |
| - </RelativeLayout> |
| 82 | + <androidx.constraintlayout.widget.Group |
| 83 | + android:id="@+id/spinnerLayout" |
| 84 | + android:layout_width="wrap_content" |
| 85 | + android:layout_height="wrap_content" |
| 86 | + app:constraint_referenced_ids="providerSpinner, providerSpinnerLabel"/> |
68 | 87 |
|
69 |
| - </LinearLayout> |
| 88 | + </androidx.constraintlayout.widget.ConstraintLayout> |
70 | 89 |
|
71 | 90 | <FrameLayout
|
72 | 91 | android:layout_width="match_parent"
|
|
0 commit comments