77 android : layout_height =" match_parent"
88 android : fillViewport =" true" >
99
10- <LinearLayout
10+ <androidx .constraintlayout.widget.ConstraintLayout
1111 android : layout_width =" match_parent"
12- android : layout_height =" match_parent"
13- android : orientation =" vertical" >
12+ android : layout_height =" match_parent" >
1413
1514 <androidx .appcompat.widget.AppCompatTextView
1615 android : id =" @+id/header"
1918 android : layout_margin =" 16dp"
2019 android : text =" @string/header_text"
2120 android : textAppearance =" ?attr/textAppearanceHeadline4"
22- android : textColor =" ?attr/colorOnSurface" />
21+ android : textColor =" ?attr/colorOnSurface"
22+ app : layout_constraintEnd_toEndOf =" parent"
23+ app : layout_constraintStart_toStartOf =" parent"
24+ app : layout_constraintTop_toTopOf =" parent" />
2325
2426 <androidx .appcompat.widget.AppCompatTextView
27+ android : id =" @+id/exceptionMessageHeader"
2528 android : layout_width =" match_parent"
2629 android : layout_height =" wrap_content"
2730 android : layout_marginStart =" 16dp"
2831 android : layout_marginEnd =" 16dp"
2932 android : text =" @string/explanation_text"
3033 android : textAppearance =" ?attr/textAppearanceBody1"
31- android : textColor =" ?attr/colorOnSurface" />
34+ android : textColor =" ?attr/colorOnSurface"
35+ app : layout_constraintEnd_toEndOf =" parent"
36+ app : layout_constraintStart_toStartOf =" parent"
37+ app : layout_constraintTop_toBottomOf =" @id/header" />
3238
3339 <androidx .appcompat.widget.AppCompatTextView
3440 android : id =" @+id/exceptionName"
4147 android : fontFamily =" monospace"
4248 android : text =" @string/exception_name"
4349 android : textAppearance =" ?attr/textAppearanceBody1"
50+ app : layout_constraintEnd_toEndOf =" parent"
51+ app : layout_constraintStart_toStartOf =" parent"
52+ app : layout_constraintTop_toBottomOf =" @id/exceptionMessageHeader"
4453 tools : text =" Exception: java.lang.RuntimeException" />
4554
4655 <androidx .appcompat.widget.AppCompatTextView
5463 android : fontFamily =" monospace"
5564 android : text =" @string/exception_cause"
5665 android : textAppearance =" ?attr/textAppearanceBody1"
66+ app : layout_constraintEnd_toEndOf =" parent"
67+ app : layout_constraintStart_toStartOf =" parent"
68+ app : layout_constraintTop_toBottomOf =" @id/exceptionName"
5769 tools : text =" Cause: BecauseICanException" />
5870
5971 <androidx .appcompat.widget.AppCompatTextView
6779 android : fontFamily =" monospace"
6880 android : text =" @string/exception_message"
6981 android : textAppearance =" ?attr/textAppearanceBody1"
82+ app : layout_constraintEnd_toEndOf =" parent"
83+ app : layout_constraintStart_toStartOf =" parent"
84+ app : layout_constraintTop_toBottomOf =" @id/exceptionCause"
7085 tools : text =" Message: Because I Can" />
7186
87+ <androidx .constraintlayout.helper.widget.Flow
88+ android : id =" @+id/actionsFlow"
89+ android : layout_width =" 0dp"
90+ android : layout_height =" wrap_content"
91+ android : layout_margin =" 16dp"
92+ app : constraint_referenced_ids =" copyStacktrace,shareStacktrace,launchApplication,searchStackoverflow"
93+ app : flow_horizontalAlign =" center"
94+ app : flow_horizontalGap =" 4dp"
95+ app : flow_horizontalStyle =" packed"
96+ app : flow_verticalStyle =" packed"
97+ app : flow_wrapMode =" chain"
98+ app : layout_constraintEnd_toEndOf =" parent"
99+ app : layout_constraintStart_toStartOf =" parent"
100+ app : layout_constraintTop_toBottomOf =" @id/exceptionMessage" />
101+
102+ <!-- Ignore missing-constraints lint error because lint hasn't been updated-->
103+ <!-- for constraint layout Flow yet-->
72104 <com .google.android.material.button.MaterialButton
73105 android : id =" @+id/copyStacktrace"
74- style =" @style/Widget.MaterialComponents.Button.OutlinedButton .Icon"
75- android : layout_width =" match_parent "
106+ style =" @style/Widget.MaterialComponents.Button.TextButton .Icon"
107+ android : layout_width =" wrap_content "
76108 android : layout_height =" wrap_content"
77- android : layout_marginStart =" 16dp"
78- android : layout_marginTop =" 16dp"
79- android : layout_marginEnd =" 16dp"
80- android : layout_marginBottom =" 2dp"
81109 android : text =" @string/copy_stacktrace"
82110 android : textColor =" ?attr/colorOnSurface"
83111 app : icon =" @drawable/ic_outline_content_copy_24"
84- app : iconTint =" ?attr/colorSecondary" />
112+ app : iconTint =" ?attr/colorSecondary"
113+ tools : ignore =" MissingConstraints" />
85114
86115 <com .google.android.material.button.MaterialButton
87116 android : id =" @+id/shareStacktrace"
88- style =" @style/Widget.MaterialComponents.Button.OutlinedButton .Icon"
89- android : layout_width =" match_parent "
117+ style =" @style/Widget.MaterialComponents.Button.TextButton .Icon"
118+ android : layout_width =" wrap_content "
90119 android : layout_height =" wrap_content"
91- android : layout_marginStart =" 16dp"
92- android : layout_marginTop =" 2dp"
93- android : layout_marginEnd =" 16dp"
94- android : layout_marginBottom =" 2dp"
95120 android : text =" @string/share_stacktrace"
96121 android : textColor =" ?attr/colorOnSurface"
97122 app : icon =" @drawable/ic_outline_share_24"
98- app : iconTint =" ?attr/colorSecondary" />
123+ app : iconTint =" ?attr/colorSecondary"
124+ tools : ignore =" MissingConstraints" />
99125
100126 <com .google.android.material.button.MaterialButton
101127 android : id =" @+id/launchApplication"
102- style =" @style/Widget.MaterialComponents.Button.OutlinedButton .Icon"
103- android : layout_width =" match_parent "
128+ style =" @style/Widget.MaterialComponents.Button.TextButton .Icon"
129+ android : layout_width =" wrap_content "
104130 android : layout_height =" wrap_content"
105- android : layout_marginStart =" 16dp"
106- android : layout_marginTop =" 2dp"
107- android : layout_marginEnd =" 16dp"
108- android : layout_marginBottom =" 8dp"
109131 android : text =" @string/restart_application"
110132 android : textColor =" ?attr/colorOnSurface"
111133 app : icon =" @drawable/ic_baseline_refresh_24"
112- app : iconTint =" ?attr/colorSecondary" />
134+ app : iconTint =" ?attr/colorSecondary"
135+ tools : ignore =" MissingConstraints" />
136+
137+ <com .google.android.material.button.MaterialButton
138+ android : id =" @+id/searchStackoverflow"
139+ style =" @style/Widget.MaterialComponents.Button.TextButton.Icon"
140+ android : layout_width =" wrap_content"
141+ android : layout_height =" wrap_content"
142+ android : layout_margin =" 4dp"
143+ android : text =" @string/search_stackoverflow"
144+ android : textColor =" ?attr/colorOnSurface"
145+ app : icon =" @drawable/ic_round_search_24"
146+ app : iconTint =" ?attr/colorSecondary"
147+ tools : ignore =" MissingConstraints" />
113148
114149 <TextView
115150 android : id =" @+id/stacktraceHeader"
119154 android : layout_marginTop =" 8dp"
120155 android : layout_marginEnd =" 16dp"
121156 android : text =" @string/stacktrace"
122- android : textAppearance =" ?attr/textAppearanceOverline" />
157+ android : textAppearance =" ?attr/textAppearanceOverline"
158+ app : layout_constraintEnd_toEndOf =" parent"
159+ app : layout_constraintStart_toStartOf =" parent"
160+ app : layout_constraintTop_toBottomOf =" @id/actionsFlow" />
123161
124162 <ScrollView
125163 android : id =" @+id/stacktraceScroller"
126164 android : layout_width =" match_parent"
127- android : layout_height =" match_parent "
165+ android : layout_height =" 0dp "
128166 android : layout_marginTop =" 4dp"
129167 android : paddingStart =" 16dp"
130- android : paddingEnd =" 16dp" >
168+ android : paddingEnd =" 16dp"
169+ app : layout_constraintEnd_toEndOf =" parent"
170+ app : layout_constraintStart_toStartOf =" parent"
171+ app : layout_constraintTop_toBottomOf =" @id/stacktraceHeader" >
131172
132173 <TextView
133174 android : id =" @+id/stacktrace"
138179 android : textColor =" ?attr/colorError"
139180 tools : text =" @string/sample_stack_trace" />
140181 </ScrollView >
141-
142- </LinearLayout >
182+ </androidx .constraintlayout.widget.ConstraintLayout>
143183</androidx .core.widget.NestedScrollView>
0 commit comments