1
1
<?xml version =" 1.0" encoding =" utf-8" ?>
2
- <androidx .constraintlayout.widget.ConstraintLayout xmlns : android =" http://schemas.android.com/apk/res/android"
2
+ <LinearLayout xmlns : android =" http://schemas.android.com/apk/res/android"
3
3
xmlns : app =" http://schemas.android.com/apk/res-auto"
4
4
xmlns : tools =" http://schemas.android.com/tools"
5
5
android : layout_width =" match_parent"
6
6
android : layout_height =" match_parent"
7
- android : padding = " 24dp "
8
- tools : context = " .FeedbackActivity " >
7
+ tools : context = " .FeedbackActivity "
8
+ android : orientation = " vertical " >
9
9
10
- <TextView
11
- android : id =" @+id/title"
12
- android : layout_width =" wrap_content"
13
- android : layout_height =" wrap_content"
14
- android : layout_marginTop =" 48dp"
15
- android : text =" Enter feedback:"
16
- android : textSize =" 24sp"
17
- app : layout_constraintEnd_toEndOf =" parent"
18
- app : layout_constraintStart_toStartOf =" parent"
19
- app : layout_constraintTop_toTopOf =" parent" />
20
- <EditText
21
- android : id =" @+id/feedbackText"
22
- android : layout_width =" match_parent"
23
- android : layout_height =" wrap_content"
24
- android : ems =" 5"
25
- android : gravity =" start|top"
26
- android : inputType =" textMultiLine"
27
- android : lines =" 6"
28
- android : layout_margin =" 24dp"
29
- app : layout_constraintBottom_toBottomOf =" parent"
30
- app : layout_constraintEnd_toEndOf =" parent"
31
- app : layout_constraintStart_toStartOf =" parent"
32
- app : layout_constraintTop_toTopOf =" parent"
33
- app : layout_constraintVertical_bias =" 0.25" />
34
- <Button
35
- android : id =" @+id/submitButton"
36
- android : layout_width =" wrap_content"
37
- android : layout_height =" wrap_content"
38
- android : layout_marginTop =" 24dp"
39
- android : text =" Submit"
40
- app : layout_constraintEnd_toEndOf =" parent"
41
- app : layout_constraintHorizontal_bias =" 0.5"
42
- app : layout_constraintStart_toStartOf =" parent"
43
- app : layout_constraintTop_toBottomOf =" @+id/infoText" />
44
- <TextView
45
- android : id =" @+id/loadingLabel"
46
- android : layout_width =" wrap_content"
47
- android : layout_height =" wrap_content"
48
- android : layout_marginTop =" 24dp"
49
- android : text =" Submitting feedback..."
50
- android : visibility =" invisible"
51
- app : layout_constraintEnd_toEndOf =" parent"
52
- app : layout_constraintStart_toStartOf =" parent"
53
- app : layout_constraintTop_toBottomOf =" @+id/infoText" />
54
- <ImageView
55
- android : id =" @+id/thumbnail"
56
- android : layout_width =" wrap_content"
57
- android : layout_height =" wrap_content"
58
- android : scaleType =" centerInside"
59
- android : layout_marginTop =" 24dp"
60
- app : layout_constraintBottom_toBottomOf =" parent"
61
- app : layout_constraintEnd_toEndOf =" parent"
62
- app : layout_constraintStart_toStartOf =" parent"
63
- app : layout_constraintTop_toBottomOf =" @+id/submitButton"
64
- app : layout_constraintVertical_bias =" 0.312" />
65
- <TextView
66
- android : id =" @+id/screenshotErrorLabel"
67
- android : layout_width =" wrap_content"
68
- android : layout_height =" wrap_content"
69
- android : text =" Failed to take screenshot"
70
- android : visibility =" invisible"
71
- app : layout_constraintBottom_toBottomOf =" parent"
72
- app : layout_constraintEnd_toEndOf =" parent"
73
- app : layout_constraintStart_toStartOf =" parent"
74
- app : layout_constraintTop_toBottomOf =" @+id/submitButton"
75
- app : layout_constraintVertical_bias =" 0.403" />
76
- <TextView
77
- android : id =" @+id/infoText"
78
- android : layout_width =" match_parent"
79
- android : layout_height =" wrap_content"
80
- android : ems =" 5"
81
- android : layout_marginTop =" 24dp"
82
- app : layout_constraintEnd_toEndOf =" parent"
83
- app : layout_constraintStart_toStartOf =" parent"
84
- app : layout_constraintTop_toBottomOf =" @+id/feedbackText" />
10
+ <LinearLayout
11
+ android : id =" @+id/title"
12
+ android : layout_width =" match_parent"
13
+ android : layout_height =" wrap_content"
14
+ android : orientation =" horizontal"
15
+ android : padding =" 16dp" >
85
16
86
- </androidx .constraintlayout.widget.ConstraintLayout>
17
+ <ImageButton
18
+ android : id =" @+id/backButton"
19
+ android : layout_width =" wrap_content"
20
+ android : layout_height =" wrap_content"
21
+ android : layout_gravity =" center"
22
+ android : layout_weight =" 0"
23
+ android : background =" @null"
24
+ android : contentDescription =" @string/back_button_description"
25
+ android : minWidth =" 48dp"
26
+ android : minHeight =" 48dp"
27
+ app : srcCompat =" @drawable/ic_baseline_arrow_back_24" />
28
+
29
+ <TextView
30
+ android : id =" @+id/sendFeedbackText"
31
+ android : layout_width =" wrap_content"
32
+ android : layout_height =" wrap_content"
33
+ android : layout_gravity =" center"
34
+ android : layout_weight =" 1"
35
+ android : layout_marginStart =" 16dp"
36
+ android : layout_marginLeft =" 16dp"
37
+ android : text =" @string/send_feedback"
38
+ android : textSize =" 24sp" />
39
+
40
+ <ImageButton
41
+ android : id =" @+id/sendButton"
42
+ android : layout_width =" wrap_content"
43
+ android : layout_height =" wrap_content"
44
+ android : layout_gravity =" center"
45
+ android : layout_weight =" 0"
46
+ android : background =" @null"
47
+ android : contentDescription =" @string/send_button_description"
48
+ android : minWidth =" 48dp"
49
+ android : minHeight =" 48dp"
50
+ app : srcCompat =" @drawable/ic_baseline_send_24" />
51
+
52
+ </LinearLayout >
53
+
54
+ <View
55
+ android : id =" @+id/topDivider"
56
+ android : layout_width =" match_parent"
57
+ android : layout_height =" 1dp"
58
+ android : layout_weight =" 0"
59
+ android : background =" ?android:attr/listDivider" />
60
+
61
+ <ScrollView
62
+ android : layout_width =" match_parent"
63
+ android : layout_height =" wrap_content"
64
+ android : layout_weight =" 3"
65
+ android : padding =" 16dp" >
66
+
67
+ <LinearLayout
68
+ android : layout_width =" match_parent"
69
+ android : layout_height =" wrap_content"
70
+ android : orientation =" vertical" >
71
+
72
+ <EditText
73
+ android : id =" @+id/feedbackText"
74
+ android : layout_width =" match_parent"
75
+ android : layout_height =" wrap_content"
76
+ android : layout_weight =" 3"
77
+ android : background =" @null"
78
+ android : gravity =" start"
79
+ android : hint =" @string/feedback_text_hint"
80
+ android : inputType =" textMultiLine"
81
+ android : minLines =" 5"
82
+ android : singleLine =" false"
83
+ android : textAlignment =" textStart"
84
+ android : paddingBottom =" 24dp"
85
+ tools : ignore =" InefficientWeight,TextContrastCheck" />
86
+
87
+ <LinearLayout
88
+ android : layout_width =" match_parent"
89
+ android : layout_height =" wrap_content"
90
+ android : background =" @drawable/card_background"
91
+ android : orientation =" vertical" >
92
+
93
+ <CheckBox
94
+ android : id =" @+id/screenshotCheckBox"
95
+ android : layout_width =" wrap_content"
96
+ android : layout_height =" wrap_content"
97
+ android : text =" @string/screenshot" />
98
+
99
+ <ImageView
100
+ android : id =" @+id/screenshotImageView"
101
+ android : layout_width =" wrap_content"
102
+ android : layout_height =" wrap_content"
103
+ android : scaleType =" fitXY"
104
+ android : contentDescription =" @string/screenshot_image_description" />
105
+ </LinearLayout >
106
+ </LinearLayout >
107
+ </ScrollView >
108
+
109
+ <View
110
+ android : id =" @+id/bottomDivider"
111
+ android : layout_width =" match_parent"
112
+ android : layout_height =" 1dp"
113
+ android : background =" ?android:attr/listDivider" />
114
+
115
+ <TextView
116
+ android : id =" @+id/infoText"
117
+ android : layout_width =" match_parent"
118
+ android : layout_height =" wrap_content"
119
+ android : textSize =" 16sp"
120
+ android : padding =" 16dp" />
121
+
122
+ </LinearLayout >
0 commit comments