Commit 6c927b5aa1b155bb2e73d0a4f39ef7f67a1b50f5
1 parent
7f42ea4db6
Exists in
master
作业反馈 布局
Showing
5 changed files
with
296 additions
and
0 deletions
Show diff stats
app/src/main/res/drawable/svg_ic_comment.xml
... | ... | @@ -0,0 +1,14 @@ |
1 | +<vector xmlns:android="http://schemas.android.com/apk/res/android" | |
2 | + android:width="34dp" | |
3 | + android:height="34dp" | |
4 | + android:viewportWidth="34" | |
5 | + android:viewportHeight="34"> | |
6 | + <path | |
7 | + android:pathData="M14,0L28,0C31.314,0 34,2.686 34,6L34,28C34,31.314 31.314,34 28,34L6,34C2.686,34 0,31.314 0,28L0,14C0,6.268 6.268,0 14,0Z" | |
8 | + android:fillColor="#F9C027" | |
9 | + android:fillType="evenOdd"/> | |
10 | + <path | |
11 | + android:pathData="M27.283,10.431C26.963,10.859 19.398,17.174 18.86,17.585C18.536,17.833 17.814,18.812 17.577,19.166C16.713,20.453 16.323,19.485 15.931,19.108C15.539,18.732 14.189,18.529 15.592,17.505C15.858,17.311 16.906,16.658 17.24,16.314C17.684,15.855 24.631,8.045 25.045,7.672C26.128,6.697 27.27,6.973 27.716,7.279C28.135,7.566 28.185,9.224 27.283,10.431ZM13.911,25.89C11.844,27.908 6.527,26.848 6.078,25.252C5.547,23.37 8.256,24.627 9.206,21.756C10.381,18.21 13.374,18.401 14.921,19.934C16.467,21.466 15.952,23.897 13.911,25.89Z" | |
12 | + android:fillColor="#FFFFFF" | |
13 | + android:fillType="evenOdd"/> | |
14 | +</vector> | ... | ... |
app/src/main/res/drawable/svg_ic_correct.xml
... | ... | @@ -0,0 +1,14 @@ |
1 | +<vector xmlns:android="http://schemas.android.com/apk/res/android" | |
2 | + android:width="17dp" | |
3 | + android:height="17dp" | |
4 | + android:viewportWidth="34" | |
5 | + android:viewportHeight="34"> | |
6 | + <path | |
7 | + android:pathData="M14,0L28,0C31.314,0 34,2.686 34,6L34,28C34,31.314 31.314,34 28,34L6,34C2.686,34 0,31.314 0,28L0,14C0,6.268 6.268,0 14,0Z" | |
8 | + android:fillColor="#FF9202" | |
9 | + android:fillType="evenOdd"/> | |
10 | + <path | |
11 | + android:pathData="M27.744,11.507L27.746,11.508L27.738,11.518C27.718,11.556 27.699,11.601 27.677,11.634C27.596,11.757 27.484,11.896 27.35,12.044L17.956,24.751C16.936,26.361 15.853,26.271 14.918,25.348L7.737,18.184C6.755,17.226 6.755,15.674 7.737,14.717C8.719,13.759 10.312,13.759 11.295,14.717L15.89,19.599L23.424,9.248C24.064,8.272 25.289,7.65 26.443,8.231L27.123,8.584C28.243,9.474 28.1,10.845 27.744,11.507Z" | |
12 | + android:fillColor="#FFFFFF" | |
13 | + android:fillType="evenOdd"/> | |
14 | +</vector> | ... | ... |
app/src/main/res/drawable/svg_ic_paper.xml
... | ... | @@ -0,0 +1,14 @@ |
1 | +<vector xmlns:android="http://schemas.android.com/apk/res/android" | |
2 | + android:width="17dp" | |
3 | + android:height="17dp" | |
4 | + android:viewportWidth="34" | |
5 | + android:viewportHeight="34"> | |
6 | + <path | |
7 | + android:pathData="M14,-0L28,-0C31.314,-0 34,2.686 34,6L34,28C34,31.314 31.314,34 28,34L6,34C2.686,34 0,31.314 0,28L0,14C0,6.268 6.268,-0 14,-0Z" | |
8 | + android:fillColor="#FF5B02" | |
9 | + android:fillType="evenOdd"/> | |
10 | + <path | |
11 | + android:pathData="M27.997,20C27.999,20.265 27.901,20.531 27.699,20.734L19.734,28.699C19.531,28.901 19.265,28.999 19,28.997L19,29L8,29C6.895,29 6,28.105 6,27L6,9C6,7.895 6.895,7 8,7L26,7C27.105,7 28,7.895 28,9L28,20L27.997,20ZM20,23L20,25.536L24.536,21L22,21L21,21C20.448,21 20,21.448 20,22L20,23ZM26,10C26,9.448 25.552,9 25,9L9,9C8.448,9 8,9.448 8,10L8,26C8,26.552 8.448,27 9,27L18,27L18,21C18,19.896 18.895,19 20,19L26,19L26,10ZM11,17C11,16.448 11.448,16 12,16L22,16C22.552,16 23,16.448 23,17C23,17.552 22.552,18 22,18L12,18C11.448,18 11,17.552 11,17ZM22,14L12,14C11.448,14 11,13.552 11,13C11,12.448 11.448,12 12,12L22,12C22.552,12 23,12.448 23,13C23,13.552 22.552,14 22,14ZM12,20L14,20C14.552,20 15,20.448 15,21C15,21.552 14.552,22 14,22L12,22C11.448,22 11,21.552 11,21C11,20.448 11.448,20 12,20Z" | |
12 | + android:fillColor="#FFFFFF" | |
13 | + android:fillType="evenOdd"/> | |
14 | +</vector> | ... | ... |
app/src/main/res/drawable/svg_ic_stu_info.xml
... | ... | @@ -0,0 +1,14 @@ |
1 | +<vector xmlns:android="http://schemas.android.com/apk/res/android" | |
2 | + android:width="17dp" | |
3 | + android:height="17dp" | |
4 | + android:viewportWidth="34" | |
5 | + android:viewportHeight="34"> | |
6 | + <path | |
7 | + android:pathData="M14,0L28,0C31.314,0 34,2.686 34,6L34,28C34,31.314 31.314,34 28,34L6,34C2.686,34 -0,31.314 -0,28L-0,14C-0,6.268 6.268,0 14,0Z" | |
8 | + android:fillColor="#39CA51" | |
9 | + android:fillType="evenOdd"/> | |
10 | + <path | |
11 | + android:pathData="M25,23.842C25,23.842 25,23.843 25,23.843C25,24.357 25,24.169 25,24.895C25,25.622 24.524,27 22.935,27L11.323,27C10.009,27 9,25.622 9,24.895C9,24.168 9.004,23.842 9,23.842C9,20.325 11.332,17.349 14.551,16.328C13.086,15.463 12.097,13.851 12.097,12C12.097,9.239 14.292,7 17,7C19.708,7 21.903,9.239 21.903,12C21.903,13.851 20.915,15.463 19.449,16.328C22.668,17.349 25,20.325 25,23.842Z" | |
12 | + android:fillColor="#FFFFFF" | |
13 | + android:fillType="evenOdd"/> | |
14 | +</vector> | ... | ... |
app/src/main/res/layout/activity_homework_feedback.xml
... | ... | @@ -0,0 +1,240 @@ |
1 | +<?xml version="1.0" encoding="utf-8"?> | |
2 | +<LinearLayout | |
3 | + xmlns:android="http://schemas.android.com/apk/res/android" | |
4 | + xmlns:app="http://schemas.android.com/apk/res-auto" | |
5 | + xmlns:tools="http://schemas.android.com/tools" | |
6 | + android:orientation="vertical" | |
7 | + android:layout_width="match_parent" | |
8 | + android:layout_height="match_parent" | |
9 | + tools:ignore="UseCompoundDrawables,HardcodedText,SmallSp,ContentDescription"> | |
10 | + | |
11 | + <androidx.appcompat.widget.Toolbar | |
12 | + android:id="@+id/toolbar" | |
13 | + app:navigationIcon="@drawable/svg_back" | |
14 | + app:contentInsetStartWithNavigation="14dp" | |
15 | + android:paddingStart="-8dp" | |
16 | + android:paddingEnd="-8dp" | |
17 | + android:background="@color/white" | |
18 | + android:layout_width="match_parent" | |
19 | + android:layout_height="40dp"> | |
20 | + <TextView | |
21 | + android:text="第二步:教师评语" | |
22 | + android:textSize="18sp" | |
23 | + android:textColor="#333" | |
24 | + android:textStyle="bold" | |
25 | + android:layout_gravity="center" | |
26 | + android:layout_width="wrap_content" | |
27 | + android:layout_height="wrap_content"/> | |
28 | + <TextView | |
29 | + android:id="@+id/btnPublish" | |
30 | + android:text="发布" | |
31 | + android:textSize="13sp" | |
32 | + android:textColor="#1C90F3" | |
33 | + android:textStyle="bold" | |
34 | + android:layout_gravity="end|center_vertical" | |
35 | + android:layout_marginEnd="24dp" | |
36 | + android:layout_width="wrap_content" | |
37 | + android:layout_height="wrap_content"/> | |
38 | + </androidx.appcompat.widget.Toolbar> | |
39 | + | |
40 | + <androidx.core.widget.NestedScrollView | |
41 | + android:layout_width="match_parent" | |
42 | + android:layout_height="match_parent"> | |
43 | + <LinearLayout | |
44 | + android:orientation="vertical" | |
45 | + android:paddingHorizontal="15dp" | |
46 | + android:paddingBottom="20dp" | |
47 | + android:layout_width="match_parent" | |
48 | + android:layout_height="wrap_content"> | |
49 | + | |
50 | + <LinearLayout | |
51 | + android:orientation="vertical" | |
52 | + android:background="@drawable/shape_radius_10" | |
53 | + android:backgroundTint="@color/white" | |
54 | + android:layout_marginTop="15dp" | |
55 | + android:layout_width="match_parent" | |
56 | + android:layout_height="wrap_content"> | |
57 | + <androidx.appcompat.widget.AppCompatTextView | |
58 | + android:text="学生信息" | |
59 | + android:textSize="16sp" | |
60 | + android:textColor="#333" | |
61 | + android:textStyle="bold" | |
62 | + android:gravity="center_vertical" | |
63 | + android:paddingHorizontal="15dp" | |
64 | + android:drawablePadding="5dp" | |
65 | + android:drawableStart="@drawable/svg_ic_stu_info" | |
66 | + android:background="@drawable/shape_radius_top_10" | |
67 | + android:backgroundTint="#DAEBFE" | |
68 | + android:layout_width="match_parent" | |
69 | + android:layout_height="40dp"/> | |
70 | + <LinearLayout | |
71 | + android:orientation="horizontal" | |
72 | + android:layout_marginHorizontal="15dp" | |
73 | + android:layout_marginVertical="18dp" | |
74 | + android:layout_width="match_parent" | |
75 | + android:layout_height="wrap_content"> | |
76 | + <TextView | |
77 | + android:text="学生姓名:" | |
78 | + android:textSize="14sp" | |
79 | + android:textColor="#333" | |
80 | + android:layout_width="wrap_content" | |
81 | + android:layout_height="wrap_content"/> | |
82 | + <TextView | |
83 | + android:text="杨小凯" | |
84 | + android:textSize="14sp" | |
85 | + android:textColor="#333" | |
86 | + android:layout_width="wrap_content" | |
87 | + android:layout_height="wrap_content"/> | |
88 | + <Space style="@style/empty_space"/> | |
89 | + <TextView | |
90 | + android:text="年级:" | |
91 | + android:textSize="14sp" | |
92 | + android:textColor="#333" | |
93 | + android:layout_width="wrap_content" | |
94 | + android:layout_height="wrap_content"/> | |
95 | + <TextView | |
96 | + android:text="六年级" | |
97 | + android:textSize="14sp" | |
98 | + android:textColor="#333" | |
99 | + android:layout_width="96dp" | |
100 | + android:layout_height="wrap_content"/> | |
101 | + </LinearLayout> | |
102 | + </LinearLayout> | |
103 | + | |
104 | + <LinearLayout | |
105 | + android:orientation="vertical" | |
106 | + android:background="@drawable/shape_radius_10" | |
107 | + android:backgroundTint="@color/white" | |
108 | + android:paddingBottom="15dp" | |
109 | + android:layout_marginTop="15dp" | |
110 | + android:layout_width="match_parent" | |
111 | + android:layout_height="wrap_content"> | |
112 | + <androidx.appcompat.widget.AppCompatTextView | |
113 | + android:text="作业详情" | |
114 | + android:textSize="16sp" | |
115 | + android:textColor="#333" | |
116 | + android:textStyle="bold" | |
117 | + android:gravity="center_vertical" | |
118 | + android:paddingHorizontal="15dp" | |
119 | + android:drawablePadding="5dp" | |
120 | + android:drawableStart="@drawable/svg_ic_correct" | |
121 | + android:background="@drawable/shape_radius_top_10" | |
122 | + android:backgroundTint="#DAEBFE" | |
123 | + android:layout_width="match_parent" | |
124 | + android:layout_height="40dp"/> | |
125 | + <LinearLayout | |
126 | + android:orientation="horizontal" | |
127 | + android:layout_marginHorizontal="15dp" | |
128 | + android:layout_marginTop="15dp" | |
129 | + android:layout_width="match_parent" | |
130 | + android:layout_height="wrap_content"> | |
131 | + <TextView | |
132 | + android:text="学生姓名:" | |
133 | + android:textSize="14sp" | |
134 | + android:textColor="#333" | |
135 | + android:layout_width="wrap_content" | |
136 | + android:layout_height="wrap_content"/> | |
137 | + <TextView | |
138 | + tools:text="60%" | |
139 | + android:textSize="14sp" | |
140 | + android:textColor="#333" | |
141 | + android:layout_width="wrap_content" | |
142 | + android:layout_height="wrap_content"/> | |
143 | + <Space style="@style/empty_space"/> | |
144 | + <TextView | |
145 | + android:text="答题结果" | |
146 | + android:textSize="14sp" | |
147 | + android:textColor="#333" | |
148 | + android:layout_width="wrap_content" | |
149 | + android:layout_height="wrap_content"/> | |
150 | + <TextView | |
151 | + android:text="(点击查看题目详情)" | |
152 | + android:textSize="14sp" | |
153 | + android:textColor="#1C90F3" | |
154 | + android:layout_width="wrap_content" | |
155 | + android:layout_height="wrap_content"/> | |
156 | + </LinearLayout> | |
157 | + | |
158 | + <androidx.recyclerview.widget.RecyclerView | |
159 | + android:id="@+id/rvCorrect" | |
160 | + tools:itemCount="1" | |
161 | + android:layout_marginTop="15dp" | |
162 | + android:layout_marginHorizontal="15dp" | |
163 | + android:layout_width="match_parent" | |
164 | + android:layout_height="wrap_content"/> | |
165 | + <TextView | |
166 | + android:text="错题已经加入到错题本,到错题本查看详情" | |
167 | + android:textSize="12sp" | |
168 | + android:textColor="#666" | |
169 | + android:layout_marginTop="15dp" | |
170 | + android:layout_marginHorizontal="15dp" | |
171 | + android:layout_width="wrap_content" | |
172 | + android:layout_height="wrap_content"/> | |
173 | + </LinearLayout> | |
174 | + | |
175 | + <LinearLayout | |
176 | + android:orientation="vertical" | |
177 | + android:background="@drawable/shape_radius_10" | |
178 | + android:backgroundTint="@color/white" | |
179 | + android:layout_marginTop="15dp" | |
180 | + android:layout_width="match_parent" | |
181 | + android:layout_height="wrap_content"> | |
182 | + <androidx.appcompat.widget.AppCompatTextView | |
183 | + android:text="作业详情" | |
184 | + android:textSize="16sp" | |
185 | + android:textColor="#333" | |
186 | + android:textStyle="bold" | |
187 | + android:gravity="center_vertical" | |
188 | + android:paddingHorizontal="15dp" | |
189 | + android:drawablePadding="5dp" | |
190 | + android:drawableStart="@drawable/svg_ic_paper" | |
191 | + android:background="@drawable/shape_radius_top_10" | |
192 | + android:backgroundTint="#DAEBFE" | |
193 | + android:layout_width="match_parent" | |
194 | + android:layout_height="40dp"/> | |
195 | + <androidx.recyclerview.widget.RecyclerView | |
196 | + android:id="@+id/rvError" | |
197 | + android:orientation="vertical" | |
198 | + app:layoutManager="androidx.recyclerview.widget.LinearLayoutManager" | |
199 | + android:layout_width="match_parent" | |
200 | + android:layout_height="wrap_content"/> | |
201 | + </LinearLayout> | |
202 | + | |
203 | + <LinearLayout | |
204 | + android:orientation="vertical" | |
205 | + android:background="@drawable/shape_radius_10" | |
206 | + android:backgroundTint="@color/white" | |
207 | + android:layout_marginTop="15dp" | |
208 | + android:layout_width="match_parent" | |
209 | + android:layout_height="wrap_content"> | |
210 | + <androidx.appcompat.widget.AppCompatTextView | |
211 | + android:text="教师评语" | |
212 | + android:textSize="16sp" | |
213 | + android:textColor="#333" | |
214 | + android:textStyle="bold" | |
215 | + android:gravity="center_vertical" | |
216 | + android:paddingHorizontal="15dp" | |
217 | + android:drawablePadding="5dp" | |
218 | + android:drawableStart="@drawable/svg_ic_paper" | |
219 | + android:background="@drawable/shape_radius_top_10" | |
220 | + android:backgroundTint="#DAEBFE" | |
221 | + android:layout_width="match_parent" | |
222 | + android:layout_height="40dp"/> | |
223 | + <EditText | |
224 | + android:id="@+id/etComment" | |
225 | + android:hint="非必填" | |
226 | + android:textSize="13sp" | |
227 | + android:textColor="#333" | |
228 | + android:textColorHint="#999" | |
229 | + android:gravity="start" | |
230 | + android:background="@null" | |
231 | + android:layout_margin="14dp" | |
232 | + android:layout_width="match_parent" | |
233 | + android:layout_height="wrap_content" | |
234 | + tools:ignore="Autofill,LabelFor,TextFields" /> | |
235 | + </LinearLayout> | |
236 | + | |
237 | + | |
238 | + </LinearLayout> | |
239 | + </androidx.core.widget.NestedScrollView> | |
240 | +</LinearLayout> | |
0 | 241 | \ No newline at end of file | ... | ... |