Commit 28a3aa8edc845564c82168c82d851b2b26029fe8
1 parent
615abc0511
Exists in
master
布局调整
Showing
1 changed file
with
8 additions
and
1 deletions
Show diff stats
app/src/main/res/layout/activity_homework_feedback.xml
1 | <?xml version="1.0" encoding="utf-8"?> | 1 | <?xml version="1.0" encoding="utf-8"?> |
2 | <LinearLayout | 2 | <LinearLayout |
3 | xmlns:android="http://schemas.android.com/apk/res/android" | 3 | xmlns:android="http://schemas.android.com/apk/res/android" |
4 | xmlns:app="http://schemas.android.com/apk/res-auto" | 4 | xmlns:app="http://schemas.android.com/apk/res-auto" |
5 | xmlns:tools="http://schemas.android.com/tools" | 5 | xmlns:tools="http://schemas.android.com/tools" |
6 | android:orientation="vertical" | 6 | android:orientation="vertical" |
7 | android:layout_width="match_parent" | 7 | android:layout_width="match_parent" |
8 | android:layout_height="match_parent" | 8 | android:layout_height="match_parent" |
9 | tools:ignore="UseCompoundDrawables,HardcodedText,SmallSp,ContentDescription"> | 9 | tools:ignore="UseCompoundDrawables,HardcodedText,SmallSp,ContentDescription"> |
10 | 10 | ||
11 | <androidx.appcompat.widget.Toolbar | 11 | <androidx.appcompat.widget.Toolbar |
12 | android:id="@+id/toolbar" | 12 | android:id="@+id/toolbar" |
13 | app:navigationIcon="@drawable/svg_back" | 13 | app:navigationIcon="@drawable/svg_back" |
14 | app:contentInsetStartWithNavigation="14dp" | 14 | app:contentInsetStartWithNavigation="14dp" |
15 | android:paddingStart="-8dp" | 15 | android:paddingStart="-8dp" |
16 | android:paddingEnd="-8dp" | 16 | android:paddingEnd="-8dp" |
17 | android:background="@color/white" | 17 | android:background="@color/white" |
18 | android:layout_width="match_parent" | 18 | android:layout_width="match_parent" |
19 | android:layout_height="40dp"> | 19 | android:layout_height="40dp"> |
20 | <TextView | 20 | <TextView |
21 | android:text="第二步:教师评语" | 21 | android:text="第二步:教师评语" |
22 | android:textSize="18sp" | 22 | android:textSize="18sp" |
23 | android:textColor="#333" | 23 | android:textColor="#333" |
24 | android:textStyle="bold" | 24 | android:textStyle="bold" |
25 | android:layout_gravity="center" | 25 | android:layout_gravity="center" |
26 | android:layout_width="wrap_content" | 26 | android:layout_width="wrap_content" |
27 | android:layout_height="wrap_content"/> | 27 | android:layout_height="wrap_content"/> |
28 | <TextView | 28 | <TextView |
29 | android:id="@+id/btnPublish" | 29 | android:id="@+id/btnPublish" |
30 | android:text="发布" | 30 | android:text="发布" |
31 | android:textSize="13sp" | 31 | android:textSize="13sp" |
32 | android:textColor="#1C90F3" | 32 | android:textColor="#1C90F3" |
33 | android:textStyle="bold" | 33 | android:textStyle="bold" |
34 | android:layout_gravity="end|center_vertical" | 34 | android:layout_gravity="end|center_vertical" |
35 | android:layout_marginEnd="24dp" | 35 | android:layout_marginEnd="24dp" |
36 | android:layout_width="wrap_content" | 36 | android:layout_width="wrap_content" |
37 | android:layout_height="wrap_content"/> | 37 | android:layout_height="wrap_content"/> |
38 | </androidx.appcompat.widget.Toolbar> | 38 | </androidx.appcompat.widget.Toolbar> |
39 | 39 | ||
40 | <androidx.core.widget.NestedScrollView | 40 | <androidx.core.widget.NestedScrollView |
41 | android:layout_width="match_parent" | 41 | android:layout_width="match_parent" |
42 | android:layout_height="match_parent"> | 42 | android:layout_height="match_parent"> |
43 | <LinearLayout | 43 | <LinearLayout |
44 | android:orientation="vertical" | 44 | android:orientation="vertical" |
45 | android:paddingHorizontal="15dp" | 45 | android:paddingHorizontal="15dp" |
46 | android:paddingBottom="20dp" | 46 | android:paddingBottom="20dp" |
47 | android:layout_width="match_parent" | 47 | android:layout_width="match_parent" |
48 | android:layout_height="wrap_content"> | 48 | android:layout_height="wrap_content"> |
49 | 49 | ||
50 | <LinearLayout | 50 | <LinearLayout |
51 | android:orientation="vertical" | 51 | android:orientation="vertical" |
52 | android:background="@drawable/shape_radius_10" | 52 | android:background="@drawable/shape_radius_10" |
53 | android:backgroundTint="@color/white" | 53 | android:backgroundTint="@color/white" |
54 | android:layout_marginTop="15dp" | 54 | android:layout_marginTop="15dp" |
55 | android:layout_width="match_parent" | 55 | android:layout_width="match_parent" |
56 | android:layout_height="wrap_content"> | 56 | android:layout_height="wrap_content"> |
57 | <androidx.appcompat.widget.AppCompatTextView | 57 | <androidx.appcompat.widget.AppCompatTextView |
58 | android:text="学生信息" | 58 | android:text="学生信息" |
59 | android:textSize="16sp" | 59 | android:textSize="16sp" |
60 | android:textColor="#333" | 60 | android:textColor="#333" |
61 | android:textStyle="bold" | 61 | android:textStyle="bold" |
62 | android:gravity="center_vertical" | 62 | android:gravity="center_vertical" |
63 | android:paddingHorizontal="15dp" | 63 | android:paddingHorizontal="15dp" |
64 | android:drawablePadding="5dp" | 64 | android:drawablePadding="5dp" |
65 | android:drawableStart="@drawable/svg_ic_stu_info" | 65 | android:drawableStart="@drawable/svg_ic_stu_info" |
66 | android:background="@drawable/shape_radius_top_10" | 66 | android:background="@drawable/shape_radius_top_10" |
67 | android:backgroundTint="#DAEBFE" | 67 | android:backgroundTint="#DAEBFE" |
68 | android:layout_width="match_parent" | 68 | android:layout_width="match_parent" |
69 | android:layout_height="40dp"/> | 69 | android:layout_height="40dp"/> |
70 | <LinearLayout | 70 | <LinearLayout |
71 | android:orientation="horizontal" | 71 | android:orientation="horizontal" |
72 | android:layout_marginHorizontal="15dp" | 72 | android:layout_marginHorizontal="15dp" |
73 | android:layout_marginVertical="18dp" | 73 | android:layout_marginVertical="18dp" |
74 | android:layout_width="match_parent" | 74 | android:layout_width="match_parent" |
75 | android:layout_height="wrap_content"> | 75 | android:layout_height="wrap_content"> |
76 | <TextView | 76 | <TextView |
77 | android:text="学生姓名:" | 77 | android:text="学生姓名:" |
78 | android:textSize="14sp" | 78 | android:textSize="14sp" |
79 | android:textColor="#333" | 79 | android:textColor="#333" |
80 | android:layout_width="wrap_content" | 80 | android:layout_width="wrap_content" |
81 | android:layout_height="wrap_content"/> | 81 | android:layout_height="wrap_content"/> |
82 | <TextView | 82 | <TextView |
83 | android:id="@+id/tvStuName" | 83 | android:id="@+id/tvStuName" |
84 | tools:text="杨小凯" | 84 | tools:text="杨小凯" |
85 | android:textSize="14sp" | 85 | android:textSize="14sp" |
86 | android:textColor="#333" | 86 | android:textColor="#333" |
87 | android:layout_width="wrap_content" | 87 | android:layout_width="wrap_content" |
88 | android:layout_height="wrap_content"/> | 88 | android:layout_height="wrap_content"/> |
89 | <Space style="@style/empty_space"/> | 89 | <Space style="@style/empty_space"/> |
90 | <TextView | 90 | <TextView |
91 | android:text="年级:" | 91 | android:text="年级:" |
92 | android:textSize="14sp" | 92 | android:textSize="14sp" |
93 | android:textColor="#333" | 93 | android:textColor="#333" |
94 | android:layout_width="wrap_content" | 94 | android:layout_width="wrap_content" |
95 | android:layout_height="wrap_content"/> | 95 | android:layout_height="wrap_content"/> |
96 | <TextView | 96 | <TextView |
97 | android:id="@+id/tvGrade" | 97 | android:id="@+id/tvGrade" |
98 | tools:text="六年级" | 98 | tools:text="六年级" |
99 | android:textSize="14sp" | 99 | android:textSize="14sp" |
100 | android:textColor="#333" | 100 | android:textColor="#333" |
101 | android:layout_width="96dp" | 101 | android:layout_width="96dp" |
102 | android:layout_height="wrap_content"/> | 102 | android:layout_height="wrap_content"/> |
103 | </LinearLayout> | 103 | </LinearLayout> |
104 | </LinearLayout> | 104 | </LinearLayout> |
105 | 105 | ||
106 | <LinearLayout | 106 | <LinearLayout |
107 | android:orientation="vertical" | 107 | android:orientation="vertical" |
108 | android:background="@drawable/shape_radius_10" | 108 | android:background="@drawable/shape_radius_10" |
109 | android:backgroundTint="@color/white" | 109 | android:backgroundTint="@color/white" |
110 | android:paddingBottom="15dp" | 110 | android:paddingBottom="15dp" |
111 | android:layout_marginTop="15dp" | 111 | android:layout_marginTop="15dp" |
112 | android:layout_width="match_parent" | 112 | android:layout_width="match_parent" |
113 | android:layout_height="wrap_content"> | 113 | android:layout_height="wrap_content"> |
114 | <androidx.appcompat.widget.AppCompatTextView | 114 | <androidx.appcompat.widget.AppCompatTextView |
115 | android:text="作业详情" | 115 | android:text="作业详情" |
116 | android:textSize="16sp" | 116 | android:textSize="16sp" |
117 | android:textColor="#333" | 117 | android:textColor="#333" |
118 | android:textStyle="bold" | 118 | android:textStyle="bold" |
119 | android:gravity="center_vertical" | 119 | android:gravity="center_vertical" |
120 | android:paddingHorizontal="15dp" | 120 | android:paddingHorizontal="15dp" |
121 | android:drawablePadding="5dp" | 121 | android:drawablePadding="5dp" |
122 | android:drawableStart="@drawable/svg_ic_correct" | 122 | android:drawableStart="@drawable/svg_ic_correct" |
123 | android:background="@drawable/shape_radius_top_10" | 123 | android:background="@drawable/shape_radius_top_10" |
124 | android:backgroundTint="#DAEBFE" | 124 | android:backgroundTint="#DAEBFE" |
125 | android:layout_width="match_parent" | 125 | android:layout_width="match_parent" |
126 | android:layout_height="40dp"/> | 126 | android:layout_height="40dp"/> |
127 | <LinearLayout | 127 | <LinearLayout |
128 | android:orientation="horizontal" | 128 | android:orientation="horizontal" |
129 | android:layout_marginHorizontal="15dp" | 129 | android:layout_marginHorizontal="15dp" |
130 | android:layout_marginTop="15dp" | 130 | android:layout_marginTop="15dp" |
131 | android:layout_width="match_parent" | 131 | android:layout_width="match_parent" |
132 | android:layout_height="wrap_content"> | 132 | android:layout_height="wrap_content"> |
133 | <TextView | 133 | <TextView |
134 | android:text="正确率:" | 134 | android:text="正确率:" |
135 | android:textSize="14sp" | 135 | android:textSize="14sp" |
136 | android:textColor="#333" | 136 | android:textColor="#333" |
137 | android:layout_width="wrap_content" | 137 | android:layout_width="wrap_content" |
138 | android:layout_height="wrap_content"/> | 138 | android:layout_height="wrap_content"/> |
139 | <TextView | 139 | <TextView |
140 | android:id="@+id/tvPercent" | 140 | android:id="@+id/tvPercent" |
141 | tools:text="60%" | 141 | tools:text="60%" |
142 | android:textSize="14sp" | 142 | android:textSize="14sp" |
143 | android:textColor="#333" | 143 | android:textColor="#333" |
144 | android:layout_width="wrap_content" | 144 | android:layout_width="wrap_content" |
145 | android:layout_height="wrap_content"/> | 145 | android:layout_height="wrap_content"/> |
146 | <Space style="@style/empty_space"/> | 146 | </LinearLayout> |
147 | <LinearLayout | ||
148 | android:orientation="horizontal" | ||
149 | android:layout_marginHorizontal="15dp" | ||
150 | android:layout_marginTop="15dp" | ||
151 | android:layout_width="match_parent" | ||
152 | android:layout_height="wrap_content"> | ||
147 | <TextView | 153 | <TextView |
148 | android:text="答题结果" | 154 | android:text="答题结果" |
149 | android:textSize="14sp" | 155 | android:textSize="14sp" |
150 | android:textColor="#333" | 156 | android:textColor="#333" |
151 | android:layout_width="wrap_content" | 157 | android:layout_width="wrap_content" |
152 | android:layout_height="wrap_content"/> | 158 | android:layout_height="wrap_content"/> |
153 | <TextView | 159 | <TextView |
154 | android:id="@+id/btnDetail" | 160 | android:id="@+id/btnDetail" |
155 | android:text="(点击查看题目详情)" | 161 | android:text="(点击查看题目详情)" |
156 | android:textSize="14sp" | 162 | android:textSize="14sp" |
157 | android:textColor="#1C90F3" | 163 | android:textColor="#1C90F3" |
158 | android:layout_width="wrap_content" | 164 | android:layout_width="wrap_content" |
159 | android:layout_height="wrap_content"/> | 165 | android:layout_height="wrap_content"/> |
160 | </LinearLayout> | 166 | </LinearLayout> |
161 | 167 | ||
162 | <androidx.recyclerview.widget.RecyclerView | 168 | <androidx.recyclerview.widget.RecyclerView |
163 | android:id="@+id/rvCorrect" | 169 | android:id="@+id/rvCorrect" |
164 | tools:listitem="@layout/item_feedback_num" | 170 | tools:listitem="@layout/item_feedback_num" |
165 | tools:itemCount="1" | 171 | tools:itemCount="1" |
166 | android:layout_marginTop="15dp" | 172 | android:layout_marginTop="15dp" |
167 | android:layout_marginHorizontal="15dp" | 173 | android:layout_marginHorizontal="15dp" |
168 | android:layout_width="match_parent" | 174 | android:layout_width="match_parent" |
169 | android:layout_height="wrap_content"/> | 175 | android:layout_height="wrap_content"/> |
170 | <TextView | 176 | <TextView |
171 | android:text="错题已经加入到错题本,到错题本查看详情" | 177 | android:text="错题已经加入到错题本,到错题本查看详情" |
172 | android:textSize="12sp" | 178 | android:textSize="12sp" |
173 | android:textColor="#666" | 179 | android:textColor="#666" |
174 | android:layout_marginHorizontal="15dp" | 180 | android:layout_marginHorizontal="15dp" |
175 | android:layout_width="wrap_content" | 181 | android:layout_width="wrap_content" |
176 | android:layout_height="wrap_content"/> | 182 | android:layout_height="wrap_content"/> |
177 | </LinearLayout> | 183 | </LinearLayout> |
178 | 184 | ||
179 | <LinearLayout | 185 | <LinearLayout |
180 | android:id="@+id/flEval" | 186 | android:id="@+id/flEval" |
181 | android:orientation="vertical" | 187 | android:orientation="vertical" |
182 | android:background="@drawable/shape_radius_10" | 188 | android:background="@drawable/shape_radius_10" |
183 | android:backgroundTint="@color/white" | 189 | android:backgroundTint="@color/white" |
184 | android:layout_marginTop="15dp" | 190 | android:layout_marginTop="15dp" |
191 | android:paddingBottom="16dp" | ||
185 | android:layout_width="match_parent" | 192 | android:layout_width="match_parent" |
186 | android:layout_height="wrap_content"> | 193 | android:layout_height="wrap_content"> |
187 | <androidx.appcompat.widget.AppCompatTextView | 194 | <androidx.appcompat.widget.AppCompatTextView |
188 | android:text="辅导后错题掌握评估" | 195 | android:text="辅导后错题掌握评估" |
189 | android:textSize="16sp" | 196 | android:textSize="16sp" |
190 | android:textColor="#333" | 197 | android:textColor="#333" |
191 | android:textStyle="bold" | 198 | android:textStyle="bold" |
192 | android:gravity="center_vertical" | 199 | android:gravity="center_vertical" |
193 | android:paddingHorizontal="15dp" | 200 | android:paddingHorizontal="15dp" |
194 | android:drawablePadding="5dp" | 201 | android:drawablePadding="5dp" |
195 | android:drawableStart="@drawable/svg_ic_paper" | 202 | android:drawableStart="@drawable/svg_ic_paper" |
196 | android:background="@drawable/shape_radius_top_10" | 203 | android:background="@drawable/shape_radius_top_10" |
197 | android:backgroundTint="#DAEBFE" | 204 | android:backgroundTint="#DAEBFE" |
198 | android:layout_width="match_parent" | 205 | android:layout_width="match_parent" |
199 | android:layout_height="40dp"/> | 206 | android:layout_height="40dp"/> |
200 | <androidx.recyclerview.widget.RecyclerView | 207 | <androidx.recyclerview.widget.RecyclerView |
201 | android:id="@+id/rvError" | 208 | android:id="@+id/rvError" |
202 | android:orientation="vertical" | 209 | android:orientation="vertical" |
203 | app:layoutManager="androidx.recyclerview.widget.LinearLayoutManager" | 210 | app:layoutManager="androidx.recyclerview.widget.LinearLayoutManager" |
204 | android:layout_width="match_parent" | 211 | android:layout_width="match_parent" |
205 | android:layout_height="wrap_content"/> | 212 | android:layout_height="wrap_content"/> |
206 | </LinearLayout> | 213 | </LinearLayout> |
207 | 214 | ||
208 | <LinearLayout | 215 | <LinearLayout |
209 | android:orientation="vertical" | 216 | android:orientation="vertical" |
210 | android:background="@drawable/shape_radius_10" | 217 | android:background="@drawable/shape_radius_10" |
211 | android:backgroundTint="@color/white" | 218 | android:backgroundTint="@color/white" |
212 | android:layout_marginTop="15dp" | 219 | android:layout_marginTop="15dp" |
213 | android:layout_width="match_parent" | 220 | android:layout_width="match_parent" |
214 | android:layout_height="wrap_content"> | 221 | android:layout_height="wrap_content"> |
215 | <androidx.appcompat.widget.AppCompatTextView | 222 | <androidx.appcompat.widget.AppCompatTextView |
216 | android:text="教师评语" | 223 | android:text="教师评语" |
217 | android:textSize="16sp" | 224 | android:textSize="16sp" |
218 | android:textColor="#333" | 225 | android:textColor="#333" |
219 | android:textStyle="bold" | 226 | android:textStyle="bold" |
220 | android:gravity="center_vertical" | 227 | android:gravity="center_vertical" |
221 | android:paddingHorizontal="15dp" | 228 | android:paddingHorizontal="15dp" |
222 | android:drawablePadding="5dp" | 229 | android:drawablePadding="5dp" |
223 | android:drawableStart="@drawable/svg_ic_comment" | 230 | android:drawableStart="@drawable/svg_ic_comment" |
224 | android:background="@drawable/shape_radius_top_10" | 231 | android:background="@drawable/shape_radius_top_10" |
225 | android:backgroundTint="#DAEBFE" | 232 | android:backgroundTint="#DAEBFE" |
226 | android:layout_width="match_parent" | 233 | android:layout_width="match_parent" |
227 | android:layout_height="40dp"/> | 234 | android:layout_height="40dp"/> |
228 | <EditText | 235 | <EditText |
229 | android:id="@+id/etComment" | 236 | android:id="@+id/etComment" |
230 | android:hint="非必填, 不超过300字" | 237 | android:hint="非必填, 不超过300字" |
231 | android:maxLength="300" | 238 | android:maxLength="300" |
232 | android:textSize="13sp" | 239 | android:textSize="13sp" |
233 | android:textColor="#333" | 240 | android:textColor="#333" |
234 | android:textColorHint="#999" | 241 | android:textColorHint="#999" |
235 | android:gravity="start" | 242 | android:gravity="start" |
236 | android:background="@null" | 243 | android:background="@null" |
237 | android:layout_margin="14dp" | 244 | android:layout_margin="14dp" |
238 | android:layout_width="match_parent" | 245 | android:layout_width="match_parent" |
239 | android:layout_height="wrap_content" | 246 | android:layout_height="wrap_content" |
240 | tools:ignore="Autofill,LabelFor,TextFields" /> | 247 | tools:ignore="Autofill,LabelFor,TextFields" /> |
241 | </LinearLayout> | 248 | </LinearLayout> |
242 | 249 | ||
243 | 250 | ||
244 | </LinearLayout> | 251 | </LinearLayout> |
245 | </androidx.core.widget.NestedScrollView> | 252 | </androidx.core.widget.NestedScrollView> |
246 | </LinearLayout> | 253 | </LinearLayout> |