|
63 | 63 | app:cardCornerRadius="@dimen/accel_card_radius"
|
64 | 64 | app:cardElevation="@dimen/card_elevation">
|
65 | 65 |
|
66 |
| - <LinearLayout |
| 66 | + <androidx.constraintlayout.widget.ConstraintLayout |
67 | 67 | android:layout_width="match_parent"
|
68 | 68 | android:layout_height="wrap_content"
|
69 |
| - android:layout_marginStart="@dimen/create_config_margin1" |
70 |
| - android:orientation="horizontal"> |
| 69 | + android:layout_marginStart="@dimen/create_config_margin1"> |
71 | 70 |
|
72 | 71 | <TextView
|
73 | 72 | android:id="@+id/time_interval_title"
|
|
76 | 75 | android:layout_height="wrap_content"
|
77 | 76 | android:layout_gravity="center"
|
78 | 77 | android:text="@string/time_interval_title"
|
79 |
| - android:textSize="@dimen/text_size_of_label" /> |
| 78 | + android:textSize="@dimen/text_size_of_label" |
| 79 | + app:layout_constraintBottom_toBottomOf="parent" |
| 80 | + app:layout_constraintStart_toStartOf="parent" |
| 81 | + app:layout_constraintTop_toTopOf="parent" /> |
80 | 82 |
|
81 | 83 | <EditText
|
82 | 84 | android:id="@+id/interval_edit_text"
|
83 | 85 | android:layout_width="@dimen/width_zero"
|
84 | 86 | android:layout_height="wrap_content"
|
85 | 87 | android:layout_gravity="center"
|
86 |
| - android:layout_weight="@dimen/weight_three" |
87 | 88 | android:hint="@string/time_interval_hint"
|
88 | 89 | android:imeOptions="actionDone"
|
89 | 90 | android:inputType="number"
|
90 |
| - android:textAlignment="center" /> |
| 91 | + android:textAlignment="center" |
| 92 | + app:layout_constraintBottom_toBottomOf="parent" |
| 93 | + app:layout_constraintEnd_toStartOf="@id/interval_unit_spinner" |
| 94 | + app:layout_constraintHorizontal_weight="@dimen/weight_four" |
| 95 | + app:layout_constraintStart_toEndOf="@id/time_interval_title" |
| 96 | + app:layout_constraintTop_toTopOf="parent" /> |
91 | 97 |
|
92 | 98 | <androidx.appcompat.widget.AppCompatSpinner
|
93 | 99 | android:id="@+id/interval_unit_spinner"
|
94 |
| - android:layout_width="@dimen/width_zero" |
| 100 | + android:layout_width="wrap_content" |
95 | 101 | android:layout_height="wrap_content"
|
96 | 102 | android:layout_gravity="center"
|
97 |
| - android:layout_weight="@dimen/weight_one" /> |
98 |
| - </LinearLayout> |
| 103 | + app:layout_constraintBottom_toBottomOf="parent" |
| 104 | + app:layout_constraintEnd_toEndOf="parent" |
| 105 | + app:layout_constraintHorizontal_weight="@dimen/weight_two" |
| 106 | + app:layout_constraintStart_toEndOf="@id/interval_edit_text" |
| 107 | + app:layout_constraintTop_toTopOf="parent" /> |
| 108 | + |
| 109 | + </androidx.constraintlayout.widget.ConstraintLayout> |
| 110 | + |
99 | 111 | </androidx.cardview.widget.CardView>
|
100 | 112 |
|
101 | 113 | <TextView
|
|
0 commit comments