@@ -10,7 +10,8 @@ CONDITIONS OF ANY KIND, either express or implied. See the License for the
10
10
specific language governing permissions and limitations under the License.
11
11
-->
12
12
13
- <RelativeLayout xmlns : android =" http://schemas.android.com/apk/res/android"
13
+ <androidx .constraintlayout.widget.ConstraintLayout xmlns : android =" http://schemas.android.com/apk/res/android"
14
+ xmlns : app =" http://schemas.android.com/apk/res-auto"
14
15
xmlns : tools =" http://schemas.android.com/tools"
15
16
android : layout_width =" match_parent"
16
17
android : layout_height =" match_parent"
@@ -24,25 +25,28 @@ specific language governing permissions and limitations under the License.
24
25
android : id =" @+id/icon"
25
26
android : layout_width =" wrap_content"
26
27
android : layout_height =" wrap_content"
27
- android : layout_centerHorizontal =" true"
28
- android : layout_marginBottom =" 16dp"
29
- android : src =" @drawable/firebase_lockup_400" />
28
+ android : src =" @drawable/firebase_lockup_400"
29
+ app : layout_constraintEnd_toEndOf =" parent"
30
+ app : layout_constraintStart_toStartOf =" parent"
31
+ app : layout_constraintTop_toTopOf =" parent" />
30
32
31
33
<Button
32
34
android : id =" @+id/crashButton"
33
35
android : layout_width =" wrap_content"
34
36
android : layout_height =" wrap_content"
35
- android : layout_below =" @+id/icon"
36
- android : layout_centerHorizontal =" true"
37
- android : text =" @string/crash_button_label" />
37
+ android : text =" @string/crash_button_label"
38
+ android : layout_marginTop =" 16dp"
39
+ app : layout_constraintEnd_toEndOf =" @+id/icon"
40
+ app : layout_constraintStart_toStartOf =" @+id/icon"
41
+ app : layout_constraintTop_toBottomOf =" @+id/icon" />
38
42
39
43
<CheckBox
40
44
android : id =" @+id/catchCrashCheckBox"
41
45
android : layout_width =" wrap_content"
42
46
android : layout_height =" wrap_content"
43
- android : layout_alignRight =" @+id/crashButton"
44
- android : layout_alignLeft =" @+id/crashButton"
45
- android : layout_below =" @+id/crashButton"
47
+ android : text =" @string/catch_crash_checkbox_label"
46
48
android : layout_marginTop =" 10dp"
47
- android : text =" @string/catch_crash_checkbox_label" />
48
- </RelativeLayout >
49
+ app : layout_constraintEnd_toEndOf =" @+id/crashButton"
50
+ app : layout_constraintStart_toStartOf =" @+id/crashButton"
51
+ app : layout_constraintTop_toBottomOf =" @+id/crashButton" />
52
+ </androidx .constraintlayout.widget.ConstraintLayout>
0 commit comments