Commit b97677fa12b08386266f8a1f41cbc3d1a364bbe3

Authored by shixianjie
1 parent 3d09c09888
Exists in master

周报修改

app/src/main/java/com/hjx/parent/HuyouDetailActivity.java
1 package com.hjx.parent; 1 package com.hjx.parent;
2 2
3 3
4 import android.annotation.SuppressLint; 4 import android.annotation.SuppressLint;
5 import android.content.Intent; 5 import android.content.Intent;
6 import android.content.res.ColorStateList; 6 import android.content.res.ColorStateList;
7 import android.graphics.Bitmap; 7 import android.graphics.Bitmap;
8 import android.net.Uri; 8 import android.net.Uri;
9 import android.os.Bundle; 9 import android.os.Bundle;
10 import android.text.Html; 10 import android.text.Html;
11 import android.view.View; 11 import android.view.View;
12 import android.widget.TextView; 12 import android.widget.TextView;
13 13
14 import androidx.annotation.NonNull; 14 import androidx.annotation.NonNull;
15 import androidx.annotation.Nullable; 15 import androidx.annotation.Nullable;
16 import androidx.core.content.res.ResourcesCompat; 16 import androidx.core.content.res.ResourcesCompat;
17 17
18 import com.bumptech.glide.Glide; 18 import com.bumptech.glide.Glide;
19 import com.chad.library.adapter.base.BaseQuickAdapter; 19 import com.chad.library.adapter.base.BaseQuickAdapter;
20 import com.chad.library.adapter.base.BaseViewHolder; 20 import com.chad.library.adapter.base.BaseViewHolder;
21 import com.github.mikephil.charting.components.Legend; 21 import com.github.mikephil.charting.components.Legend;
22 import com.github.mikephil.charting.components.XAxis; 22 import com.github.mikephil.charting.components.XAxis;
23 import com.github.mikephil.charting.components.YAxis; 23 import com.github.mikephil.charting.components.YAxis;
24 import com.github.mikephil.charting.data.Entry; 24 import com.github.mikephil.charting.data.Entry;
25 import com.github.mikephil.charting.data.LineData; 25 import com.github.mikephil.charting.data.LineData;
26 import com.github.mikephil.charting.data.LineDataSet; 26 import com.github.mikephil.charting.data.LineDataSet;
27 import com.github.mikephil.charting.formatter.ValueFormatter; 27 import com.github.mikephil.charting.formatter.ValueFormatter;
28 import com.gyf.immersionbar.ImmersionBar; 28 import com.gyf.immersionbar.ImmersionBar;
29 import com.hjx.parent.databinding.ActivityHuyouDetailBinding; 29 import com.hjx.parent.databinding.ActivityHuyouDetailBinding;
30 import com.hjx.parent.rx.BaseRxActivity; 30 import com.hjx.parent.rx.BaseRxActivity;
31 import com.prws.common.bean.Student; 31 import com.prws.common.bean.Student;
32 import com.prws.common.bean.homework.StDetail; 32 import com.prws.common.bean.homework.StDetail;
33 import com.prws.common.net.NetWorks; 33 import com.prws.common.net.NetWorks;
34 import com.prws.common.utils.BitmapUtils; 34 import com.prws.common.utils.BitmapUtils;
35 import com.prws.common.utils.ContentUtil; 35 import com.prws.common.utils.ContentUtil;
36 import com.trello.rxlifecycle2.android.RxLifecycleAndroid; 36 import com.trello.rxlifecycle2.android.RxLifecycleAndroid;
37 37
38 import java.text.DecimalFormat; 38 import java.text.DecimalFormat;
39 import java.text.SimpleDateFormat; 39 import java.text.SimpleDateFormat;
40 import java.util.ArrayList; 40 import java.util.ArrayList;
41 import java.util.Date; 41 import java.util.Date;
42 import java.util.List; 42 import java.util.List;
43 import java.util.Locale; 43 import java.util.Locale;
44 import java.util.TimeZone; 44 import java.util.TimeZone;
45 45
46 import io.reactivex.android.schedulers.AndroidSchedulers; 46 import io.reactivex.android.schedulers.AndroidSchedulers;
47 import io.reactivex.schedulers.Schedulers; 47 import io.reactivex.schedulers.Schedulers;
48 48
49 public class HuyouDetailActivity extends BaseRxActivity<ActivityHuyouDetailBinding> { 49 public class HuyouDetailActivity extends BaseRxActivity<ActivityHuyouDetailBinding> {
50 50
51 private String id; 51 private String id;
52 private int type; // 0:周 1:阶段 52 private int type; // 0:周 1:阶段
53 private Student student; 53 private Student student;
54 54
55 private StDetail mData; 55 private StDetail mData;
56 56
57 final String indent = "&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"; 57 final String indent = "&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;";
58 58
59 private boolean a4 = false; 59 private boolean a4 = false;
60 60
61 @Override 61 @Override
62 protected void onResume() { 62 protected void onResume() {
63 super.onResume(); 63 super.onResume();
64 binding.root.postDelayed(() -> { 64 binding.root.postDelayed(() -> {
65 float scale = 1f * binding.getRoot().getWidth() / binding.root.getWidth(); 65 float scale = 1f * binding.getRoot().getWidth() / binding.root.getWidth();
66 if (scale >= 1) return; 66 if (scale >= 1) return;
67 binding.root.setScaleX(scale); 67 binding.root.setScaleX(scale);
68 binding.root.setScaleY(scale); 68 binding.root.setScaleY(scale);
69 }, 100); 69 }, 100);
70 } 70 }
71 71
72 @SuppressLint("CheckResult") 72 @SuppressLint("CheckResult")
73 @Override 73 @Override
74 public void initView(Bundle savedInstanceState) { 74 public void initView(Bundle savedInstanceState) {
75 binding.btnBack.setOnClickListener(v -> onBackPressed()); 75 binding.btnBack.setOnClickListener(v -> onBackPressed());
76 id = getIntent().getStringExtra("id"); 76 id = getIntent().getStringExtra("id");
77 type = getIntent().getIntExtra("type", 0); 77 type = getIntent().getIntExtra("type", 0);
78 student = (Student) getIntent().getSerializableExtra("student"); 78 student = (Student) getIntent().getSerializableExtra("student");
79 79
80 if (type == 1) binding.tvTitle.setText("阶段作业学习总结"); 80 if (type == 1) {
81 binding.tvTitle.setText("阶段作业学习总结");
82 binding.viewWeekTable.setVisibility(View.GONE);
83 } else {
84 binding.viewPointTotal.setVisibility(View.GONE);
85 binding.viewTable.setVisibility(View.GONE);
86 }
81 87
82 Glide.with(this).load(student.photo).into(binding.ivAvatar); 88 Glide.with(this).load(student.photo).into(binding.ivAvatar);
83 binding.tvStuName.setText(student.stuName); 89 binding.tvStuName.setText(student.stuName);
84 90
85 setupChart(); 91 setupChart();
86 NetWorks.service_url.getHuyouDetail(NetWorks.getHeader(), id) 92 NetWorks.service_url.getHuyouDetail(NetWorks.getHeader(), id)
87 .subscribeOn(Schedulers.io()) 93 .subscribeOn(Schedulers.io())
88 .map(response -> response.getData()) 94 .map(response -> response.getData())
89 .map(data -> { 95 .map(data -> {
90 if (type == 1) data.formatCollection(); 96 if (type == 1) data.formatCollection();
91 return data; 97 return data;
92 }) 98 })
93 .observeOn(AndroidSchedulers.mainThread()) 99 .observeOn(AndroidSchedulers.mainThread())
94 .compose(RxLifecycleAndroid.bindActivity(getRxLifecycle())) 100 .compose(RxLifecycleAndroid.bindActivity(getRxLifecycle()))
95 .subscribe((data, th) -> { 101 .subscribe((data, th) -> {
96 mData = data; 102 mData = data;
97 if (th != null) th.printStackTrace(); 103 if (th != null) th.printStackTrace();
98 if (data != null) showData(data); 104 if (data != null) showData(data);
99 }); 105 });
100 106
101 binding.btnShare.setOnClickListener(v -> { 107 binding.btnShare.setOnClickListener(v -> {
102 Uri shareUri = prepareShare(); 108 Uri shareUri = prepareShare();
103 if (shareUri != null) { 109 if (shareUri != null) {
104 Intent shareIntent = new Intent(Intent.ACTION_SEND); 110 Intent shareIntent = new Intent(Intent.ACTION_SEND);
105 shareIntent.setType("image/jpeg"); 111 shareIntent.setType("image/jpeg");
106 shareIntent.putExtra(Intent.EXTRA_STREAM, shareUri); 112 shareIntent.putExtra(Intent.EXTRA_STREAM, shareUri);
107 shareIntent.addFlags(Intent.FLAG_GRANT_READ_URI_PERMISSION); 113 shareIntent.addFlags(Intent.FLAG_GRANT_READ_URI_PERMISSION);
108 114
109 startActivity(shareIntent); 115 startActivity(shareIntent);
110 } 116 }
111 }); 117 });
112 118
113 binding.btnSwitch.setOnClickListener(v -> { 119 binding.btnSwitch.setOnClickListener(v -> {
114 switchPage(); 120 switchPage();
115 }); 121 });
116 122
117 } 123 }
118 124
119 private SimpleDateFormat getFormatWithGmt8(String pattern) { 125 private SimpleDateFormat getFormatWithGmt8(String pattern) {
120 SimpleDateFormat format = new SimpleDateFormat(pattern, Locale.CHINA); 126 SimpleDateFormat format = new SimpleDateFormat(pattern, Locale.CHINA);
121 format.setTimeZone(TimeZone.getTimeZone("GMT+16")); 127 format.setTimeZone(TimeZone.getTimeZone("GMT+16"));
122 return format; 128 return format;
123 } 129 }
124 130
125 @SuppressLint("SetTextI18n") 131 @SuppressLint("SetTextI18n")
126 private void showData(StDetail data) { 132 private void showData(StDetail data) {
127 binding.tvGrade.setText(data.grade); 133 binding.tvGrade.setText(data.grade);
128 binding.tvSubject.setText(data.homeworkSubject); 134 binding.tvSubject.setText(data.homeworkSubject);
129 String start = getFormatWithGmt8("yyyy.M.d").format(data.startTime); 135 String start = getFormatWithGmt8("yyyy.M.d").format(data.startTime);
130 String end = new SimpleDateFormat(" - M.d", Locale.CHINA).format(data.endTime); 136 String end = new SimpleDateFormat(" - M.d", Locale.CHINA).format(data.endTime);
131 binding.tvDate.setText(start + end); 137 binding.tvDate.setText(start + end);
132 138
133 if (data.points == null) data.points = new ArrayList<>(); 139 if (data.points == null) data.points = new ArrayList<>();
134 if (data.points.size() == 0) { 140 if (data.points.size() == 0) {
135 binding.cpBefore.setValue(0); 141 binding.cpBefore.setValue(0);
136 binding.cpAfter.setValue(0); 142 binding.cpAfter.setValue(0);
137 binding.pgBefore.setText("0"); 143 binding.pgBefore.setText("0");
138 binding.pgAfter.setText("0"); 144 binding.pgAfter.setText("0");
139 } else { 145 } else {
140 float before = 0; 146 float before = 0;
141 float after = 0; 147 float after = 0;
142 for (StDetail.Point point: data.points) { 148 for (StDetail.Point point: data.points) {
143 before += point.beforeState; 149 before += point.beforeState;
144 after += point.afterState; 150 after += point.afterState;
145 } 151 }
146 before = (int) (100f * before / data.points.size() + 0.5f); 152 before = (int) (100f * before / data.points.size() + 0.5f);
147 after = (int) (100f * after / data.points.size() + 0.5f); 153 after = (int) (100f * after / data.points.size() + 0.5f);
148 binding.cpBefore.setValue(before); 154 binding.cpBefore.setValue(before);
149 binding.cpAfter.setValue(after); 155 binding.cpAfter.setValue(after);
150 DecimalFormat format = new DecimalFormat("0"); 156 DecimalFormat format = new DecimalFormat("0");
151 binding.pgBefore.setText(format.format(before)); 157 binding.pgBefore.setText(format.format(before));
152 binding.pgAfter.setText(format.format(after)); 158 binding.pgAfter.setText(format.format(after));
153 159
154 String comment; 160 String comment;
155 if (after >= 90) { 161 if (after >= 90) {
156 comment = "知识点掌握的比较扎实,多练习多巩固掌握一般的知识点会有很大帮助。"; 162 comment = "知识点掌握的比较扎实,多练习多巩固掌握一般的知识点会有很大帮助。";
157 } else if (after >= 80) { 163 } else if (after >= 80) {
158 comment = "知识点掌握程度有进步,还要再继续学习,多练习,不断巩固。"; 164 comment = "知识点掌握程度有进步,还要再继续学习,多练习,不断巩固。";
159 } else if (after >= 60) { 165 } else if (after >= 60) {
160 comment = "薄弱知识点还有进步空间,再多做一些类似题目来巩固知识点,继续努力。"; 166 comment = "薄弱知识点还有进步空间,再多做一些类似题目来巩固知识点,继续努力。";
161 } else { 167 } else {
162 comment = "你的薄弱知识点还需要再深入了解,有不清楚的地方及时问老师,继续加油。"; 168 comment = "你的薄弱知识点还需要再深入了解,有不清楚的地方及时问老师,继续加油。";
163 } 169 }
164 String percent = new DecimalFormat("0%").format(after / 100); 170 String percent = new DecimalFormat("0%").format(after / 100);
165 String temp = indent + "通过学习,你的薄弱知识点掌握程度为 %s," + comment; 171 String temp = indent + "通过学习,你的薄弱知识点掌握程度为 %s," + comment;
166 temp = String.format(temp, fromColor(percent, "#F24E38")); 172 temp = String.format(temp, fromColor(percent, "#F24E38"));
167 binding.tvWeakRate.setText(Html.fromHtml(temp, Html.FROM_HTML_MODE_COMPACT)); 173 binding.tvWeakRate.setText(Html.fromHtml(temp, Html.FROM_HTML_MODE_COMPACT));
168 } 174 }
169 175
170 binding.tvTotalRate.setText(new DecimalFormat("0").format(100f * data.correct / data.total)); 176 int exNo = 0, goodNo = 0, normalNo = 0, weakNo = 0;
177 float total = 0;
178 if (data.points != null) {
179 for (StDetail.Point point: data.points) {
180 total += point.afterState;
181 if (point.afterState >= 0.9) {
182 exNo ++;
183 } else if (point.afterState >= 0.8) {
184 goodNo ++;
185 } else if (point.afterState >= 0.6) {
186 normalNo ++;
187 } else {
188 weakNo ++;
189 }
190 }
191 }
192
193 float rate = 100f * data.correct / Math.max(data.total - data.unfinished, 1);
194 binding.tvTotalRate.setText(new DecimalFormat("0").format(rate));
171 binding.tvTotalCorrect.setText(String.valueOf(data.correct)); 195 binding.tvTotalCorrect.setText(String.valueOf(data.correct));
172 binding.tvTotalError.setText(String.valueOf(data.total - data.correct)); 196 binding.tvTotalError.setText(String.valueOf(data.total - data.correct));
197 binding.tvTotalBlank.setText(String.valueOf(data.unfinished));
173 if (data.total == 0) { 198 if (data.total == 0) {
174 binding.tvRating.setText(""); 199 binding.tvRating.setText("");
175 } else { 200 } else {
176 float rate = 100f * data.correct / data.total; 201 String rateComment;
177 String comment;
178 if (rate >= 90) { 202 if (rate >= 90) {
179 comment = "掌握程度比较优秀,你对知识的理解和运用能力非常强,这是你努力的结果。请继续保持这份优秀,在未来的学习中,可以继续挑战更难的题目,勇攀高峰。"; 203 rateComment = "知识点掌握得比较优秀,多练习多巩固掌握一般的知识点会有很大帮助。";
180 } else if (rate >= 80) { 204 } else if (rate >= 80) {
181 comment = "掌握良好。接下来,跟随老师的学习规划,针对薄弱环节重点突破。加油,只要持之以恒,坚持下去,你一定会更加出色。"; 205 rateComment = "知识点掌握程度有进步,还要再继续学习,多练习,不断巩固。";
182 } else if (rate >= 60) { 206 } else if (rate >= 60) {
183 comment = "掌握程度一般。不过别灰心,你有提升的潜力。跟随老师的步伐,制定合理的学习计划,多做一些练习题来巩固知识。老师相信你一定可以做到。"; 207 rateComment = "薄弱知识点还有进步空间,再多做一些类似题目来巩固知识点,继续努力。";
184 } else { 208 } else {
185 comment = "掌握程度较为薄弱。但不要放弃,这正是你奋起直追的好时机。认真分析自己的问题,从基础开始逐步提升。老师会一直支持你,只要你有决心,就没有克服不了的困难。"; 209 rateComment = "你的薄弱知识点还需要再深入了解,有不清楚的地方及时问老师,继续加油。";
210 }
211
212 String correctNumHt = fromColor(String.valueOf(data.correct), "#3BC3B6");
213 String errNumHt = fromColor(String.valueOf(data.total - data.correct - data.unfinished), "#3BC3B6");
214 StringBuilder pointComment = new StringBuilder("其中,答对题目 ")
215 .append(correctNumHt).append(" 个,答错题目 ")
216 .append(errNumHt).append(" 个");
217 if (exNo > 0) {
218 pointComment.append(",").append(exNo).append(" 个知识点掌握的非常棒");
186 } 219 }
220 if (weakNo > 0) {
221 pointComment.append(",").append(weakNo).append(" 个知识点掌握的还需努力,这部分还要再加强学习");
222 }
223 pointComment.append("。");
187 String rateStr = new DecimalFormat("0%").format(rate / 100f); 224 String rateStr = new DecimalFormat("0%").format(rate / 100f);
188 String temp; 225 String temp;
189 if (type == 0) { 226 if (type == 0) {
190 temp = indent + "在本周作业中,你的综合正确率是 %s," + comment; 227 temp = indent + "在本周作业中,你的综合正确率是 %s," + rateComment + pointComment + "在未来的学习中,请保持这份优秀,继续挑战更难的题目,勇攀高峰。";
191 } else { 228 } else {
192 temp = indent + "你的综合正确率是 %s," + comment; 229 temp = indent + "你的综合正确率是 %s," + rateComment;
193 } 230 }
194 temp = String.format(temp, fromColor(rateStr, "#3BC3B6")); 231 temp = String.format(temp, fromColor(rateStr, "#3BC3B6"));
195 binding.tvRating.setText(Html.fromHtml(temp, Html.FROM_HTML_MODE_COMPACT)); 232 binding.tvRating.setText(Html.fromHtml(temp, Html.FROM_HTML_MODE_COMPACT));
196 } 233 }
197 234
198 List<Entry> entries = new ArrayList<>(); 235 List<Entry> entries = new ArrayList<>();
199 if (type == 0) { 236 if (type == 0) {
200 entries.add(new Entry(1, data.mondayCorrection)); 237 entries.add(new Entry(1, data.mondayCorrection));
201 entries.add(new Entry(2, data.tuesdayCorrection)); 238 entries.add(new Entry(2, data.tuesdayCorrection));
202 entries.add(new Entry(3, data.wednesdayCorrection)); 239 entries.add(new Entry(3, data.wednesdayCorrection));
203 entries.add(new Entry(4, data.thursdayCorrection)); 240 entries.add(new Entry(4, data.thursdayCorrection));
204 entries.add(new Entry(5, data.fridayCorrection)); 241 entries.add(new Entry(5, data.fridayCorrection));
205 } else { 242 } else {
206 for (int i = 0; i < data.correctionList.size(); i ++) { 243 for (int i = 0; i < data.correctionList.size(); i ++) {
207 StDetail.Correction c = data.correctionList.get(i); 244 StDetail.Correction c = data.correctionList.get(i);
208 entries.add(new Entry(i, c.correction)); 245 entries.add(new Entry(i, c.correction));
209 } 246 }
210 XAxis xAxis = binding.lineChart.getXAxis(); 247 XAxis xAxis = binding.lineChart.getXAxis();
211 xAxis.setLabelCount(Math.min(entries.size(), 5), true); 248 xAxis.setLabelCount(Math.min(entries.size(), 5), true);
212 xAxis.setValueFormatter(new ValueFormatter() { 249 xAxis.setValueFormatter(new ValueFormatter() {
213 SimpleDateFormat format = new SimpleDateFormat("M.d", Locale.CHINA); 250 SimpleDateFormat format = new SimpleDateFormat("M.d", Locale.CHINA);
214 @Override 251 @Override
215 public String getFormattedValue(float value) { 252 public String getFormattedValue(float value) {
216 int index = (int) value; 253 int index = (int) value;
217 if (index < 0 || index >= data.correctionList.size()) return ""; 254 if (index < 0 || index >= data.correctionList.size()) return "";
218 Date date = data.correctionList.get(index).date; 255 Date date = data.correctionList.get(index).date;
219 return format.format(date); 256 return format.format(date);
220 } 257 }
221 }); 258 });
222 } 259 }
223 260
224 LineDataSet set = new LineDataSet(entries, ""); 261 LineDataSet set = new LineDataSet(entries, "");
225 set.setColor(0xFF3BC3B6); 262 set.setColor(0xFF3BC3B6);
226 set.setCircleColor(0xFF3BC3B6); 263 set.setCircleColor(0xFF3BC3B6);
227 set.setDrawFilled(true); 264 set.setDrawFilled(true);
228 set.setDrawCircles(type == 0 || entries.size() == 1); 265 set.setDrawCircles(type == 0 || entries.size() == 1);
229 set.setDrawValues(false); 266 set.setDrawValues(false);
230 set.setHighlightEnabled(false); 267 set.setHighlightEnabled(false);
231 set.setDrawHighlightIndicators(false); 268 set.setDrawHighlightIndicators(false);
232 set.setFillDrawable(ResourcesCompat.getDrawable(getResources(), R.drawable.bg_line_chart_fill2, null)); 269 set.setFillDrawable(ResourcesCompat.getDrawable(getResources(), R.drawable.bg_line_chart_fill2, null));
233 binding.lineChart.setData(new LineData(set)); 270 binding.lineChart.setData(new LineData(set));
234 binding.lineChart.invalidate(); 271 binding.lineChart.invalidate();
235 272
236 if (!data.points.isEmpty()) { 273 if (!data.points.isEmpty()) {
237 int exNo = 0, goodNo = 0, normalNo = 0, weakNo = 0;
238 float total = 0;
239 for (StDetail.Point point: data.points) {
240 total += point.afterState;
241 if (point.afterState >= 0.9) {
242 exNo ++;
243 } else if (point.afterState >= 0.8) {
244 goodNo ++;
245 } else if (point.afterState >= 0.6) {
246 normalNo ++;
247 } else {
248 weakNo ++;
249 }
250 }
251 binding.tvExcellent.setText(String.valueOf(exNo)); 274 binding.tvExcellent.setText(String.valueOf(exNo));
252 binding.tvGood.setText(String.valueOf(goodNo)); 275 binding.tvGood.setText(String.valueOf(goodNo));
253 binding.tvNormal.setText(String.valueOf(normalNo)); 276 binding.tvNormal.setText(String.valueOf(normalNo));
254 binding.tvWeak.setText(String.valueOf(weakNo)); 277 binding.tvWeak.setText(String.valueOf(weakNo));
255 278
256 float exRate = 100f * exNo / data.points.size(); 279 float exRate = 100f * exNo / data.points.size();
257 float goodRate = 100f * goodNo / data.points.size(); 280 float goodRate = 100f * goodNo / data.points.size();
258 float normalRate = 100f * normalNo / data.points.size(); 281 float normalRate = 100f * normalNo / data.points.size();
259 float weakRate = 100f * weakNo / data.points.size(); 282 float weakRate = 100f * weakNo / data.points.size();
260 binding.cpGood.setValue(goodRate + normalRate + weakRate); 283 binding.cpGood.setValue(goodRate + normalRate + weakRate);
261 binding.cpNormal.setValue(normalRate + weakRate); 284 binding.cpNormal.setValue(normalRate + weakRate);
262 binding.cpWeak.setValue(weakRate); 285 binding.cpWeak.setValue(weakRate);
263 binding.tvAvePoint.setText(new DecimalFormat("0").format(100f * total / data.points.size())); 286 binding.tvAvePoint.setText(new DecimalFormat("0").format(100f * total / data.points.size()));
264 } 287 }
265 288
266 List<StDetail.Point> points = new ArrayList<>(); 289 List<StDetail.Point> points = new ArrayList<>();
267 for (StDetail.Point point: data.points) { 290 for (StDetail.Point point: data.points) {
268 if (point.beforeState < 1) points.add(point); 291 if (point.beforeState < 1) points.add(point);
269 } 292 }
270 binding.tableRoot.setClipToOutline(true); 293 binding.tableRoot.setClipToOutline(true);
294 binding.tableWeekRoot.setClipToOutline(true);
271 binding.rvPoint.setAdapter(new Adapter(points)); 295 binding.rvPoint.setAdapter(new Adapter(points));
296 binding.rvWeekPoint.setAdapter(new WeekAdapter(data.points));
272 binding.tableRoot.setVisibility(points.isEmpty() ? View.GONE : View.VISIBLE); 297 binding.tableRoot.setVisibility(points.isEmpty() ? View.GONE : View.VISIBLE);
273 binding.flPointDesc.setVisibility(points.isEmpty() ? View.GONE : View.VISIBLE); 298 binding.flPointDesc.setVisibility(points.isEmpty() ? View.GONE : View.VISIBLE);
274 binding.flEmptyPoints.setVisibility(points.isEmpty() ? View.VISIBLE : View.GONE); 299 binding.flEmptyPoints.setVisibility(points.isEmpty() ? View.VISIBLE : View.GONE);
275 } 300 }
276 301
277 private void setupChart() { 302 private void setupChart() {
278 binding.lineChart.getLegend().setForm(Legend.LegendForm.NONE); 303 binding.lineChart.getLegend().setForm(Legend.LegendForm.NONE);
279 binding.lineChart.setScaleEnabled(false); 304 binding.lineChart.setScaleEnabled(false);
280 binding.lineChart.setTouchEnabled(false); 305 binding.lineChart.setTouchEnabled(false);
281 binding.lineChart.setDescription(null); 306 binding.lineChart.setDescription(null);
282 binding.lineChart.getAxisRight().setEnabled(false); 307 binding.lineChart.getAxisRight().setEnabled(false);
283 YAxis yAxis = binding.lineChart.getAxisLeft(); 308 YAxis yAxis = binding.lineChart.getAxisLeft();
284 yAxis.setDrawAxisLine(false); 309 yAxis.setDrawAxisLine(false);
285 yAxis.setDrawGridLines(true); 310 yAxis.setDrawGridLines(true);
286 yAxis.setGridColor(0xFFDDDDDD); 311 yAxis.setGridColor(0xFFDDDDDD);
287 yAxis.setTextColor(0xFF333333); 312 yAxis.setTextColor(0xFF333333);
288 if (type == 0) { 313 if (type == 0) {
289 yAxis.setTextSize(16); 314 yAxis.setTextSize(16);
290 yAxis.setXOffset(16); 315 yAxis.setXOffset(16);
291 } else { 316 } else {
292 yAxis.setTextSize(13); 317 yAxis.setTextSize(13);
293 } 318 }
294 yAxis.setAxisMinimum(0); 319 yAxis.setAxisMinimum(0);
295 yAxis.setAxisMaximum(1); 320 yAxis.setAxisMaximum(1);
296 yAxis.setLabelCount(5, true); 321 yAxis.setLabelCount(5, true);
297 yAxis.setValueFormatter(new ValueFormatter() { 322 yAxis.setValueFormatter(new ValueFormatter() {
298 @Override 323 @Override
299 public String getFormattedValue(float value) { 324 public String getFormattedValue(float value) {
300 return new DecimalFormat("0%").format(value); 325 return new DecimalFormat("0%").format(value);
301 } 326 }
302 }); 327 });
303 328
304 XAxis xAxis = binding.lineChart.getXAxis(); 329 XAxis xAxis = binding.lineChart.getXAxis();
305 xAxis.setPosition(XAxis.XAxisPosition.BOTTOM); 330 xAxis.setPosition(XAxis.XAxisPosition.BOTTOM);
306 xAxis.setDrawAxisLine(false); 331 xAxis.setDrawAxisLine(false);
307 xAxis.setDrawGridLines(false); 332 xAxis.setDrawGridLines(false);
308 xAxis.setTextColor(0xFF333333); 333 xAxis.setTextColor(0xFF333333);
309 xAxis.setTextSize(16); 334 xAxis.setTextSize(16);
310 xAxis.setYOffset(16); 335 xAxis.setYOffset(16);
311 if (type == 0) { 336 if (type == 0) {
312 xAxis.setAxisMinimum(0.5f); 337 xAxis.setAxisMinimum(0.5f);
313 xAxis.setAxisMaximum(5.5f); 338 xAxis.setAxisMaximum(5.5f);
314 xAxis.setLabelCount(11, true); 339 xAxis.setLabelCount(11, true);
315 xAxis.setValueFormatter(new ValueFormatter() { 340 xAxis.setValueFormatter(new ValueFormatter() {
316 @Override 341 @Override
317 public String getFormattedValue(float value) { 342 public String getFormattedValue(float value) {
318 if (value == 1) { 343 if (value == 1) {
319 return "周一"; 344 return "周一";
320 } else if (value == 2) { 345 } else if (value == 2) {
321 return "周二"; 346 return "周二";
322 } else if (value == 3) { 347 } else if (value == 3) {
323 return "周三"; 348 return "周三";
324 } else if (value == 4) { 349 } else if (value == 4) {
325 return "周四"; 350 return "周四";
326 } else if (value == 5) { 351 } else if (value == 5) {
327 return "周五"; 352 return "周五";
328 } 353 }
329 return ""; 354 return "";
330 } 355 }
331 }); 356 });
332 } else { 357 } else {
333 xAxis.setTextSize(13); 358 xAxis.setTextSize(13);
334 } 359 }
335 } 360 }
336 361
337 private String fromColor(String str, String color) { 362 private String fromColor(String str, String color) {
338 return String.format("<font color='%s'><b>%s</b></font>", color, str); 363 return String.format("<font color='%s'><b>%s</b></font>", color, str);
339 } 364 }
340 365
341 private void switchPage() { 366 private void switchPage() {
342 Intent intent = new Intent(getIntent()); 367 Intent intent = new Intent(getIntent());
343 intent.putExtra("a4", !a4); 368 intent.putExtra("a4", !a4);
344 startActivity(intent); 369 startActivity(intent);
345 finish(); 370 finish();
346 } 371 }
347 372
348 private Uri prepareShare() { 373 private Uri prepareShare() {
349 try { 374 try {
350 binding.toolbar.setVisibility(View.INVISIBLE); 375 binding.toolbar.setVisibility(View.INVISIBLE);
351 Bitmap bitmap = BitmapUtils.shotView(binding.root); 376 Bitmap bitmap = BitmapUtils.shotView(binding.root);
352 binding.toolbar.setVisibility(View.VISIBLE); 377 binding.toolbar.setVisibility(View.VISIBLE);
353 378
354 String fileName = student.stuName + "_周作业学习报告_" + System.currentTimeMillis(); 379 String fileName = student.stuName + "_周作业学习报告_" + System.currentTimeMillis();
355 return ContentUtil.saveBitmapToGallery(this, bitmap, fileName); 380 return ContentUtil.saveBitmapToGallery(this, bitmap, fileName);
356 } catch (Exception e) { 381 } catch (Exception e) {
357 e.printStackTrace(); 382 e.printStackTrace();
358 } 383 }
359 return null; 384 return null;
360 } 385 }
361 386
362 @Override 387 @Override
363 protected ActivityHuyouDetailBinding getViewBinding() { 388 protected ActivityHuyouDetailBinding getViewBinding() {
364 a4 = getIntent().getBooleanExtra("a4", false); 389 a4 = getIntent().getBooleanExtra("a4", false);
365 View view; 390 View view;
366 if (a4) view = getLayoutInflater().inflate(R.layout.activity_huyou_detail_a4, null); 391 if (a4) view = getLayoutInflater().inflate(R.layout.activity_huyou_detail_a4, null);
367 else view = getLayoutInflater().inflate(R.layout.activity_huyou_detail, null); 392 else view = getLayoutInflater().inflate(R.layout.activity_huyou_detail, null);
368 return ActivityHuyouDetailBinding.bind(view); 393 return ActivityHuyouDetailBinding.bind(view);
369 } 394 }
370 395
371 public static class Adapter extends BaseQuickAdapter<StDetail.Point, BaseViewHolder> { 396 public static class Adapter extends BaseQuickAdapter<StDetail.Point, BaseViewHolder> {
372 397
373 public Adapter(@Nullable List<StDetail.Point> data) { 398 public Adapter(@Nullable List<StDetail.Point> data) {
374 super(R.layout.item_huyou_point, data); 399 super(R.layout.item_huyou_point, data);
375 } 400 }
376 401
377 @Override 402 @Override
378 protected void convert(@NonNull BaseViewHolder holder, StDetail.Point point) { 403 protected void convert(@NonNull BaseViewHolder holder, StDetail.Point point) {
379 DecimalFormat format1 = new DecimalFormat("0%"); 404 DecimalFormat format1 = new DecimalFormat("0%");
380 DecimalFormat format2 = new DecimalFormat("0"); 405 DecimalFormat format2 = new DecimalFormat("0");
381 holder.setText(R.id.tvName, point.pointName); 406 holder.setText(R.id.tvName, point.pointName);
382 holder.setText(R.id.tvBefore, format1.format(point.beforeState)); 407 holder.setText(R.id.tvBefore, format1.format(point.beforeState));
383 holder.setText(R.id.tvAfter, format1.format(point.afterState)); 408 holder.setText(R.id.tvAfter, format1.format(point.afterState));
384 holder.setText(R.id.tvGap, format2.format(point.gap * 100)); 409 holder.setText(R.id.tvGap, format2.format(point.gap * 100));
385 holder.setGone(R.id.ivFlag, getData().indexOf(point) == 0); 410 holder.setGone(R.id.ivFlag, getData().indexOf(point) == 0);
386 holder.<TextView>getView(R.id.tvName).setTooltipText(point.pointName); 411 holder.<TextView>getView(R.id.tvName).setTooltipText(point.pointName);
387 412
388 TextView before = holder.getView(R.id.tvBeforeState); 413 TextView before = holder.getView(R.id.tvBeforeState);
389 TextView after = holder.getView(R.id.tvAfterState); 414 TextView after = holder.getView(R.id.tvAfterState);
390 415
391 if (point.beforeState >= 0.9) { 416 if (point.beforeState >= 0.9) {
392 before.setText("掌握优秀"); 417 before.setText("掌握优秀");
393 before.setBackgroundTintList(ColorStateList.valueOf(0xFF4FBB7A)); 418 before.setBackgroundTintList(ColorStateList.valueOf(0xFF4FBB7A));
394 } else if (point.beforeState >= 0.8) { 419 } else if (point.beforeState >= 0.8) {
395 before.setText("掌握良好"); 420 before.setText("掌握良好");
396 before.setBackgroundTintList(ColorStateList.valueOf(0xFF489AFA)); 421 before.setBackgroundTintList(ColorStateList.valueOf(0xFF489AFA));
397 } else if (point.beforeState >= 0.6) { 422 } else if (point.beforeState >= 0.6) {
398 before.setText("掌握一般"); 423 before.setText("掌握一般");
399 before.setBackgroundTintList(ColorStateList.valueOf(0xFFF58725)); 424 before.setBackgroundTintList(ColorStateList.valueOf(0xFFF58725));
400 } else { 425 } else {
401 before.setText("掌握薄弱"); 426 before.setText("掌握薄弱");
402 before.setBackgroundTintList(ColorStateList.valueOf(0xFFEA5127)); 427 before.setBackgroundTintList(ColorStateList.valueOf(0xFFEA5127));
403 } 428 }
404 if (point.afterState >= 0.9) { 429 if (point.afterState >= 0.9) {
405 after.setText("掌握优秀"); 430 after.setText("掌握优秀");
406 after.setBackgroundTintList(ColorStateList.valueOf(0xFF4FBB7A)); 431 after.setBackgroundTintList(ColorStateList.valueOf(0xFF4FBB7A));
407 } else if (point.afterState >= 0.8) { 432 } else if (point.afterState >= 0.8) {
408 after.setText("掌握良好"); 433 after.setText("掌握良好");
409 after.setBackgroundTintList(ColorStateList.valueOf(0xFF489AFA)); 434 after.setBackgroundTintList(ColorStateList.valueOf(0xFF489AFA));
410 } else if (point.afterState >= 0.6) { 435 } else if (point.afterState >= 0.6) {
411 after.setText("掌握一般"); 436 after.setText("掌握一般");
412 after.setBackgroundTintList(ColorStateList.valueOf(0xFFF58725)); 437 after.setBackgroundTintList(ColorStateList.valueOf(0xFFF58725));
413 } else { 438 } else {
414 after.setText("掌握薄弱"); 439 after.setText("掌握薄弱");
415 after.setBackgroundTintList(ColorStateList.valueOf(0xFFEA5127)); 440 after.setBackgroundTintList(ColorStateList.valueOf(0xFFEA5127));
416 } 441 }
417 442
418 holder.setText(R.id.tvHuyou, format1.format(point.correctness)); 443 holder.setText(R.id.tvHuyou, format1.format(point.correctness));
419 } 444 }
420 445
421 } 446 }
422 447
448 public static class WeekAdapter extends BaseQuickAdapter<StDetail.Point, BaseViewHolder> {
449 public WeekAdapter(@Nullable List<StDetail.Point> data) {
450 super(R.layout.item_huyou_week_point, data);
451 }
452
453 @Override
454 protected void convert(@NonNull BaseViewHolder holder, StDetail.Point point) {
455 holder.setText(R.id.tvName, point.pointName);
456
457 TextView after = holder.getView(R.id.tvState);
458 if (point.afterState >= 0.9) {
459 after.setText("掌握优秀");
460 after.setBackgroundTintList(ColorStateList.valueOf(0xFF4FBB7A));
461 } else if (point.afterState >= 0.8) {
462 after.setText("掌握良好");
463 after.setBackgroundTintList(ColorStateList.valueOf(0xFF489AFA));
app/src/main/res/drawable/png_icon_daily_blank.png

6.23 KB

app/src/main/res/layout/activity_huyou_detail.xml
1 <?xml version="1.0" encoding="utf-8"?> 1 <?xml version="1.0" encoding="utf-8"?>
2 <FrameLayout 2 <FrameLayout
3 xmlns:android="http://schemas.android.com/apk/res/android" 3 xmlns:android="http://schemas.android.com/apk/res/android"
4 xmlns:tools="http://schemas.android.com/tools" 4 xmlns:tools="http://schemas.android.com/tools"
5 xmlns:app="http://schemas.android.com/apk/res-auto" 5 xmlns:app="http://schemas.android.com/apk/res-auto"
6 android:layout_width="match_parent" 6 android:layout_width="match_parent"
7 android:layout_height="match_parent" 7 android:layout_height="match_parent"
8 tools:ignore="HardcodedText,ContentDescription,SmallSp,UseCompoundDrawables,RtlSymmetry"> 8 tools:ignore="HardcodedText,ContentDescription,SmallSp,UseCompoundDrawables,RtlSymmetry">
9 <androidx.core.widget.NestedScrollView 9 <androidx.core.widget.NestedScrollView
10 android:layout_gravity="center_horizontal" 10 android:layout_gravity="center_horizontal"
11 android:layout_width="wrap_content" 11 android:layout_width="wrap_content"
12 android:layout_height="match_parent"> 12 android:layout_height="match_parent">
13 13
14 <LinearLayout 14 <LinearLayout
15 android:id="@+id/root" 15 android:id="@+id/root"
16 android:orientation="vertical" 16 android:orientation="vertical"
17 android:background="#CEF1EC" 17 android:background="#CEF1EC"
18 android:paddingBottom="24dp"
18 android:layout_width="378dp" 19 android:layout_width="378dp"
19 android:layout_height="match_parent"> 20 android:layout_height="match_parent">
20 21
21 <FrameLayout 22 <FrameLayout
22 android:orientation="horizontal" 23 android:orientation="horizontal"
23 android:paddingHorizontal="16dp" 24 android:paddingHorizontal="16dp"
24 android:layout_marginTop="16dp" 25 android:layout_marginTop="16dp"
25 android:layout_width="match_parent" 26 android:layout_width="match_parent"
26 android:layout_height="wrap_content"> 27 android:layout_height="wrap_content">
27 <LinearLayout 28 <LinearLayout
28 android:id="@+id/toolbar" 29 android:id="@+id/toolbar"
29 android:layout_gravity="center_vertical" 30 android:layout_gravity="center_vertical"
30 android:layout_width="match_parent" 31 android:layout_width="match_parent"
31 android:layout_height="wrap_content"> 32 android:layout_height="wrap_content">
32 <TextView 33 <TextView
33 android:id="@+id/btnBack" 34 android:id="@+id/btnBack"
34 android:text="返回" 35 android:text="返回"
35 android:textSize="16sp" 36 android:textSize="16sp"
36 android:textColor="#333" 37 android:textColor="#333"
37 android:layout_width="wrap_content" 38 android:layout_width="wrap_content"
38 android:layout_height="wrap_content"/> 39 android:layout_height="wrap_content"/>
39 <Space style="@style/empty_space"/> 40 <Space style="@style/empty_space"/>
40 <TextView 41 <TextView
41 android:id="@+id/btnSwitch" 42 android:id="@+id/btnSwitch"
42 android:text="A4版" 43 android:text="A4版"
43 android:textSize="16sp" 44 android:textSize="16sp"
44 android:textColor="#333" 45 android:textColor="#333"
45 android:layout_width="wrap_content" 46 android:layout_width="wrap_content"
46 android:layout_height="wrap_content"/> 47 android:layout_height="wrap_content"/>
47 <TextView 48 <TextView
48 android:id="@+id/btnShare" 49 android:id="@+id/btnShare"
49 android:text="分享" 50 android:text="分享"
50 android:textSize="16sp" 51 android:textSize="16sp"
51 android:textColor="#333" 52 android:textColor="#333"
52 android:layout_marginStart="8dp" 53 android:layout_marginStart="8dp"
53 android:layout_width="wrap_content" 54 android:layout_width="wrap_content"
54 android:layout_height="wrap_content"/> 55 android:layout_height="wrap_content"/>
55 <TextView 56 <TextView
56 android:id="@+id/btnSame" 57 android:id="@+id/btnSame"
57 android:visibility="gone" 58 android:visibility="gone"
58 android:text="举一反三" 59 android:text="举一反三"
59 android:textSize="16sp" 60 android:textSize="16sp"
60 android:textColor="#333" 61 android:textColor="#333"
61 android:layout_gravity="center_vertical|end" 62 android:layout_gravity="center_vertical|end"
62 android:layout_width="wrap_content" 63 android:layout_width="wrap_content"
63 android:layout_height="wrap_content"/> 64 android:layout_height="wrap_content"/>
64 </LinearLayout> 65 </LinearLayout>
65 <TextView 66 <TextView
66 android:id="@+id/tvTitle" 67 android:id="@+id/tvTitle"
67 android:text="周作业学习报告" 68 android:text="周作业学习报告"
68 android:textSize="18sp" 69 android:textSize="18sp"
69 android:textColor="#333" 70 android:textColor="#333"
70 android:textStyle="bold" 71 android:textStyle="bold"
71 android:layout_gravity="center_horizontal" 72 android:layout_gravity="center_horizontal"
72 android:layout_width="wrap_content" 73 android:layout_width="wrap_content"
73 android:layout_height="wrap_content" /> 74 android:layout_height="wrap_content" />
74 </FrameLayout> 75 </FrameLayout>
75 76
76 77
77 <ImageView 78 <ImageView
78 android:src="@drawable/png_huyou_top_bg" 79 android:src="@drawable/png_huyou_top_bg"
79 android:elevation="1dp" 80 android:elevation="1dp"
80 android:layout_gravity="end" 81 android:layout_gravity="end"
81 android:layout_marginHorizontal="16dp" 82 android:layout_marginHorizontal="16dp"
82 android:layout_width="102dp" 83 android:layout_width="102dp"
83 android:layout_height="90dp"/> 84 android:layout_height="90dp"/>
84 85
85 <LinearLayout 86 <LinearLayout
86 android:orientation="vertical" 87 android:orientation="vertical"
87 android:background="@drawable/png_info_bg" 88 android:background="@drawable/png_info_bg"
88 android:padding="16dp" 89 android:padding="16dp"
89 android:layout_marginHorizontal="16dp" 90 android:layout_marginHorizontal="16dp"
90 android:layout_marginTop="-60dp" 91 android:layout_marginTop="-60dp"
91 android:layout_width="match_parent" 92 android:layout_width="match_parent"
92 android:layout_height="144dp"> 93 android:layout_height="144dp">
93 <LinearLayout 94 <LinearLayout
94 android:orientation="horizontal" 95 android:orientation="horizontal"
95 android:layout_width="match_parent" 96 android:layout_width="match_parent"
96 android:layout_height="wrap_content"> 97 android:layout_height="wrap_content">
97 <androidx.constraintlayout.utils.widget.ImageFilterView 98 <androidx.constraintlayout.utils.widget.ImageFilterView
98 android:id="@+id/ivAvatar" 99 android:id="@+id/ivAvatar"
99 tools:background="#2491FF" 100 tools:background="#2491FF"
100 app:round="40dp" 101 app:round="40dp"
101 android:layout_width="40dp" 102 android:layout_width="40dp"
102 android:layout_height="40dp"/> 103 android:layout_height="40dp"/>
103 <LinearLayout 104 <LinearLayout
104 android:orientation="vertical" 105 android:orientation="vertical"
105 android:layout_gravity="center_vertical" 106 android:layout_gravity="center_vertical"
106 android:layout_marginStart="10dp" 107 android:layout_marginStart="10dp"
107 android:layout_width="wrap_content" 108 android:layout_width="wrap_content"
108 android:layout_height="wrap_content"> 109 android:layout_height="wrap_content">
109 <TextView 110 <TextView
110 android:id="@+id/tvStuName" 111 android:id="@+id/tvStuName"
111 tools:text="杨同学 " 112 tools:text="杨同学 "
112 android:textSize="14sp" 113 android:textSize="14sp"
113 android:textColor="#333" 114 android:textColor="#333"
114 android:textStyle="bold" 115 android:textStyle="bold"
115 android:layout_width="wrap_content" 116 android:layout_width="wrap_content"
116 android:layout_height="wrap_content"/> 117 android:layout_height="wrap_content"/>
117 <TextView 118 <TextView
118 android:id="@+id/tvGrade" 119 android:id="@+id/tvGrade"
119 tools:text="七年级" 120 tools:text="七年级"
120 android:textSize="13sp" 121 android:textSize="13sp"
121 android:textColor="#666" 122 android:textColor="#666"
122 android:textStyle="bold" 123 android:textStyle="bold"
123 android:layout_width="wrap_content" 124 android:layout_width="wrap_content"
124 android:layout_height="wrap_content"/> 125 android:layout_height="wrap_content"/>
125 </LinearLayout> 126 </LinearLayout>
126 </LinearLayout> 127 </LinearLayout>
127 <LinearLayout 128 <LinearLayout
128 android:orientation="horizontal" 129 android:orientation="horizontal"
129 android:background="@drawable/shape_radius_10" 130 android:background="@drawable/shape_radius_10"
130 android:backgroundTint="#F4FAFF" 131 android:backgroundTint="#F4FAFF"
131 android:layout_marginTop="12dp" 132 android:layout_marginTop="12dp"
132 android:layout_width="match_parent" 133 android:layout_width="match_parent"
133 android:layout_height="60dp"> 134 android:layout_height="60dp">
134 <LinearLayout 135 <LinearLayout
135 android:orientation="vertical" 136 android:orientation="vertical"
136 android:gravity="center" 137 android:gravity="center"
137 android:layout_width="0dp" 138 android:layout_width="0dp"
138 android:layout_height="match_parent" 139 android:layout_height="match_parent"
139 android:layout_weight="1"> 140 android:layout_weight="1">
140 <LinearLayout 141 <LinearLayout
141 android:paddingEnd="20dp" 142 android:paddingEnd="20dp"
142 android:gravity="center_vertical" 143 android:gravity="center_vertical"
143 android:layout_width="wrap_content" 144 android:layout_width="wrap_content"
144 android:layout_height="wrap_content"> 145 android:layout_height="wrap_content">
145 <ImageView 146 <ImageView
146 android:src="@drawable/png_iv_subject" 147 android:src="@drawable/png_iv_subject"
147 android:layout_marginEnd="5dp" 148 android:layout_marginEnd="5dp"
148 android:layout_width="16dp" 149 android:layout_width="16dp"
149 android:layout_height="14dp"/> 150 android:layout_height="14dp"/>
150 <TextView 151 <TextView
151 android:text="学科" 152 android:text="学科"
152 android:textSize="12sp" 153 android:textSize="12sp"
153 android:textColor="#333" 154 android:textColor="#333"
154 android:textStyle="bold" 155 android:textStyle="bold"
155 android:layout_width="wrap_content" 156 android:layout_width="wrap_content"
156 android:layout_height="wrap_content"/> 157 android:layout_height="wrap_content"/>
157 </LinearLayout> 158 </LinearLayout>
158 <TextView 159 <TextView
159 android:id="@+id/tvSubject" 160 android:id="@+id/tvSubject"
160 tools:text="数学" 161 tools:text="数学"
161 android:textSize="12sp" 162 android:textSize="12sp"
162 android:textColor="#3BC3B6" 163 android:textColor="#3BC3B6"
163 android:textStyle="bold" 164 android:textStyle="bold"
164 android:layout_marginTop="8dp" 165 android:layout_marginTop="8dp"
165 android:layout_width="wrap_content" 166 android:layout_width="wrap_content"
166 android:layout_height="wrap_content"/> 167 android:layout_height="wrap_content"/>
167 </LinearLayout> 168 </LinearLayout>
168 <LinearLayout 169 <LinearLayout
169 android:orientation="vertical" 170 android:orientation="vertical"
170 android:gravity="center" 171 android:gravity="center"
171 android:layout_width="0dp" 172 android:layout_width="0dp"
172 android:layout_height="match_parent" 173 android:layout_height="match_parent"
173 android:layout_weight="1"> 174 android:layout_weight="1">
174 <LinearLayout 175 <LinearLayout
175 android:paddingEnd="20dp" 176 android:paddingEnd="20dp"
176 android:gravity="center_vertical" 177 android:gravity="center_vertical"
177 android:layout_width="wrap_content" 178 android:layout_width="wrap_content"
178 android:layout_height="wrap_content"> 179 android:layout_height="wrap_content">
179 <ImageView 180 <ImageView
180 android:src="@drawable/png_ic_during" 181 android:src="@drawable/png_ic_during"
181 android:layout_marginEnd="5dp" 182 android:layout_marginEnd="5dp"
182 android:layout_width="14dp" 183 android:layout_width="14dp"
183 android:layout_height="13dp"/> 184 android:layout_height="13dp"/>
184 <TextView 185 <TextView
185 android:text="周期" 186 android:text="周期"
186 android:textSize="12sp" 187 android:textSize="12sp"
187 android:textColor="#333" 188 android:textColor="#333"
188 android:textStyle="bold" 189 android:textStyle="bold"
189 android:layout_width="wrap_content" 190 android:layout_width="wrap_content"
190 android:layout_height="wrap_content"/> 191 android:layout_height="wrap_content"/>
191 </LinearLayout> 192 </LinearLayout>
192 <TextView 193 <TextView
193 android:id="@+id/tvDate" 194 android:id="@+id/tvDate"
194 tools:text="2024.09.01-2024.09.30" 195 tools:text="2024.09.01-2024.09.30"
195 android:textSize="12sp" 196 android:textSize="12sp"
196 android:textColor="#3BC3B6" 197 android:textColor="#3BC3B6"
197 android:textStyle="bold" 198 android:textStyle="bold"
198 android:layout_marginTop="8dp" 199 android:layout_marginTop="8dp"
199 android:layout_width="wrap_content" 200 android:layout_width="wrap_content"
200 android:layout_height="wrap_content"/> 201 android:layout_height="wrap_content"/>
201 </LinearLayout> 202 </LinearLayout>
202 </LinearLayout> 203 </LinearLayout>
203 </LinearLayout> 204 </LinearLayout>
204 205
205 <LinearLayout 206 <LinearLayout
207 android:id="@+id/viewPointTotal"
206 android:orientation="vertical" 208 android:orientation="vertical"
207 android:background="@drawable/shape_radius_10" 209 android:background="@drawable/shape_radius_10"
208 android:backgroundTint="@color/white" 210 android:backgroundTint="@color/white"
209 android:padding="16dp" 211 android:padding="16dp"
210 android:layout_marginHorizontal="16dp" 212 android:layout_marginHorizontal="16dp"
211 android:layout_marginTop="12dp" 213 android:layout_marginTop="12dp"
212 android:layout_width="match_parent" 214 android:layout_width="match_parent"
213 android:layout_height="wrap_content"> 215 android:layout_height="wrap_content">
214 <TextView 216 <TextView
215 android:text="薄弱知识点总评" 217 android:text="知识点总评"
216 android:textSize="16sp" 218 android:textSize="16sp"
217 android:textColor="#333333" 219 android:textColor="#333333"
218 android:textStyle="bold" 220 android:textStyle="bold"
219 android:background="@drawable/bg_hy_weak_title" 221 android:background="@drawable/bg_hy_weak_title"
220 android:paddingStart="20dp" 222 android:paddingStart="20dp"
221 android:paddingEnd="4dp" 223 android:paddingEnd="4dp"
222 android:layout_gravity="center_horizontal" 224 android:layout_gravity="center_horizontal"
223 android:layout_width="wrap_content" 225 android:layout_width="wrap_content"
224 android:layout_height="wrap_content"/> 226 android:layout_height="wrap_content"/>
225 <LinearLayout 227 <LinearLayout
226 android:orientation="horizontal" 228 android:orientation="horizontal"
227 android:layout_marginTop="28dp" 229 android:layout_marginTop="28dp"
228 android:layout_width="match_parent" 230 android:layout_width="match_parent"
229 android:layout_height="wrap_content"> 231 android:layout_height="wrap_content">
230 <LinearLayout 232 <LinearLayout
231 android:orientation="vertical" 233 android:orientation="vertical"
232 android:layout_width="0dp" 234 android:layout_width="0dp"
233 android:layout_height="wrap_content" 235 android:layout_height="wrap_content"
234 android:layout_weight="1"> 236 android:layout_weight="1">
235 <TextView 237 <TextView
236 android:text="学习前" 238 android:text="学习前"
237 android:textSize="12sp" 239 android:textSize="12sp"
238 android:textColor="#333" 240 android:textColor="#333"
239 android:layout_gravity="center_horizontal" 241 android:layout_gravity="center_horizontal"
240 android:layout_width="wrap_content" 242 android:layout_width="wrap_content"
241 android:layout_height="wrap_content"/> 243 android:layout_height="wrap_content"/>
242 <FrameLayout 244 <FrameLayout
243 android:background="@drawable/png_huyou_progress_bg" 245 android:background="@drawable/png_huyou_progress_bg"
244 android:padding="8dp" 246 android:padding="8dp"
245 android:layout_gravity="center_horizontal" 247 android:layout_gravity="center_horizontal"
246 android:layout_marginTop="16dp" 248 android:layout_marginTop="16dp"
247 android:layout_width="126dp" 249 android:layout_width="126dp"
248 android:layout_height="126dp"> 250 android:layout_height="126dp">
249 <com.littlejie.circleprogress.CircleProgress 251 <com.littlejie.circleprogress.CircleProgress
250 android:id="@+id/cpBefore" 252 android:id="@+id/cpBefore"
251 app:arcWidth="15dp" 253 app:arcWidth="15dp"
252 app:bgArcWidth="15dp" 254 app:bgArcWidth="15dp"
253 app:arcColors="#F36A27" 255 app:arcColors="#F36A27"
254 app:bgArcColor="#FFF1EA" 256 app:bgArcColor="#FFF1EA"
255 app:startAngle="-90" 257 app:startAngle="-90"
256 app:sweepAngle="360" 258 app:sweepAngle="360"
257 app:maxValue="100" 259 app:maxValue="100"
258 app:value="0" 260 app:value="0"
259 app:hintColor="@color/transparent" 261 app:hintColor="@color/transparent"
260 app:unitColor="@color/transparent" 262 app:unitColor="@color/transparent"
261 app:valueColor="@color/transparent" 263 app:valueColor="@color/transparent"
262 android:layout_width="match_parent" 264 android:layout_width="match_parent"
263 android:layout_height="match_parent"/> 265 android:layout_height="match_parent"/>
264 <LinearLayout 266 <LinearLayout
265 android:orientation="vertical" 267 android:orientation="vertical"
266 android:gravity="center_horizontal" 268 android:gravity="center_horizontal"
267 android:layout_gravity="center" 269 android:layout_gravity="center"
268 android:layout_width="wrap_content" 270 android:layout_width="wrap_content"
269 android:layout_height="wrap_content"> 271 android:layout_height="wrap_content">
270 <LinearLayout 272 <LinearLayout
271 android:layout_width="wrap_content" 273 android:layout_width="wrap_content"
272 android:layout_height="wrap_content"> 274 android:layout_height="wrap_content">
273 <TextView 275 <TextView
274 android:id="@+id/pgBefore" 276 android:id="@+id/pgBefore"
275 tools:text="88" 277 tools:text="88"
276 android:textSize="25sp" 278 android:textSize="25sp"
277 android:textColor="#EA5127" 279 android:textColor="#EA5127"
278 android:textStyle="bold" 280 android:textStyle="bold"
279 android:layout_width="wrap_content" 281 android:layout_width="wrap_content"
280 android:layout_height="wrap_content"/> 282 android:layout_height="wrap_content"/>
281 <TextView 283 <TextView
282 android:text="%" 284 android:text="%"
283 android:textSize="12sp" 285 android:textSize="12sp"
284 android:textColor="#EA5127" 286 android:textColor="#EA5127"
285 android:layout_width="wrap_content" 287 android:layout_width="wrap_content"
286 android:layout_height="wrap_content"/> 288 android:layout_height="wrap_content"/>
287 </LinearLayout> 289 </LinearLayout>
288 <TextView 290 <TextView
289 android:text="整体掌握程度" 291 android:text="整体掌握程度"
290 android:textSize="10sp" 292 android:textSize="10sp"
291 android:textColor="#333" 293 android:textColor="#333"
292 android:textStyle="bold" 294 android:textStyle="bold"
293 android:layout_marginTop="-2dp" 295 android:layout_marginTop="-2dp"
294 android:layout_width="wrap_content" 296 android:layout_width="wrap_content"
295 android:layout_height="wrap_content"/> 297 android:layout_height="wrap_content"/>
296 </LinearLayout> 298 </LinearLayout>
297 </FrameLayout> 299 </FrameLayout>
298 </LinearLayout> 300 </LinearLayout>
299 <LinearLayout 301 <LinearLayout
300 android:orientation="vertical" 302 android:orientation="vertical"
301 android:layout_width="0dp" 303 android:layout_width="0dp"
302 android:layout_height="wrap_content" 304 android:layout_height="wrap_content"
303 android:layout_weight="1"> 305 android:layout_weight="1">
304 <TextView 306 <TextView
305 android:text="学习后" 307 android:text="学习后"
306 android:textSize="12sp" 308 android:textSize="12sp"
307 android:textColor="#333" 309 android:textColor="#333"
308 android:layout_gravity="center_horizontal" 310 android:layout_gravity="center_horizontal"
309 android:layout_width="wrap_content" 311 android:layout_width="wrap_content"
310 android:layout_height="wrap_content"/> 312 android:layout_height="wrap_content"/>
311 <FrameLayout 313 <FrameLayout
312 android:background="@drawable/png_huyou_progress_bg" 314 android:background="@drawable/png_huyou_progress_bg"
313 android:padding="8dp" 315 android:padding="8dp"
314 android:layout_gravity="center_horizontal" 316 android:layout_gravity="center_horizontal"
315 android:layout_marginTop="16dp" 317 android:layout_marginTop="16dp"
316 android:layout_width="126dp" 318 android:layout_width="126dp"
317 android:layout_height="126dp"> 319 android:layout_height="126dp">
318 <com.littlejie.circleprogress.CircleProgress 320 <com.littlejie.circleprogress.CircleProgress
319 android:id="@+id/cpAfter" 321 android:id="@+id/cpAfter"
320 app:arcWidth="15dp" 322 app:arcWidth="15dp"
321 app:bgArcWidth="15dp" 323 app:bgArcWidth="15dp"
322 app:arcColors="#3BC3B6" 324 app:arcColors="#3BC3B6"
323 app:bgArcColor="#C2FCF6" 325 app:bgArcColor="#C2FCF6"
324 app:startAngle="-90" 326 app:startAngle="-90"
325 app:sweepAngle="360" 327 app:sweepAngle="360"
326 app:maxValue="100" 328 app:maxValue="100"
327 app:value="0" 329 app:value="0"
328 app:hintColor="@color/transparent" 330 app:hintColor="@color/transparent"
329 app:unitColor="@color/transparent" 331 app:unitColor="@color/transparent"
330 app:valueColor="@color/transparent" 332 app:valueColor="@color/transparent"
331 android:layout_width="match_parent" 333 android:layout_width="match_parent"
332 android:layout_height="match_parent"/> 334 android:layout_height="match_parent"/>
333 <LinearLayout 335 <LinearLayout
334 android:orientation="vertical" 336 android:orientation="vertical"
335 android:gravity="center_horizontal" 337 android:gravity="center_horizontal"
336 android:layout_gravity="center" 338 android:layout_gravity="center"
337 android:layout_width="wrap_content" 339 android:layout_width="wrap_content"
338 android:layout_height="wrap_content"> 340 android:layout_height="wrap_content">
339 <LinearLayout 341 <LinearLayout
340 android:layout_width="wrap_content" 342 android:layout_width="wrap_content"
341 android:layout_height="wrap_content"> 343 android:layout_height="wrap_content">
342 <TextView 344 <TextView
343 android:id="@+id/pgAfter" 345 android:id="@+id/pgAfter"
344 tools:text="88" 346 tools:text="88"
345 android:textSize="25sp" 347 android:textSize="25sp"
346 android:textColor="#3BC3B6" 348 android:textColor="#3BC3B6"
347 android:textStyle="bold" 349 android:textStyle="bold"
348 android:layout_width="wrap_content" 350 android:layout_width="wrap_content"
349 android:layout_height="wrap_content"/> 351 android:layout_height="wrap_content"/>
350 <TextView 352 <TextView
351 android:text="%" 353 android:text="%"
352 android:textSize="12sp" 354 android:textSize="12sp"
353 android:textColor="#3BC3B6" 355 android:textColor="#3BC3B6"
354 android:layout_width="wrap_content" 356 android:layout_width="wrap_content"
355 android:layout_height="wrap_content"/> 357 android:layout_height="wrap_content"/>
356 </LinearLayout> 358 </LinearLayout>
357 <TextView 359 <TextView
358 android:text="整体掌握程度" 360 android:text="整体掌握程度"
359 android:textSize="10sp" 361 android:textSize="10sp"
360 android:textColor="#333" 362 android:textColor="#333"
361 android:textStyle="bold" 363 android:textStyle="bold"
362 android:layout_marginTop="-2dp" 364 android:layout_marginTop="-2dp"
363 android:layout_width="wrap_content" 365 android:layout_width="wrap_content"
364 android:layout_height="wrap_content"/> 366 android:layout_height="wrap_content"/>
365 </LinearLayout> 367 </LinearLayout>
366 </FrameLayout> 368 </FrameLayout>
367 </LinearLayout> 369 </LinearLayout>
368 </LinearLayout> 370 </LinearLayout>
369 371
370 <FrameLayout 372 <FrameLayout
371 android:layout_marginTop="20dp" 373 android:layout_marginTop="20dp"
372 android:layout_width="match_parent" 374 android:layout_width="match_parent"
373 android:layout_height="wrap_content"> 375 android:layout_height="wrap_content">
374 <ImageView 376 <ImageView
375 android:src="@drawable/png_hy_weak_comment" 377 android:src="@drawable/png_hy_weak_comment"
376 android:layout_width="16dp" 378 android:layout_width="16dp"
377 android:layout_height="18dp"/> 379 android:layout_height="18dp"/>
378 <TextView 380 <TextView
379 android:id="@+id/tvWeakRate" 381 android:id="@+id/tvWeakRate"
380 android:textSize="16sp" 382 android:textSize="16sp"
381 android:textColor="#333" 383 android:textColor="#333"
382 android:lineSpacingMultiplier="1.3" 384 android:lineSpacingMultiplier="1.3"
383 android:layout_width="wrap_content" 385 android:layout_width="wrap_content"
384 android:layout_height="wrap_content"/> 386 android:layout_height="wrap_content"/>
385 </FrameLayout> 387 </FrameLayout>
386 </LinearLayout> 388 </LinearLayout>
387 389
388 <LinearLayout 390 <LinearLayout
389 android:orientation="vertical" 391 android:orientation="vertical"
390 android:background="@drawable/shape_radius_10" 392 android:background="@drawable/shape_radius_10"
391 android:backgroundTint="@color/white" 393 android:backgroundTint="@color/white"
392 android:padding="16dp" 394 android:padding="16dp"
393 android:layout_marginHorizontal="16dp" 395 android:layout_marginHorizontal="16dp"
394 android:layout_marginTop="12dp" 396 android:layout_marginTop="12dp"
395 android:layout_width="match_parent" 397 android:layout_width="match_parent"
396 android:layout_height="wrap_content"> 398 android:layout_height="wrap_content">
397 399
398 <TextView 400 <TextView
399 android:text="作业概括" 401 android:text="作业概括"
400 android:textSize="16sp" 402 android:textSize="16sp"
401 android:textColor="#333333" 403 android:textColor="#333333"
402 android:textStyle="bold" 404 android:textStyle="bold"
403 android:background="@drawable/bg_hy_summary_title" 405 android:background="@drawable/bg_hy_summary_title"
404 android:paddingStart="28dp" 406 android:paddingStart="28dp"
405 android:paddingEnd="4dp" 407 android:paddingEnd="4dp"
406 android:layout_gravity="center_horizontal" 408 android:layout_gravity="center_horizontal"
407 android:layout_width="wrap_content" 409 android:layout_width="wrap_content"
408 android:layout_height="wrap_content"/> 410 android:layout_height="wrap_content"/>
409 <LinearLayout 411 <LinearLayout
410 android:orientation="horizontal" 412 android:orientation="horizontal"
411 android:background="@drawable/shape_radius_5" 413 android:background="@drawable/shape_radius_5"
412 android:backgroundTint="#F4FAFF" 414 android:backgroundTint="#F4FAFF"
413 android:layout_width="match_parent" 415 android:layout_width="match_parent"
414 android:layout_height="80dp" 416 android:layout_height="80dp"
415 android:layout_marginTop="16dp"> 417 android:layout_marginTop="16dp">
416 <LinearLayout 418 <LinearLayout
417 android:orientation="vertical" 419 android:orientation="vertical"
418 android:gravity="center" 420 android:gravity="center"
419 android:layout_width="0dp" 421 android:layout_width="0dp"
420 android:layout_height="match_parent" 422 android:layout_height="match_parent"
421 android:layout_weight="1"> 423 android:layout_weight="1.1">
422 <LinearLayout 424 <LinearLayout
423 android:orientation="horizontal" 425 android:orientation="horizontal"
424 android:gravity="center_vertical" 426 android:gravity="center_vertical"
425 android:layout_width="wrap_content" 427 android:layout_width="wrap_content"
426 android:layout_height="wrap_content"> 428 android:layout_height="wrap_content">
427 <ImageView 429 <ImageView
428 android:src="@drawable/png_icon_statistical_accuracy" 430 android:src="@drawable/png_icon_statistical_accuracy"
429 android:layout_width="12dp" 431 android:layout_width="12dp"
430 android:layout_height="13dp"/> 432 android:layout_height="13dp"/>
431 <TextView 433 <TextView
432 android:text="作业正确率" 434 android:text="作业正确率"
433 android:textSize="11sp" 435 android:textSize="11sp"
434 android:textColor="#333" 436 android:textColor="#333"
435 android:textStyle="bold" 437 android:textStyle="bold"
436 android:layout_marginStart="5dp" 438 android:layout_marginStart="4dp"
437 android:layout_width="wrap_content" 439 android:layout_width="wrap_content"
438 android:layout_height="wrap_content"/> 440 android:layout_height="wrap_content"/>
439 </LinearLayout> 441 </LinearLayout>
440 <LinearLayout 442 <LinearLayout
441 android:orientation="horizontal" 443 android:orientation="horizontal"
442 android:layout_marginTop="8dp" 444 android:layout_marginTop="8dp"
443 android:layout_width="wrap_content" 445 android:layout_width="wrap_content"
444 android:layout_height="wrap_content"> 446 android:layout_height="wrap_content">
445 <TextView 447 <TextView
446 android:id="@+id/tvTotalRate" 448 android:id="@+id/tvTotalRate"
447 tools:text="88" 449 tools:text="88"
448 android:textSize="14sp" 450 android:textSize="14sp"
449 android:textColor="#3BC3B6" 451 android:textColor="#3BC3B6"
450 android:textStyle="bold" 452 android:textStyle="bold"
451 android:layout_width="wrap_content" 453 android:layout_width="wrap_content"
452 android:layout_height="wrap_content"/> 454 android:layout_height="wrap_content"/>
453 <TextView 455 <TextView
454 android:text="%" 456 android:text="%"
455 android:textSize="9sp" 457 android:textSize="9sp"
456 android:textColor="#3BC3B6" 458 android:textColor="#3BC3B6"
457 android:textStyle="bold" 459 android:textStyle="bold"
458 android:layout_width="wrap_content" 460 android:layout_width="wrap_content"
459 android:layout_height="wrap_content"/> 461 android:layout_height="wrap_content"/>
460 </LinearLayout> 462 </LinearLayout>
461 </LinearLayout> 463 </LinearLayout>
462 <View
463 android:background="#9ECAFC"
464 android:layout_marginVertical="8dp"
465 android:layout_width="1dp"
466 android:layout_height="match_parent"/>
467 <LinearLayout 464 <LinearLayout
468 android:orientation="vertical" 465 android:orientation="vertical"
469 android:gravity="center" 466 android:gravity="center"
470 android:layout_width="0dp" 467 android:layout_width="0dp"
471 android:layout_height="match_parent" 468 android:layout_height="match_parent"
472 android:layout_weight="1"> 469 android:layout_weight="1">
473 <LinearLayout 470 <LinearLayout
474 android:orientation="horizontal" 471 android:orientation="horizontal"
475 android:gravity="center_vertical" 472 android:gravity="center_vertical"
476 android:layout_width="wrap_content" 473 android:layout_width="wrap_content"
477 android:layout_height="wrap_content"> 474 android:layout_height="wrap_content">
478 <ImageView 475 <ImageView
479 android:src="@drawable/png_icon_statistical_accuracy" 476 android:src="@drawable/png_icon_statistical_correct"
480 android:layout_width="12dp" 477 android:layout_width="12dp"
481 android:layout_height="13dp"/> 478 android:layout_height="13dp"/>
482 <TextView 479 <TextView
483 android:text="答对题数" 480 android:text="答对题数"
484 android:textSize="11sp" 481 android:textSize="11sp"
485 android:textColor="#333" 482 android:textColor="#333"
486 android:textStyle="bold" 483 android:textStyle="bold"
487 android:layout_marginStart="5dp" 484 android:layout_marginStart="4dp"
488 android:layout_width="wrap_content" 485 android:layout_width="wrap_content"
489 android:layout_height="wrap_content"/> 486 android:layout_height="wrap_content"/>
490 </LinearLayout> 487 </LinearLayout>
491 <LinearLayout 488 <LinearLayout
492 android:orientation="horizontal" 489 android:orientation="horizontal"
493 android:layout_marginTop="8dp" 490 android:layout_marginTop="8dp"
494 android:layout_width="wrap_content" 491 android:layout_width="wrap_content"
495 android:layout_height="wrap_content"> 492 android:layout_height="wrap_content">
496 <TextView 493 <TextView
497 android:id="@+id/tvTotalCorrect" 494 android:id="@+id/tvTotalCorrect"
498 tools:text="88" 495 tools:text="88"
499 android:textSize="14sp" 496 android:textSize="14sp"
500 android:textColor="#3BC3B6" 497 android:textColor="#3BC3B6"
501 android:textStyle="bold" 498 android:textStyle="bold"
502 android:layout_width="wrap_content" 499 android:layout_width="wrap_content"
503 android:layout_height="wrap_content"/> 500 android:layout_height="wrap_content"/>
504 <TextView 501 <TextView
505 android:text="道" 502 android:text="道"
506 android:textSize="9sp" 503 android:textSize="9sp"
507 android:textColor="#3BC3B6" 504 android:textColor="#3BC3B6"
508 android:textStyle="bold" 505 android:textStyle="bold"
509 android:layout_width="wrap_content" 506 android:layout_width="wrap_content"
510 android:layout_height="wrap_content"/> 507 android:layout_height="wrap_content"/>
511 </LinearLayout> 508 </LinearLayout>
512 </LinearLayout> 509 </LinearLayout>
513 <View
514 android:background="#9ECAFC"
515 android:layout_marginVertical="8dp"
516 android:layout_width="1dp"
517 android:layout_height="match_parent"/>
518 <LinearLayout 510 <LinearLayout
519 android:orientation="vertical" 511 android:orientation="vertical"
520 android:gravity="center" 512 android:gravity="center"
521 android:layout_width="0dp" 513 android:layout_width="0dp"
522 android:layout_height="match_parent" 514 android:layout_height="match_parent"
523 android:layout_weight="1"> 515 android:layout_weight="1">
524 <LinearLayout 516 <LinearLayout
525 android:orientation="horizontal" 517 android:orientation="horizontal"
526 android:gravity="center_vertical" 518 android:gravity="center_vertical"
527 android:layout_width="wrap_content" 519 android:layout_width="wrap_content"
528 android:layout_height="wrap_content"> 520 android:layout_height="wrap_content">
529 <ImageView 521 <ImageView
530 android:src="@drawable/png_icon_statistical_accuracy" 522 android:src="@drawable/png_icon_statistical_error"
531 android:layout_width="12dp" 523 android:layout_width="12dp"
532 android:layout_height="13dp"/> 524 android:layout_height="13dp"/>
533 <TextView 525 <TextView
534 android:text="答错题数" 526 android:text="答错题数"
535 android:textSize="11sp" 527 android:textSize="11sp"
536 android:textColor="#333" 528 android:textColor="#333"
537 android:textStyle="bold" 529 android:textStyle="bold"
538 android:layout_marginStart="5dp" 530 android:layout_marginStart="4dp"
539 android:layout_width="wrap_content" 531 android:layout_width="wrap_content"
540 android:layout_height="wrap_content"/> 532 android:layout_height="wrap_content"/>
541 </LinearLayout> 533 </LinearLayout>
542 <LinearLayout 534 <LinearLayout
543 android:orientation="horizontal" 535 android:orientation="horizontal"
544 android:layout_marginTop="8dp" 536 android:layout_marginTop="8dp"
545 android:layout_width="wrap_content" 537 android:layout_width="wrap_content"
546 android:layout_height="wrap_content"> 538 android:layout_height="wrap_content">
547 <TextView 539 <TextView
548 android:id="@+id/tvTotalError" 540 android:id="@+id/tvTotalError"
549 tools:text="88" 541 tools:text="88"
550 android:textSize="14sp" 542 android:textSize="14sp"
551 android:textColor="#3BC3B6" 543 android:textColor="#3BC3B6"
552 android:textStyle="bold" 544 android:textStyle="bold"
553 android:layout_width="wrap_content" 545 android:layout_width="wrap_content"
554 android:layout_height="wrap_content"/> 546 android:layout_height="wrap_content"/>
555 <TextView 547 <TextView
556 android:text="道" 548 android:text="道"
557 android:textSize="9sp" 549 android:textSize="9sp"
558 android:textColor="#3BC3B6" 550 android:textColor="#3BC3B6"
559 android:textStyle="bold" 551 android:textStyle="bold"
560 android:layout_width="wrap_content" 552 android:layout_width="wrap_content"
561 android:layout_height="wrap_content"/> 553 android:layout_height="wrap_content"/>
562 </LinearLayout> 554 </LinearLayout>
563 </LinearLayout> 555 </LinearLayout>
556 <LinearLayout
557 android:orientation="vertical"
558 android:gravity="center"
559 android:layout_width="0dp"
560 android:layout_height="match_parent"
561 android:layout_weight="1">
562 <LinearLayout
563 android:orientation="horizontal"
564 android:gravity="center_vertical"
565 android:layout_width="wrap_content"
566 android:layout_height="wrap_content">
567 <ImageView
568 android:src="@drawable/png_icon_daily_blank"
569 android:layout_width="12dp"
570 android:layout_height="13dp"/>
571 <TextView
572 android:text="未做题数"
573 android:textSize="11sp"
574 android:textColor="#333"
575 android:textStyle="bold"
576 android:layout_marginStart="4dp"
577 android:layout_width="wrap_content"
578 android:layout_height="wrap_content"/>
579 </LinearLayout>
580 <LinearLayout
581 android:orientation="horizontal"
582 android:layout_marginTop="8dp"
583 android:layout_width="wrap_content"
584 android:layout_height="wrap_content">
585 <TextView
586 android:id="@+id/tvTotalBlank"
587 tools:text="88"
588 android:textSize="14sp"
589 android:textColor="#3BC3B6"
590 android:textStyle="bold"
591 android:layout_width="wrap_content"
592 android:layout_height="wrap_content"/>
593 <TextView
594 android:text="道"
595 android:textSize="9sp"
596 android:textColor="#3BC3B6"
597 android:textStyle="bold"
598 android:layout_width="wrap_content"
599 android:layout_height="wrap_content"/>
600 </LinearLayout>
601 </LinearLayout>
564 </LinearLayout> 602 </LinearLayout>
565 603
566 <TextView 604 <TextView
567 android:text="每日作业正确率" 605 android:text="每日作业正确率"
568 android:textSize="13sp" 606 android:textSize="13sp"
569 android:textColor="#333" 607 android:textColor="#333"
570 android:textStyle="bold" 608 android:textStyle="bold"
571 android:layout_gravity="center_horizontal" 609 android:layout_gravity="center_horizontal"
572 android:layout_marginTop="16dp" 610 android:layout_marginTop="16dp"
573 android:layout_width="wrap_content" 611 android:layout_width="wrap_content"
574 android:layout_height="wrap_content"/> 612 android:layout_height="wrap_content"/>
575 <com.github.mikephil.charting.charts.LineChart 613 <com.github.mikephil.charting.charts.LineChart
576 android:id="@+id/lineChart" 614 android:id="@+id/lineChart"
577 android:layout_marginStart="-8dp" 615 android:layout_marginStart="-8dp"
578 android:layout_width="match_parent" 616 android:layout_width="match_parent"
579 android:layout_height="220dp"/> 617 android:layout_height="220dp"/>
580 <FrameLayout 618 <FrameLayout
581 android:layout_marginVertical="20dp" 619 android:layout_marginVertical="20dp"
582 android:layout_width="match_parent" 620 android:layout_width="match_parent"
583 android:layout_height="wrap_content"> 621 android:layout_height="wrap_content">
584 <ImageView 622 <ImageView
585 android:src="@drawable/png_hy_summary_comment" 623 android:src="@drawable/png_hy_summary_comment"
586 android:layout_width="22dp" 624 android:layout_width="22dp"
587 android:layout_height="22dp"/> 625 android:layout_height="22dp"/>
588 <TextView 626 <TextView
589 android:id="@+id/tvRating" 627 android:id="@+id/tvRating"
590 android:textSize="16sp" 628 android:textSize="16sp"
591 android:textColor="#333" 629 android:textColor="#333"
592 android:lineSpacingMultiplier="1.3" 630 android:lineSpacingMultiplier="1.3"
593 android:layout_marginTop="2dp" 631 android:layout_marginTop="2dp"
594 android:layout_width="match_parent" 632 android:layout_width="match_parent"
595 android:layout_height="wrap_content"/> 633 android:layout_height="wrap_content"/>
596 </FrameLayout> 634 </FrameLayout>
597 </LinearLayout> 635 </LinearLayout>
598 636
599 <Space 637 <Space
600 android:id="@+id/splitLine" 638 android:id="@+id/splitLine"
601 android:layout_marginTop="6dp" 639 android:layout_marginTop="6dp"
602 android:layout_width="match_parent" 640 android:layout_width="match_parent"
603 android:layout_height="0dp"/> 641 android:layout_height="0dp"/>
604 642
605 <LinearLayout 643 <LinearLayout
606 android:orientation="vertical" 644 android:orientation="vertical"
607 android:background="@drawable/shape_radius_10" 645 android:background="@drawable/shape_radius_10"
608 android:backgroundTint="@color/white" 646 android:backgroundTint="@color/white"
609 android:padding="16dp" 647 android:padding="16dp"
610 android:layout_marginHorizontal="16dp" 648 android:layout_marginHorizontal="16dp"
611 android:layout_marginTop="6dp" 649 android:layout_marginTop="6dp"
612 android:layout_width="match_parent" 650 android:layout_width="match_parent"
613 android:layout_height="wrap_content"> 651 android:layout_height="wrap_content">
614 <TextView 652 <TextView
615 android:text="知识点掌握情况" 653 android:text="知识点掌握情况"
616 android:textSize="16sp" 654 android:textSize="16sp"
617 android:textColor="#333333" 655 android:textColor="#333333"
618 android:textStyle="bold" 656 android:textStyle="bold"
619 android:background="@drawable/bg_hy_point_title" 657 android:background="@drawable/bg_hy_point_title"
620 android:paddingStart="28dp" 658 android:paddingStart="28dp"
621 android:paddingEnd="4dp" 659 android:paddingEnd="4dp"
622 android:layout_gravity="center_horizontal" 660 android:layout_gravity="center_horizontal"
623 android:layout_width="wrap_content" 661 android:layout_width="wrap_content"
624 android:layout_height="wrap_content"/> 662 android:layout_height="wrap_content"/>
625 663
626 <LinearLayout 664 <LinearLayout
627 android:orientation="horizontal" 665 android:orientation="horizontal"
628 android:layout_width="match_parent" 666 android:layout_width="match_parent"
629 android:layout_height="120dp" 667 android:layout_height="120dp"
630 android:layout_marginTop="20dp"> 668 android:layout_marginTop="20dp">
631 <LinearLayout 669 <LinearLayout
632 android:orientation="vertical" 670 android:orientation="vertical"
633 android:background="@drawable/shape_radius_10" 671 android:background="@drawable/shape_radius_10"
634 android:backgroundTint="#F4FAFF" 672 android:backgroundTint="#F4FAFF"
635 android:gravity="center_horizontal" 673 android:gravity="center_horizontal"
636 android:paddingTop="10dp" 674 android:paddingTop="10dp"
637 android:layout_width="0dp" 675 android:layout_width="0dp"
638 android:layout_height="match_parent" 676 android:layout_height="match_parent"
639 android:layout_weight="1"> 677 android:layout_weight="1">
640 <ImageView 678 <ImageView
641 android:src="@drawable/png_ic_excellent" 679 android:src="@drawable/png_ic_excellent"
642 android:backgroundTint="#3BC3B6" 680 android:backgroundTint="#3BC3B6"
643 android:background="@drawable/bg_circle" 681 android:background="@drawable/bg_circle"
644 android:padding="8dp" 682 android:padding="8dp"
645 android:layout_width="40dp" 683 android:layout_width="40dp"
646 android:layout_height="40dp"/> 684 android:layout_height="40dp"/>
647 <TextView 685 <TextView
648 android:id="@+id/tvExcellent" 686 android:id="@+id/tvExcellent"
649 android:text="-" 687 android:text="-"
650 android:textColor="#3BC3B6" 688 android:textColor="#3BC3B6"
651 android:textSize="25sp" 689 android:textSize="25sp"
652 android:textStyle="bold" 690 android:textStyle="bold"
653 android:layout_marginTop="4dp" 691 android:layout_marginTop="4dp"
654 android:layout_width="wrap_content" 692 android:layout_width="wrap_content"
655 android:layout_height="wrap_content"/> 693 android:layout_height="wrap_content"/>
656 <TextView 694 <TextView
657 android:text="掌握优秀" 695 android:text="掌握优秀"
658 android:textSize="15sp" 696 android:textSize="15sp"
659 android:textColor="#333" 697 android:textColor="#333"
660 android:textStyle="bold" 698 android:textStyle="bold"
661 android:layout_width="wrap_content" 699 android:layout_width="wrap_content"
662 android:layout_height="wrap_content"/> 700 android:layout_height="wrap_content"/>
663 </LinearLayout> 701 </LinearLayout>
664 <LinearLayout 702 <LinearLayout
665 android:orientation="vertical" 703 android:orientation="vertical"
666 android:background="@drawable/shape_radius_10" 704 android:background="@drawable/shape_radius_10"
667 android:backgroundTint="#F4FAFF" 705 android:backgroundTint="#F4FAFF"
668 android:gravity="center_horizontal" 706 android:gravity="center_horizontal"
669 android:paddingTop="10dp" 707 android:paddingTop="10dp"
670 android:layout_marginStart="14dp" 708 android:layout_marginStart="14dp"
671 android:layout_width="0dp" 709 android:layout_width="0dp"
672 android:layout_height="match_parent" 710 android:layout_height="match_parent"
673 android:layout_weight="1"> 711 android:layout_weight="1">
674 <ImageView 712 <ImageView
675 android:src="@drawable/png_ic_good" 713 android:src="@drawable/png_ic_good"
676 android:backgroundTint="#489AFA" 714 android:backgroundTint="#489AFA"
677 android:background="@drawable/bg_circle" 715 android:background="@drawable/bg_circle"
678 android:padding="8dp" 716 android:padding="8dp"
679 android:layout_width="40dp" 717 android:layout_width="40dp"
680 android:layout_height="40dp"/> 718 android:layout_height="40dp"/>
681 <TextView 719 <TextView
682 android:id="@+id/tvGood" 720 android:id="@+id/tvGood"
683 android:text="-" 721 android:text="-"
684 android:textColor="#489AFA" 722 android:textColor="#489AFA"
685 android:textSize="25sp" 723 android:textSize="25sp"
686 android:textStyle="bold" 724 android:textStyle="bold"
687 android:layout_marginTop="4dp" 725 android:layout_marginTop="4dp"
688 android:layout_width="wrap_content" 726 android:layout_width="wrap_content"
689 android:layout_height="wrap_content"/> 727 android:layout_height="wrap_content"/>
690 <TextView 728 <TextView
691 android:text="掌握良好" 729 android:text="掌握良好"
692 android:textSize="15sp" 730 android:textSize="15sp"
693 android:textColor="#333" 731 android:textColor="#333"
694 android:textStyle="bold" 732 android:textStyle="bold"
695 android:layout_width="wrap_content" 733 android:layout_width="wrap_content"
696 android:layout_height="wrap_content"/> 734 android:layout_height="wrap_content"/>
697 </LinearLayout> 735 </LinearLayout>
698 <LinearLayout 736 <LinearLayout
699 android:orientation="vertical" 737 android:orientation="vertical"
700 android:background="@drawable/shape_radius_10" 738 android:background="@drawable/shape_radius_10"
701 android:backgroundTint="#F4FAFF" 739 android:backgroundTint="#F4FAFF"
702 android:gravity="center_horizontal" 740 android:gravity="center_horizontal"
703 android:paddingTop="10dp" 741 android:paddingTop="10dp"
704 android:layout_marginStart="14dp" 742 android:layout_marginStart="14dp"
705 android:layout_width="0dp" 743 android:layout_width="0dp"
706 android:layout_height="match_parent" 744 android:layout_height="match_parent"
707 android:layout_weight="1"> 745 android:layout_weight="1">
708 <ImageView 746 <ImageView
709 android:src="@drawable/png_ic_normal" 747 android:src="@drawable/png_ic_normal"
710 android:backgroundTint="#F58725" 748 android:backgroundTint="#F58725"
711 android:background="@drawable/bg_circle" 749 android:background="@drawable/bg_circle"
712 android:padding="8dp" 750 android:padding="8dp"
713 android:layout_width="40dp" 751 android:layout_width="40dp"
714 android:layout_height="40dp"/> 752 android:layout_height="40dp"/>
715 <TextView 753 <TextView
716 android:id="@+id/tvNormal" 754 android:id="@+id/tvNormal"
717 android:text="-" 755 android:text="-"
718 android:textColor="#F58725" 756 android:textColor="#F58725"
719 android:textSize="25sp" 757 android:textSize="25sp"
720 android:textStyle="bold" 758 android:textStyle="bold"
721 android:layout_marginTop="4dp" 759 android:layout_marginTop="4dp"
722 android:layout_width="wrap_content" 760 android:layout_width="wrap_content"
723 android:layout_height="wrap_content"/> 761 android:layout_height="wrap_content"/>
724 <TextView 762 <TextView
725 android:text="掌握一般" 763 android:text="掌握一般"
726 android:textSize="15sp" 764 android:textSize="15sp"
727 android:textColor="#333" 765 android:textColor="#333"
728 android:textStyle="bold" 766 android:textStyle="bold"
729 android:layout_width="wrap_content" 767 android:layout_width="wrap_content"
730 android:layout_height="wrap_content"/> 768 android:layout_height="wrap_content"/>
731 </LinearLayout> 769 </LinearLayout>
732 <LinearLayout 770 <LinearLayout
733 android:orientation="vertical" 771 android:orientation="vertical"
734 android:background="@drawable/shape_radius_10" 772 android:background="@drawable/shape_radius_10"
735 android:backgroundTint="#F4FAFF" 773 android:backgroundTint="#F4FAFF"
736 android:gravity="center_horizontal" 774 android:gravity="center_horizontal"
737 android:paddingTop="10dp" 775 android:paddingTop="10dp"
738 android:layout_marginStart="14dp" 776 android:layout_marginStart="14dp"
739 android:layout_width="0dp" 777 android:layout_width="0dp"
740 android:layout_height="match_parent" 778 android:layout_height="match_parent"
741 android:layout_weight="1"> 779 android:layout_weight="1">
742 <ImageView 780 <ImageView
743 android:src="@drawable/png_ic_weak" 781 android:src="@drawable/png_ic_weak"
744 android:backgroundTint="#EA5127" 782 android:backgroundTint="#EA5127"
745 android:background="@drawable/bg_circle" 783 android:background="@drawable/bg_circle"
746 android:padding="8dp" 784 android:padding="8dp"
747 android:layout_width="40dp" 785 android:layout_width="40dp"
748 android:layout_height="40dp"/> 786 android:layout_height="40dp"/>
749 <TextView 787 <TextView
750 android:id="@+id/tvWeak" 788 android:id="@+id/tvWeak"
751 android:text="-" 789 android:text="-"
752 android:textColor="#EA5127" 790 android:textColor="#EA5127"
753 android:textSize="25sp" 791 android:textSize="25sp"
754 android:textStyle="bold" 792 android:textStyle="bold"
755 android:layout_marginTop="4dp" 793 android:layout_marginTop="4dp"
756 android:layout_width="wrap_content" 794 android:layout_width="wrap_content"
757 android:layout_height="wrap_content"/> 795 android:layout_height="wrap_content"/>
758 <TextView 796 <TextView
759 android:text="掌握薄弱" 797 android:text="掌握薄弱"
760 android:textSize="15sp" 798 android:textSize="15sp"
761 android:textColor="#333" 799 android:textColor="#333"
762 android:textStyle="bold" 800 android:textStyle="bold"
763 android:layout_width="wrap_content" 801 android:layout_width="wrap_content"
764 android:layout_height="wrap_content"/> 802 android:layout_height="wrap_content"/>
765 </LinearLayout> 803 </LinearLayout>
766 </LinearLayout> 804 </LinearLayout>
767 805
768 <FrameLayout 806 <FrameLayout
769 android:layout_gravity="center_horizontal" 807 android:layout_gravity="center_horizontal"
770 android:layout_marginTop="20dp" 808 android:layout_marginTop="20dp"
771 android:layout_width="180dp" 809 android:layout_width="180dp"
772 android:layout_height="180dp"> 810 android:layout_height="180dp">
773 <com.littlejie.circleprogress.CircleProgress 811 <com.littlejie.circleprogress.CircleProgress
774 android:id="@+id/cpBase" 812 android:id="@+id/cpBase"
775 app:value="0" 813 app:value="0"
776 app:arcWidth="35dp" 814 app:arcWidth="35dp"
777 app:bgArcWidth="35dp" 815 app:bgArcWidth="35dp"
778 app:bgArcColor="#3BC3B6" 816 app:bgArcColor="#3BC3B6"
779 app:startAngle="0" 817 app:startAngle="0"
780 app:sweepAngle="360" 818 app:sweepAngle="360"
781 app:hintColor="@color/transparent" 819 app:hintColor="@color/transparent"
782 app:unitColor="@color/transparent" 820 app:unitColor="@color/transparent"
783 app:valueColor="@color/transparent" 821 app:valueColor="@color/transparent"
784 android:layout_width="match_parent" 822 android:layout_width="match_parent"
785 android:layout_height="match_parent"/> 823 android:layout_height="match_parent"/>
786 <com.littlejie.circleprogress.CircleProgress 824 <com.littlejie.circleprogress.CircleProgress
787 android:id="@+id/cpGood" 825 android:id="@+id/cpGood"
788 app:value="0" 826 app:value="0"
789 app:arcWidth="35dp" 827 app:arcWidth="35dp"
790 app:bgArcWidth="35dp" 828 app:bgArcWidth="35dp"
791 app:arcColors="#489AFA" 829 app:arcColors="#489AFA"
792 app:bgArcColor="@color/transparent" 830 app:bgArcColor="@color/transparent"
793 app:startAngle="0" 831 app:startAngle="0"
794 app:sweepAngle="360" 832 app:sweepAngle="360"
795 app:hintColor="@color/transparent" 833 app:hintColor="@color/transparent"
796 app:unitColor="@color/transparent" 834 app:unitColor="@color/transparent"
797 app:valueColor="@color/transparent" 835 app:valueColor="@color/transparent"
798 android:layout_width="match_parent" 836 android:layout_width="match_parent"
799 android:layout_height="match_parent"/> 837 android:layout_height="match_parent"/>
800 <com.littlejie.circleprogress.CircleProgress 838 <com.littlejie.circleprogress.CircleProgress
801 android:id="@+id/cpNormal" 839 android:id="@+id/cpNormal"
802 app:value="0" 840 app:value="0"
803 app:arcWidth="35dp" 841 app:arcWidth="35dp"
804 app:bgArcWidth="35dp" 842 app:bgArcWidth="35dp"
805 app:arcColors="#F58725" 843 app:arcColors="#F58725"
806 app:bgArcColor="@color/transparent" 844 app:bgArcColor="@color/transparent"
807 app:startAngle="0" 845 app:startAngle="0"
808 app:sweepAngle="360" 846 app:sweepAngle="360"
809 app:hintColor="@color/transparent" 847 app:hintColor="@color/transparent"
810 app:unitColor="@color/transparent" 848 app:unitColor="@color/transparent"
811 app:valueColor="@color/transparent" 849 app:valueColor="@color/transparent"
812 android:layout_width="match_parent" 850 android:layout_width="match_parent"
813 android:layout_height="match_parent"/> 851 android:layout_height="match_parent"/>
814 <com.littlejie.circleprogress.CircleProgress 852 <com.littlejie.circleprogress.CircleProgress
815 android:id="@+id/cpWeak" 853 android:id="@+id/cpWeak"
816 app:value="0" 854 app:value="0"
817 app:arcWidth="35dp" 855 app:arcWidth="35dp"
818 app:bgArcWidth="35dp" 856 app:bgArcWidth="35dp"
819 app:arcColors="#EA5127" 857 app:arcColors="#EA5127"
820 app:bgArcColor="@color/transparent" 858 app:bgArcColor="@color/transparent"
821 app:startAngle="0" 859 app:startAngle="0"
822 app:sweepAngle="360" 860 app:sweepAngle="360"
823 app:hintColor="@color/transparent" 861 app:hintColor="@color/transparent"
824 app:unitColor="@color/transparent" 862 app:unitColor="@color/transparent"
825 app:valueColor="@color/transparent" 863 app:valueColor="@color/transparent"
826 android:layout_width="match_parent" 864 android:layout_width="match_parent"
827 android:layout_height="match_parent"/> 865 android:layout_height="match_parent"/>
828 866
829 <LinearLayout 867 <LinearLayout
830 android:orientation="vertical" 868 android:orientation="vertical"
831 android:gravity="center_horizontal" 869 android:gravity="center_horizontal"
832 android:layout_gravity="center" 870 android:layout_gravity="center"
833 android:layout_width="wrap_content" 871 android:layout_width="wrap_content"
834 android:layout_height="wrap_content"> 872 android:layout_height="wrap_content">
835 <LinearLayout 873 <LinearLayout
836 android:layout_width="wrap_content" 874 android:layout_width="wrap_content"
837 android:layout_height="wrap_content"> 875 android:layout_height="wrap_content">
838 <TextView 876 <TextView
839 android:id="@+id/tvAvePoint" 877 android:id="@+id/tvAvePoint"
840 tools:text="88" 878 tools:text="88"
841 android:textSize="25sp" 879 android:textSize="25sp"
842 android:textColor="#3BC3B6" 880 android:textColor="#3BC3B6"
843 android:textStyle="bold" 881 android:textStyle="bold"
844 android:layout_width="wrap_content" 882 android:layout_width="wrap_content"
845 android:layout_height="wrap_content"/> 883 android:layout_height="wrap_content"/>
846 <TextView 884 <TextView
847 android:text="%" 885 android:text="%"
848 android:textSize="12sp" 886 android:textSize="12sp"
849 android:textColor="#3BC3B6" 887 android:textColor="#3BC3B6"
850 android:layout_width="wrap_content" 888 android:layout_width="wrap_content"
851 android:layout_height="wrap_content"/> 889 android:layout_height="wrap_content"/>
852 </LinearLayout> 890 </LinearLayout>
853 <TextView 891 <TextView
854 android:text="综合掌握程度" 892 android:text="综合掌握程度"
855 android:textSize="10sp" 893 android:textSize="10sp"
856 android:textColor="#333" 894 android:textColor="#333"
857 android:textStyle="bold" 895 android:textStyle="bold"
858 android:layout_marginTop="-2dp" 896 android:layout_marginTop="-2dp"
859 android:layout_width="wrap_content" 897 android:layout_width="wrap_content"
860 android:layout_height="wrap_content"/> 898 android:layout_height="wrap_content"/>
861 </LinearLayout> 899 </LinearLayout>
862 </FrameLayout> 900 </FrameLayout>
863 </LinearLayout> 901 </LinearLayout>
864 902
865 <LinearLayout 903 <LinearLayout
904 android:id="@+id/viewTable"
866 android:orientation="vertical" 905 android:orientation="vertical"
867 android:background="@drawable/shape_radius_10" 906 android:background="@drawable/shape_radius_10"
868 android:backgroundTint="@color/white" 907 android:backgroundTint="@color/white"
869 android:padding="16dp" 908 android:padding="16dp"
870 android:layout_marginHorizontal="16dp" 909 android:layout_marginHorizontal="16dp"
871 android:layout_marginTop="12dp" 910 android:layout_marginTop="12dp"
872 android:layout_width="match_parent" 911 android:layout_width="match_parent"
873 android:layout_height="wrap_content"> 912 android:layout_height="wrap_content">
874 <TextView 913 <TextView
875 android:text="学习效果分析" 914 android:text="学习效果分析"
876 android:textSize="16sp" 915 android:textSize="16sp"
877 android:textColor="#333333" 916 android:textColor="#333333"
878 android:textStyle="bold" 917 android:textStyle="bold"
879 android:background="@drawable/bg_hy_analyse_title" 918 android:background="@drawable/bg_hy_analyse_title"
880 android:paddingStart="24dp" 919 android:paddingStart="24dp"
881 android:paddingEnd="4dp" 920 android:paddingEnd="4dp"
882 android:layout_gravity="center_horizontal" 921 android:layout_gravity="center_horizontal"
883 android:layout_width="wrap_content" 922 android:layout_width="wrap_content"
884 android:layout_height="wrap_content"/> 923 android:layout_height="wrap_content"/>
885 924
886 <LinearLayout 925 <LinearLayout
887 android:id="@+id/flEmptyPoints" 926 android:id="@+id/flEmptyPoints"
888 android:visibility="gone" 927 android:visibility="gone"
889 android:orientation="vertical" 928 android:orientation="vertical"
890 android:gravity="center_horizontal" 929 android:gravity="center_horizontal"
891 android:layout_marginTop="50dp" 930 android:layout_marginTop="50dp"
892 android:layout_width="match_parent" 931 android:layout_width="match_parent"
893 android:layout_height="wrap_content"> 932 android:layout_height="wrap_content">
894 <ImageView 933 <ImageView
895 android:src="@drawable/png_huyou_points_empty" 934 android:src="@drawable/png_huyou_points_empty"
896 android:layout_width="195dp" 935 android:layout_width="195dp"
897 android:layout_height="145dp"/> 936 android:layout_height="145dp"/>
898 <TextView 937 <TextView
899 android:text="你太棒了!" 938 android:text="你太棒了!"
900 android:textSize="20sp" 939 android:textSize="20sp"
901 android:textColor="#999" 940 android:textColor="#999"
902 android:layout_marginVertical="16dp" 941 android:layout_marginVertical="16dp"
903 android:layout_width="wrap_content" 942 android:layout_width="wrap_content"
904 android:layout_height="wrap_content"/> 943 android:layout_height="wrap_content"/>
905 </LinearLayout> 944 </LinearLayout>
906 945
907 <LinearLayout 946 <LinearLayout
908 android:id="@+id/tableRoot" 947 android:id="@+id/tableRoot"
909 android:orientation="vertical" 948 android:orientation="vertical"
910 android:background="@drawable/bg_huyou_table_bg" 949 android:background="@drawable/bg_huyou_table_bg"
911 android:layout_marginTop="16dp" 950 android:layout_marginTop="16dp"
912 android:layout_width="match_parent" 951 android:layout_width="match_parent"
913 android:layout_height="wrap_content"> 952 android:layout_height="wrap_content">
914 <LinearLayout 953 <LinearLayout
915 android:orientation="horizontal" 954 android:orientation="horizontal"
916 android:background="#50CEC2" 955 android:background="#50CEC2"
917 android:layout_width="match_parent" 956 android:layout_width="match_parent"
918 android:layout_height="60dp"> 957 android:layout_height="60dp">
919 <TextView 958 <TextView
920 android:text="知识点名称" 959 android:text="知识点名称"
921 android:textSize="13sp" 960 android:textSize="13sp"
922 android:textColor="@color/white" 961 android:textColor="@color/white"
923 android:gravity="center" 962 android:gravity="center"
924 android:layout_weight="82" 963 android:layout_weight="82"
925 android:layout_width="0dp" 964 android:layout_width="0dp"
926 android:layout_height="match_parent"/> 965 android:layout_height="match_parent"/>
927 <View 966 <View
928 android:background="#38B3A7" 967 android:background="#38B3A7"
929 android:layout_width="1dp" 968 android:layout_width="1dp"
930 android:layout_height="match_parent"/> 969 android:layout_height="match_parent"/>
931 970
932 <LinearLayout 971 <LinearLayout
933 android:orientation="vertical" 972 android:orientation="vertical"
934 android:layout_weight="72" 973 android:layout_weight="72"
935 android:layout_width="0dp" 974 android:layout_width="0dp"
936 android:layout_height="match_parent"> 975 android:layout_height="match_parent">
937 <TextView 976 <TextView
938 android:text="学前" 977 android:text="学前"
939 android:textSize="13sp" 978 android:textSize="13sp"
940 android:textColor="@color/white" 979 android:textColor="@color/white"
941 android:gravity="center" 980 android:gravity="center"
942 android:layout_width="match_parent" 981 android:layout_width="match_parent"
943 android:layout_height="24dp"/> 982 android:layout_height="24dp"/>
944 <View 983 <View
945 android:background="#38B3A7" 984 android:background="#38B3A7"
946 android:layout_width="match_parent" 985 android:layout_width="match_parent"
947 android:layout_height="1dp"/> 986 android:layout_height="1dp"/>
948 <LinearLayout 987 <LinearLayout
949 android:orientation="horizontal" 988 android:orientation="horizontal"
950 android:layout_width="match_parent" 989 android:layout_width="match_parent"
951 android:layout_height="match_parent"> 990 android:layout_height="match_parent">
952 <TextView 991 <TextView
953 android:text="程\n度" 992 android:text="程\n度"
954 android:textSize="13sp" 993 android:textSize="13sp"
955 android:textColor="@color/white" 994 android:textColor="@color/white"
956 android:gravity="center" 995 android:gravity="center"
957 android:layout_weight="1" 996 android:layout_weight="1"
958 android:layout_width="0dp" 997 android:layout_width="0dp"
959 android:layout_height="wrap_content"/> 998 android:layout_height="wrap_content"/>
960 <View 999 <View
961 android:background="#38B3A7" 1000 android:background="#38B3A7"
962 android:layout_width="1dp" 1001 android:layout_width="1dp"
963 android:layout_height="match_parent"/> 1002 android:layout_height="match_parent"/>
964 <TextView 1003 <TextView
965 android:text="状\n态" 1004 android:text="状\n态"
966 android:textSize="13sp" 1005 android:textSize="13sp"
967 android:textColor="@color/white" 1006 android:textColor="@color/white"
968 android:gravity="center" 1007 android:gravity="center"
969 android:layout_weight="1" 1008 android:layout_weight="1"
970 android:layout_width="0dp" 1009 android:layout_width="0dp"
971 android:layout_height="wrap_content"/> 1010 android:layout_height="wrap_content"/>
972 </LinearLayout> 1011 </LinearLayout>
973 </LinearLayout> 1012 </LinearLayout>
974 1013
975 <View 1014 <View
976 android:background="#38B3A7" 1015 android:background="#38B3A7"
977 android:layout_width="1dp" 1016 android:layout_width="1dp"
978 android:layout_height="match_parent"/> 1017 android:layout_height="match_parent"/>
979 1018
980 <LinearLayout 1019 <LinearLayout
981 android:orientation="vertical" 1020 android:orientation="vertical"
982 android:layout_weight="72" 1021 android:layout_weight="72"
983 android:layout_width="0dp" 1022 android:layout_width="0dp"
984 android:layout_height="match_parent"> 1023 android:layout_height="match_parent">
985 <TextView 1024 <TextView
986 android:text="学后" 1025 android:text="学后"
987 android:textSize="13sp" 1026 android:textSize="13sp"
988 android:textColor="@color/white" 1027 android:textColor="@color/white"
989 android:gravity="center" 1028 android:gravity="center"
990 android:layout_width="match_parent" 1029 android:layout_width="match_parent"
991 android:layout_height="24dp"/> 1030 android:layout_height="24dp"/>
992 <View 1031 <View
993 android:background="#38B3A7" 1032 android:background="#38B3A7"
994 android:layout_width="match_parent" 1033 android:layout_width="match_parent"
995 android:layout_height="1dp"/> 1034 android:layout_height="1dp"/>
996 <LinearLayout 1035 <LinearLayout
997 android:orientation="horizontal" 1036 android:orientation="horizontal"
998 android:layout_width="match_parent" 1037 android:layout_width="match_parent"
999 android:layout_height="match_parent"> 1038 android:layout_height="match_parent">
1000 <TextView 1039 <TextView
1001 android:text="程\n度" 1040 android:text="程\n度"
1002 android:textSize="13sp" 1041 android:textSize="13sp"
1003 android:textColor="@color/white" 1042 android:textColor="@color/white"
1004 android:gravity="center" 1043 android:gravity="center"
1005 android:layout_weight="1" 1044 android:layout_weight="1"
1006 android:layout_width="0dp" 1045 android:layout_width="0dp"
1007 android:layout_height="wrap_content"/> 1046 android:layout_height="wrap_content"/>
1008 <View 1047 <View
1009 android:background="#38B3A7" 1048 android:background="#38B3A7"
1010 android:layout_width="1dp" 1049 android:layout_width="1dp"
1011 android:layout_height="match_parent"/> 1050 android:layout_height="match_parent"/>
1012 <TextView 1051 <TextView
1013 android:text="状\n态" 1052 android:text="状\n态"
1014 android:textSize="13sp" 1053 android:textSize="13sp"
1015 android:textColor="@color/white" 1054 android:textColor="@color/white"
1016 android:gravity="center" 1055 android:gravity="center"
1017 android:layout_weight="1" 1056 android:layout_weight="1"
1018 android:layout_width="0dp" 1057 android:layout_width="0dp"
1019 android:layout_height="wrap_content"/> 1058 android:layout_height="wrap_content"/>
1020 </LinearLayout> 1059 </LinearLayout>
1021 1060
1022 </LinearLayout> 1061 </LinearLayout>
1023 1062
1024 <View 1063 <View
1025 android:background="#38B3A7" 1064 android:background="#38B3A7"
1026 android:layout_width="1dp" 1065 android:layout_width="1dp"
1027 android:layout_height="match_parent"/> 1066 android:layout_height="match_parent"/>
1028 <TextView 1067 <TextView
1029 android:text="进步\n幅度" 1068 android:text="进步\n幅度"
1030 android:textSize="13sp" 1069 android:textSize="13sp"
1031 android:textColor="@color/white" 1070 android:textColor="@color/white"
1032 android:gravity="center" 1071 android:gravity="center"
1033 android:layout_weight="50" 1072 android:layout_weight="50"
1034 android:layout_width="0dp" 1073 android:layout_width="0dp"
1035 android:layout_height="match_parent"/> 1074 android:layout_height="match_parent"/>
1036 <View 1075 <View
1037 android:background="#38B3A7" 1076 android:background="#38B3A7"
1038 android:layout_width="1dp" 1077 android:layout_width="1dp"
1039 android:layout_height="match_parent"/> 1078 android:layout_height="match_parent"/>
1040 <TextView 1079 <TextView
1041 android:text="正答\n率" 1080 android:text="正答\n率"
1042 android:textSize="13sp" 1081 android:textSize="13sp"
1043 android:textColor="@color/white" 1082 android:textColor="@color/white"
1044 android:gravity="center" 1083 android:gravity="center"
1045 android:layout_weight="38" 1084 android:layout_weight="38"
1046 android:layout_width="0dp" 1085 android:layout_width="0dp"
1047 android:layout_height="match_parent"/> 1086 android:layout_height="match_parent"/>
1048 </LinearLayout> 1087 </LinearLayout>
1049 <androidx.recyclerview.widget.RecyclerView 1088 <androidx.recyclerview.widget.RecyclerView
1050 android:id="@+id/rvPoint" 1089 android:id="@+id/rvPoint"
1051 android:orientation="vertical" 1090 android:orientation="vertical"
1052 app:layoutManager="androidx.recyclerview.widget.LinearLayoutManager" 1091 app:layoutManager="androidx.recyclerview.widget.LinearLayoutManager"
1053 app:reverseLayout="false" 1092 app:reverseLayout="false"
1054 android:layout_width="match_parent" 1093 android:layout_width="match_parent"
1055 android:layout_height="wrap_content"/> 1094 android:layout_height="wrap_content"/>
1056 </LinearLayout> 1095 </LinearLayout>
1057 1096
1058 <LinearLayout 1097 <LinearLayout
1059 android:id="@+id/flPointDesc" 1098 android:id="@+id/flPointDesc"
1060 android:orientation="horizontal" 1099 android:orientation="horizontal"
1061 android:gravity="center_vertical" 1100 android:gravity="center_vertical"
1062 android:layout_marginTop="10dp" 1101 android:layout_marginTop="10dp"
1063 android:layout_width="match_parent" 1102 android:layout_width="match_parent"
1064 android:layout_height="wrap_content"> 1103 android:layout_height="wrap_content">
1065 <ImageView 1104 <ImageView
1066 android:src="@drawable/png_up" 1105 android:src="@drawable/png_up"
1067 android:layout_width="12dp" 1106 android:layout_width="12dp"
1068 android:layout_height="12dp"/> 1107 android:layout_height="12dp"/>
1069 <TextView 1108 <TextView
1070 android:text="代表进步幅度最大的知识点" 1109 android:text="代表进步幅度最大的知识点"
1071 android:textSize="12sp" 1110 android:textSize="12sp"
1072 android:textColor="#666" 1111 android:textColor="#666"
1073 android:layout_marginStart="8dp" 1112 android:layout_marginStart="8dp"
1074 android:layout_width="wrap_content" 1113 android:layout_width="wrap_content"
1075 android:layout_height="wrap_content"/> 1114 android:layout_height="wrap_content"/>
1076 </LinearLayout> 1115 </LinearLayout>
1116 </LinearLayout>
1117
1118 <LinearLayout
1119 android:id="@+id/viewWeekTable"
1120 android:orientation="vertical"
1121 android:background="@drawable/shape_radius_10"
1122 android:backgroundTint="@color/white"
1123 android:padding="16dp"
1124 android:layout_marginHorizontal="16dp"
1125 android:layout_marginTop="12dp"
1126 android:layout_width="match_parent"
1127 android:layout_height="wrap_content">
1128 <TextView
1129 android:text="知识点掌握详情"
1130 android:textSize="16sp"
1131 android:textColor="#333333"
1132 android:textStyle="bold"
1133 android:background="@drawable/bg_hy_analyse_title"
1134 android:paddingStart="24dp"
1135 android:paddingEnd="4dp"
1136 android:layout_gravity="center_horizontal"
1137 android:layout_width="wrap_content"
1138 android:layout_height="wrap_content"/>
1139
1140 <LinearLayout
1141 android:id="@+id/tableWeekRoot"
1142 android:orientation="vertical"
1143 android:background="@drawable/bg_huyou_table_bg"
1144 android:layout_marginTop="16dp"
1145 android:layout_width="match_parent"
1146 android:layout_height="wrap_content">
1147 <LinearLayout
1148 android:orientation="horizontal"
1149 android:background="#50CEC2"
1150 android:layout_width="match_parent"
1151 android:layout_height="60dp">
1152 <TextView
1153 android:text="知识点名称"
1154 android:textSize="13sp"
1155 android:textColor="@color/white"
1156 android:gravity="center"
1157 android:layout_weight="135"
1158 android:layout_width="0dp"
1159 android:layout_height="match_parent"/>
1160 <View
1161 android:background="#38B3A7"
1162 android:layout_width="1dp"
1163 android:layout_height="match_parent"/>
1164
1165 <TextView
1166 android:text="知识点掌握状态"
1167 android:textSize="13sp"
1168 android:textColor="@color/white"
1169 android:gravity="center"
1170 android:layout_weight="179"
1171 android:layout_width="0dp"
1172 android:layout_height="match_parent"/>
1173
1174 <View
1175 android:background="#38B3A7"
1176 android:layout_width="1dp"
1177 android:layout_height="match_parent"/>
1178
1179 <TextView
1180 android:text="正答率"
1181 android:textSize="13sp"
1182 android:textColor="@color/white"
1183 android:gravity="center"
1184 android:layout_width="48dp"
1185 android:layout_height="match_parent"/>
1186 </LinearLayout>
1187 <androidx.recyclerview.widget.RecyclerView
1188 android:id="@+id/rvWeekPoint"
1189 android:orientation="vertical"
1190 app:layoutManager="androidx.recyclerview.widget.LinearLayoutManager"
app/src/main/res/layout/activity_huyou_detail_a4.xml
1 <?xml version="1.0" encoding="utf-8"?> 1 <?xml version="1.0" encoding="utf-8"?>
2 <FrameLayout 2 <FrameLayout
3 xmlns:android="http://schemas.android.com/apk/res/android" 3 xmlns:android="http://schemas.android.com/apk/res/android"
4 xmlns:tools="http://schemas.android.com/tools" 4 xmlns:tools="http://schemas.android.com/tools"
5 xmlns:app="http://schemas.android.com/apk/res-auto" 5 xmlns:app="http://schemas.android.com/apk/res-auto"
6 tools:ignore="HardcodedText,ContentDescription,SmallSp,UseCompoundDrawables,RtlSymmetry" 6 tools:ignore="HardcodedText,ContentDescription,SmallSp,UseCompoundDrawables,RtlSymmetry"
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 <LinearLayout 9 <LinearLayout
10 android:id="@+id/root" 10 android:id="@+id/root"
11 android:transformPivotX="0px" 11 android:transformPivotX="0px"
12 android:transformPivotY="0px" 12 android:transformPivotY="0px"
13 android:orientation="vertical" 13 android:orientation="vertical"
14 android:background="@drawable/bg_huyou_a4" 14 android:background="@drawable/bg_huyou_a4"
15 android:layout_width="756dp" 15 android:layout_width="756dp"
16 android:layout_height="1069dp" 16 android:layout_height="1069dp"
17 tools:ignore="UselessParent"> 17 tools:ignore="UselessParent">
18 18
19 19
20 <FrameLayout 20 <FrameLayout
21 android:orientation="horizontal" 21 android:orientation="horizontal"
22 android:elevation="2dp" 22 android:elevation="2dp"
23 android:paddingHorizontal="30dp" 23 android:paddingHorizontal="30dp"
24 android:layout_marginTop="60dp" 24 android:layout_marginTop="60dp"
25 android:layout_width="match_parent" 25 android:layout_width="match_parent"
26 android:layout_height="wrap_content"> 26 android:layout_height="wrap_content">
27 <LinearLayout 27 <LinearLayout
28 android:id="@+id/toolbar" 28 android:id="@+id/toolbar"
29 android:layout_gravity="center_vertical" 29 android:layout_gravity="center_vertical"
30 android:layout_width="match_parent" 30 android:layout_width="match_parent"
31 android:layout_height="wrap_content"> 31 android:layout_height="wrap_content">
32 <TextView 32 <TextView
33 android:id="@+id/btnBack" 33 android:id="@+id/btnBack"
34 android:text="返回" 34 android:text="返回"
35 android:textSize="30sp" 35 android:textSize="30sp"
36 android:textColor="#333" 36 android:textColor="#333"
37 android:layout_width="wrap_content" 37 android:layout_width="wrap_content"
38 android:layout_height="wrap_content"/> 38 android:layout_height="wrap_content"/>
39 <Space style="@style/empty_space"/> 39 <Space style="@style/empty_space"/>
40 <TextView 40 <TextView
41 android:id="@+id/btnSwitch" 41 android:id="@+id/btnSwitch"
42 android:text="看长图" 42 android:text="看长图"
43 android:textSize="30sp" 43 android:textSize="30sp"
44 android:textColor="#333" 44 android:textColor="#333"
45 android:layout_width="wrap_content" 45 android:layout_width="wrap_content"
46 android:layout_height="wrap_content"/> 46 android:layout_height="wrap_content"/>
47 <TextView 47 <TextView
48 android:id="@+id/btnShare" 48 android:id="@+id/btnShare"
49 android:text="分享" 49 android:text="分享"
50 android:textSize="30sp" 50 android:textSize="30sp"
51 android:textColor="#333" 51 android:textColor="#333"
52 android:layout_marginStart="8dp" 52 android:layout_marginStart="8dp"
53 android:layout_width="wrap_content" 53 android:layout_width="wrap_content"
54 android:layout_height="wrap_content"/> 54 android:layout_height="wrap_content"/>
55 <TextView 55 <TextView
56 android:id="@+id/btnSame" 56 android:id="@+id/btnSame"
57 android:visibility="gone" 57 android:visibility="gone"
58 android:text="举一反三" 58 android:text="举一反三"
59 android:textSize="20sp" 59 android:textSize="20sp"
60 android:textColor="#333" 60 android:textColor="#333"
61 android:layout_gravity="end" 61 android:layout_gravity="end"
62 android:layout_width="wrap_content" 62 android:layout_width="wrap_content"
63 android:layout_height="wrap_content"/> 63 android:layout_height="wrap_content"/>
64 </LinearLayout> 64 </LinearLayout>
65 <TextView 65 <TextView
66 android:id="@+id/tvTitle" 66 android:id="@+id/tvTitle"
67 android:text="周作业学习报告" 67 android:text="周作业学习报告"
68 android:textSize="37sp" 68 android:textSize="37sp"
69 android:textColor="#333" 69 android:textColor="#333"
70 android:textStyle="bold" 70 android:textStyle="bold"
71 android:layout_gravity="center_horizontal" 71 android:layout_gravity="center_horizontal"
72 android:layout_width="wrap_content" 72 android:layout_width="wrap_content"
73 android:layout_height="wrap_content" /> 73 android:layout_height="wrap_content" />
74 </FrameLayout> 74 </FrameLayout>
75 75
76 76
77 <ImageView 77 <ImageView
78 android:src="@drawable/png_huyou_top_bg" 78 android:src="@drawable/png_huyou_top_bg"
79 android:elevation="1dp" 79 android:elevation="1dp"
80 android:layout_gravity="end" 80 android:layout_gravity="end"
81 android:layout_marginHorizontal="30dp" 81 android:layout_marginHorizontal="30dp"
82 android:layout_marginTop="-40dp" 82 android:layout_marginTop="-40dp"
83 android:layout_width="206dp" 83 android:layout_width="206dp"
84 android:layout_height="180dp"/> 84 android:layout_height="180dp"/>
85 85
86 <LinearLayout 86 <LinearLayout
87 android:orientation="vertical" 87 android:orientation="vertical"
88 android:background="@drawable/png_info_bg" 88 android:background="@drawable/png_info_bg"
89 android:padding="30dp" 89 android:padding="30dp"
90 android:layout_marginHorizontal="30dp" 90 android:layout_marginHorizontal="30dp"
91 android:layout_marginTop="-120dp" 91 android:layout_marginTop="-120dp"
92 android:layout_width="match_parent" 92 android:layout_width="match_parent"
93 android:layout_height="267dp"> 93 android:layout_height="267dp">
94 <LinearLayout 94 <LinearLayout
95 android:orientation="horizontal" 95 android:orientation="horizontal"
96 android:layout_width="match_parent" 96 android:layout_width="match_parent"
97 android:layout_height="wrap_content"> 97 android:layout_height="wrap_content">
98 <androidx.constraintlayout.utils.widget.ImageFilterView 98 <androidx.constraintlayout.utils.widget.ImageFilterView
99 android:id="@+id/ivAvatar" 99 android:id="@+id/ivAvatar"
100 tools:background="#2491FF" 100 tools:background="#2491FF"
101 app:round="40dp" 101 app:round="40dp"
102 android:layout_width="80dp" 102 android:layout_width="80dp"
103 android:layout_height="80dp"/> 103 android:layout_height="80dp"/>
104 <LinearLayout 104 <LinearLayout
105 android:orientation="vertical" 105 android:orientation="vertical"
106 android:layout_gravity="center_vertical" 106 android:layout_gravity="center_vertical"
107 android:layout_marginStart="10dp" 107 android:layout_marginStart="10dp"
108 android:layout_width="wrap_content" 108 android:layout_width="wrap_content"
109 android:layout_height="wrap_content"> 109 android:layout_height="wrap_content">
110 <TextView 110 <TextView
111 android:id="@+id/tvStuName" 111 android:id="@+id/tvStuName"
112 tools:text="杨同学 " 112 tools:text="杨同学 "
113 android:textSize="28sp" 113 android:textSize="28sp"
114 android:textColor="#333" 114 android:textColor="#333"
115 android:textStyle="bold" 115 android:textStyle="bold"
116 android:layout_width="wrap_content" 116 android:layout_width="wrap_content"
117 android:layout_height="wrap_content"/> 117 android:layout_height="wrap_content"/>
118 <TextView 118 <TextView
119 android:id="@+id/tvGrade" 119 android:id="@+id/tvGrade"
120 tools:text="七年级" 120 tools:text="七年级"
121 android:textSize="26sp" 121 android:textSize="26sp"
122 android:textColor="#666" 122 android:textColor="#666"
123 android:textStyle="bold" 123 android:textStyle="bold"
124 android:layout_width="wrap_content" 124 android:layout_width="wrap_content"
125 android:layout_height="wrap_content"/> 125 android:layout_height="wrap_content"/>
126 </LinearLayout> 126 </LinearLayout>
127 </LinearLayout> 127 </LinearLayout>
128 <LinearLayout 128 <LinearLayout
129 android:orientation="horizontal" 129 android:orientation="horizontal"
130 android:background="@drawable/shape_radius_10" 130 android:background="@drawable/shape_radius_10"
131 android:backgroundTint="#F4FAFF" 131 android:backgroundTint="#F4FAFF"
132 android:layout_marginTop="16dp" 132 android:layout_marginTop="16dp"
133 android:layout_width="match_parent" 133 android:layout_width="match_parent"
134 android:layout_height="120dp"> 134 android:layout_height="120dp">
135 <LinearLayout 135 <LinearLayout
136 android:orientation="vertical" 136 android:orientation="vertical"
137 android:gravity="center" 137 android:gravity="center"
138 android:layout_width="0dp" 138 android:layout_width="0dp"
139 android:layout_height="match_parent" 139 android:layout_height="match_parent"
140 android:layout_weight="1"> 140 android:layout_weight="1">
141 <LinearLayout 141 <LinearLayout
142 android:paddingEnd="40dp" 142 android:paddingEnd="40dp"
143 android:gravity="center_vertical" 143 android:gravity="center_vertical"
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 <ImageView 146 <ImageView
147 android:src="@drawable/png_iv_subject" 147 android:src="@drawable/png_iv_subject"
148 android:layout_marginEnd="10dp" 148 android:layout_marginEnd="10dp"
149 android:layout_width="32dp" 149 android:layout_width="32dp"
150 android:layout_height="28dp"/> 150 android:layout_height="28dp"/>
151 <TextView 151 <TextView
152 android:text="学科" 152 android:text="学科"
153 android:textSize="24sp" 153 android:textSize="24sp"
154 android:textColor="#333" 154 android:textColor="#333"
155 android:textStyle="bold" 155 android:textStyle="bold"
156 android:layout_width="wrap_content" 156 android:layout_width="wrap_content"
157 android:layout_height="wrap_content"/> 157 android:layout_height="wrap_content"/>
158 </LinearLayout> 158 </LinearLayout>
159 <TextView 159 <TextView
160 android:id="@+id/tvSubject" 160 android:id="@+id/tvSubject"
161 tools:text="数学" 161 tools:text="数学"
162 android:textSize="24sp" 162 android:textSize="24sp"
163 android:textColor="#3BC3B6" 163 android:textColor="#3BC3B6"
164 android:textStyle="bold" 164 android:textStyle="bold"
165 android:layout_marginTop="8dp" 165 android:layout_marginTop="8dp"
166 android:layout_width="wrap_content" 166 android:layout_width="wrap_content"
167 android:layout_height="wrap_content"/> 167 android:layout_height="wrap_content"/>
168 </LinearLayout> 168 </LinearLayout>
169 <LinearLayout 169 <LinearLayout
170 android:orientation="vertical" 170 android:orientation="vertical"
171 android:gravity="center" 171 android:gravity="center"
172 android:layout_width="0dp" 172 android:layout_width="0dp"
173 android:layout_height="match_parent" 173 android:layout_height="match_parent"
174 android:layout_weight="1"> 174 android:layout_weight="1">
175 <LinearLayout 175 <LinearLayout
176 android:paddingEnd="40dp" 176 android:paddingEnd="40dp"
177 android:gravity="center_vertical" 177 android:gravity="center_vertical"
178 android:layout_width="wrap_content" 178 android:layout_width="wrap_content"
179 android:layout_height="wrap_content"> 179 android:layout_height="wrap_content">
180 <ImageView 180 <ImageView
181 android:src="@drawable/png_ic_during" 181 android:src="@drawable/png_ic_during"
182 android:layout_marginEnd="10dp" 182 android:layout_marginEnd="10dp"
183 android:layout_width="14dp" 183 android:layout_width="14dp"
184 android:layout_height="13dp"/> 184 android:layout_height="13dp"/>
185 <TextView 185 <TextView
186 android:text="周期" 186 android:text="周期"
187 android:textSize="24sp" 187 android:textSize="24sp"
188 android:textColor="#333" 188 android:textColor="#333"
189 android:textStyle="bold" 189 android:textStyle="bold"
190 android:layout_width="wrap_content" 190 android:layout_width="wrap_content"
191 android:layout_height="wrap_content"/> 191 android:layout_height="wrap_content"/>
192 </LinearLayout> 192 </LinearLayout>
193 <TextView 193 <TextView
194 android:id="@+id/tvDate" 194 android:id="@+id/tvDate"
195 tools:text="2024.09.01-2024.09.30" 195 tools:text="2024.09.01-2024.09.30"
196 android:textSize="24sp" 196 android:textSize="24sp"
197 android:textColor="#3BC3B6" 197 android:textColor="#3BC3B6"
198 android:textStyle="bold" 198 android:textStyle="bold"
199 android:layout_marginTop="8dp" 199 android:layout_marginTop="8dp"
200 android:layout_width="wrap_content" 200 android:layout_width="wrap_content"
201 android:layout_height="wrap_content"/> 201 android:layout_height="wrap_content"/>
202 </LinearLayout> 202 </LinearLayout>
203 </LinearLayout> 203 </LinearLayout>
204 </LinearLayout> 204 </LinearLayout>
205 <Space 205 <Space
206 android:id="@+id/splitLine" 206 android:id="@+id/splitLine"
207 android:layout_width="match_parent" 207 android:layout_width="match_parent"
208 android:layout_height="0dp"/> 208 android:layout_height="0dp"/>
209 209
210 <HorizontalScrollView 210 <HorizontalScrollView
211 android:scrollbars="none" 211 android:scrollbars="none"
212 android:layout_marginTop="25dp" 212 android:layout_marginTop="25dp"
213 android:layout_marginHorizontal="16dp" 213 android:layout_marginHorizontal="16dp"
214 android:layout_width="match_parent" 214 android:layout_width="match_parent"
215 android:layout_height="match_parent"> 215 android:layout_height="match_parent">
216 <LinearLayout 216 <LinearLayout
217 android:orientation="horizontal" 217 android:orientation="horizontal"
218 android:layout_width="wrap_content" 218 android:layout_width="wrap_content"
219 android:layout_height="match_parent"> 219 android:layout_height="match_parent">
220 <LinearLayout 220 <LinearLayout
221 android:id="@+id/viewPointTotal"
221 android:orientation="vertical" 222 android:orientation="vertical"
222 android:background="@drawable/shape_radius_10" 223 android:background="@drawable/shape_radius_10"
223 android:backgroundTint="@color/white" 224 android:backgroundTint="@color/white"
224 android:padding="12dp" 225 android:padding="12dp"
225 android:layout_marginHorizontal="14dp" 226 android:layout_marginHorizontal="14dp"
226 android:layout_width="335dp" 227 android:layout_width="335dp"
227 android:layout_height="613dp"> 228 android:layout_height="613dp">
228 <TextView 229 <TextView
229 android:text="薄弱知识点总评" 230 android:text="知识点总评"
230 android:textSize="16sp" 231 android:textSize="16sp"
231 android:textColor="#333333" 232 android:textColor="#333333"
232 android:textStyle="bold" 233 android:textStyle="bold"
233 android:background="@drawable/bg_hy_weak_title" 234 android:background="@drawable/bg_hy_weak_title"
234 android:paddingStart="20dp" 235 android:paddingStart="20dp"
235 android:paddingEnd="4dp" 236 android:paddingEnd="4dp"
236 android:layout_marginTop="8dp" 237 android:layout_marginTop="8dp"
237 android:layout_gravity="center_horizontal" 238 android:layout_gravity="center_horizontal"
238 android:layout_width="wrap_content" 239 android:layout_width="wrap_content"
239 android:layout_height="wrap_content"/> 240 android:layout_height="wrap_content"/>
240 <LinearLayout 241 <LinearLayout
241 android:orientation="vertical" 242 android:orientation="vertical"
242 android:layout_marginTop="40dp" 243 android:layout_marginTop="40dp"
243 android:layout_width="match_parent" 244 android:layout_width="match_parent"
244 android:layout_height="wrap_content"> 245 android:layout_height="wrap_content">
245 <TextView 246 <TextView
246 android:text="学习前" 247 android:text="学习前"
247 android:textSize="12sp" 248 android:textSize="12sp"
248 android:textColor="#333" 249 android:textColor="#333"
249 android:layout_gravity="center_horizontal" 250 android:layout_gravity="center_horizontal"
250 android:layout_width="wrap_content" 251 android:layout_width="wrap_content"
251 android:layout_height="wrap_content"/> 252 android:layout_height="wrap_content"/>
252 <FrameLayout 253 <FrameLayout
253 android:background="@drawable/png_huyou_progress_bg" 254 android:background="@drawable/png_huyou_progress_bg"
254 android:padding="10dp" 255 android:padding="10dp"
255 android:layout_gravity="center_horizontal" 256 android:layout_gravity="center_horizontal"
256 android:layout_marginTop="16dp" 257 android:layout_marginTop="16dp"
257 android:layout_width="172dp" 258 android:layout_width="172dp"
258 android:layout_height="172dp"> 259 android:layout_height="172dp">
259 <com.littlejie.circleprogress.CircleProgress 260 <com.littlejie.circleprogress.CircleProgress
260 android:id="@+id/cpBefore" 261 android:id="@+id/cpBefore"
261 app:arcWidth="20dp" 262 app:arcWidth="20dp"
262 app:bgArcWidth="20dp" 263 app:bgArcWidth="20dp"
263 app:arcColors="#F36A27" 264 app:arcColors="#F36A27"
264 app:bgArcColor="#FFF1EA" 265 app:bgArcColor="#FFF1EA"
265 app:startAngle="-90" 266 app:startAngle="-90"
266 app:sweepAngle="360" 267 app:sweepAngle="360"
267 app:maxValue="100" 268 app:maxValue="100"
268 app:value="0" 269 app:value="0"
269 app:hintColor="@color/transparent" 270 app:hintColor="@color/transparent"
270 app:unitColor="@color/transparent" 271 app:unitColor="@color/transparent"
271 app:valueColor="@color/transparent" 272 app:valueColor="@color/transparent"
272 android:layout_width="match_parent" 273 android:layout_width="match_parent"
273 android:layout_height="match_parent"/> 274 android:layout_height="match_parent"/>
274 <LinearLayout 275 <LinearLayout
275 android:orientation="vertical" 276 android:orientation="vertical"
276 android:gravity="center_horizontal" 277 android:gravity="center_horizontal"
277 android:layout_gravity="center" 278 android:layout_gravity="center"
278 android:layout_width="wrap_content" 279 android:layout_width="wrap_content"
279 android:layout_height="wrap_content"> 280 android:layout_height="wrap_content">
280 <LinearLayout 281 <LinearLayout
281 android:layout_width="wrap_content" 282 android:layout_width="wrap_content"
282 android:layout_height="wrap_content"> 283 android:layout_height="wrap_content">
283 <TextView 284 <TextView
284 android:id="@+id/pgBefore" 285 android:id="@+id/pgBefore"
285 tools:text="88" 286 tools:text="88"
286 android:textSize="34sp" 287 android:textSize="34sp"
287 android:textColor="#EA5127" 288 android:textColor="#EA5127"
288 android:textStyle="bold" 289 android:textStyle="bold"
289 android:layout_width="wrap_content" 290 android:layout_width="wrap_content"
290 android:layout_height="wrap_content"/> 291 android:layout_height="wrap_content"/>
291 <TextView 292 <TextView
292 android:text="%" 293 android:text="%"
293 android:textSize="16sp" 294 android:textSize="16sp"
294 android:textColor="#EA5127" 295 android:textColor="#EA5127"
295 android:layout_width="wrap_content" 296 android:layout_width="wrap_content"
296 android:layout_height="wrap_content"/> 297 android:layout_height="wrap_content"/>
297 </LinearLayout> 298 </LinearLayout>
298 <TextView 299 <TextView
299 android:text="整体掌握程度" 300 android:text="整体掌握程度"
300 android:textSize="14sp" 301 android:textSize="14sp"
301 android:textColor="#333" 302 android:textColor="#333"
302 android:textStyle="bold" 303 android:textStyle="bold"
303 android:layout_marginTop="-2dp" 304 android:layout_marginTop="-2dp"
304 android:layout_width="wrap_content" 305 android:layout_width="wrap_content"
305 android:layout_height="wrap_content"/> 306 android:layout_height="wrap_content"/>
306 </LinearLayout> 307 </LinearLayout>
307 </FrameLayout> 308 </FrameLayout>
308 </LinearLayout> 309 </LinearLayout>
309 <LinearLayout 310 <LinearLayout
310 android:orientation="vertical" 311 android:orientation="vertical"
311 android:layout_marginTop="20dp" 312 android:layout_marginTop="20dp"
312 android:layout_width="match_parent" 313 android:layout_width="match_parent"
313 android:layout_height="wrap_content"> 314 android:layout_height="wrap_content">
314 <TextView 315 <TextView
315 android:text="学习后" 316 android:text="学习后"
316 android:textSize="12sp" 317 android:textSize="12sp"
317 android:textColor="#333" 318 android:textColor="#333"
318 android:layout_gravity="center_horizontal" 319 android:layout_gravity="center_horizontal"
319 android:layout_width="wrap_content" 320 android:layout_width="wrap_content"
320 android:layout_height="wrap_content"/> 321 android:layout_height="wrap_content"/>
321 <FrameLayout 322 <FrameLayout
322 android:background="@drawable/png_huyou_progress_bg" 323 android:background="@drawable/png_huyou_progress_bg"
323 android:padding="10dp" 324 android:padding="10dp"
324 android:layout_gravity="center_horizontal" 325 android:layout_gravity="center_horizontal"
325 android:layout_marginTop="16dp" 326 android:layout_marginTop="16dp"
326 android:layout_width="172dp" 327 android:layout_width="172dp"
327 android:layout_height="172dp"> 328 android:layout_height="172dp">
328 <com.littlejie.circleprogress.CircleProgress 329 <com.littlejie.circleprogress.CircleProgress
329 android:id="@+id/cpAfter" 330 android:id="@+id/cpAfter"
330 app:arcWidth="20dp" 331 app:arcWidth="20dp"
331 app:bgArcWidth="20dp" 332 app:bgArcWidth="20dp"
332 app:arcColors="#3BC3B6" 333 app:arcColors="#3BC3B6"
333 app:bgArcColor="#C2FCF6" 334 app:bgArcColor="#C2FCF6"
334 app:startAngle="-90" 335 app:startAngle="-90"
335 app:sweepAngle="360" 336 app:sweepAngle="360"
336 app:maxValue="100" 337 app:maxValue="100"
337 app:value="0" 338 app:value="0"
338 app:hintColor="@color/transparent" 339 app:hintColor="@color/transparent"
339 app:unitColor="@color/transparent" 340 app:unitColor="@color/transparent"
340 app:valueColor="@color/transparent" 341 app:valueColor="@color/transparent"
341 android:layout_width="match_parent" 342 android:layout_width="match_parent"
342 android:layout_height="match_parent"/> 343 android:layout_height="match_parent"/>
343 <LinearLayout 344 <LinearLayout
344 android:orientation="vertical" 345 android:orientation="vertical"
345 android:gravity="center_horizontal" 346 android:gravity="center_horizontal"
346 android:layout_gravity="center" 347 android:layout_gravity="center"
347 android:layout_width="wrap_content" 348 android:layout_width="wrap_content"
348 android:layout_height="wrap_content"> 349 android:layout_height="wrap_content">
349 <LinearLayout 350 <LinearLayout
350 android:layout_width="wrap_content" 351 android:layout_width="wrap_content"
351 android:layout_height="wrap_content"> 352 android:layout_height="wrap_content">
352 <TextView 353 <TextView
353 android:id="@+id/pgAfter" 354 android:id="@+id/pgAfter"
354 tools:text="88" 355 tools:text="88"
355 android:textSize="34sp" 356 android:textSize="34sp"
356 android:textColor="#3BC3B6" 357 android:textColor="#3BC3B6"
357 android:textStyle="bold" 358 android:textStyle="bold"
358 android:layout_width="wrap_content" 359 android:layout_width="wrap_content"
359 android:layout_height="wrap_content"/> 360 android:layout_height="wrap_content"/>
360 <TextView 361 <TextView
361 android:text="%" 362 android:text="%"
362 android:textSize="16sp" 363 android:textSize="16sp"
363 android:textColor="#3BC3B6" 364 android:textColor="#3BC3B6"
364 android:layout_width="wrap_content" 365 android:layout_width="wrap_content"
365 android:layout_height="wrap_content"/> 366 android:layout_height="wrap_content"/>
366 </LinearLayout> 367 </LinearLayout>
367 <TextView 368 <TextView
368 android:text="整体掌握程度" 369 android:text="整体掌握程度"
369 android:textSize="14sp" 370 android:textSize="14sp"
370 android:textColor="#333" 371 android:textColor="#333"
371 android:textStyle="bold" 372 android:textStyle="bold"
372 android:layout_marginTop="-2dp" 373 android:layout_marginTop="-2dp"
373 android:layout_width="wrap_content" 374 android:layout_width="wrap_content"
374 android:layout_height="wrap_content"/> 375 android:layout_height="wrap_content"/>
375 </LinearLayout> 376 </LinearLayout>
376 </FrameLayout> 377 </FrameLayout>
377 </LinearLayout> 378 </LinearLayout>
378 379
379 <FrameLayout 380 <FrameLayout
380 android:layout_marginTop="10dp" 381 android:layout_marginTop="10dp"
381 android:layout_width="match_parent" 382 android:layout_width="match_parent"
382 android:layout_height="wrap_content"> 383 android:layout_height="wrap_content">
383 <ImageView 384 <ImageView
384 android:src="@drawable/png_hy_weak_comment" 385 android:src="@drawable/png_hy_weak_comment"
385 android:layout_width="16dp" 386 android:layout_width="16dp"
386 android:layout_height="18dp"/> 387 android:layout_height="18dp"/>
387 <TextView 388 <TextView
388 android:id="@+id/tvWeakRate" 389 android:id="@+id/tvWeakRate"
389 android:textSize="14sp" 390 android:textSize="14sp"
390 android:textColor="#333" 391 android:textColor="#333"
391 android:layout_marginTop="1dp" 392 android:layout_marginTop="1dp"
392 android:lineSpacingMultiplier="1.3" 393 android:lineSpacingMultiplier="1.3"
393 android:layout_width="wrap_content" 394 android:layout_width="wrap_content"
394 android:layout_height="wrap_content"/> 395 android:layout_height="wrap_content"/>
395 </FrameLayout> 396 </FrameLayout>
396 </LinearLayout> 397 </LinearLayout>
397 398
398 <LinearLayout 399 <LinearLayout
399 android:orientation="vertical" 400 android:orientation="vertical"
400 android:background="@drawable/shape_radius_10" 401 android:background="@drawable/shape_radius_10"
401 android:backgroundTint="@color/white" 402 android:backgroundTint="@color/white"
402 android:padding="12dp" 403 android:padding="12dp"
403 android:layout_marginHorizontal="14dp" 404 android:layout_marginHorizontal="14dp"
404 android:layout_width="335dp" 405 android:layout_width="335dp"
405 android:layout_height="613dp"> 406 android:layout_height="613dp">
406 407
407 <TextView 408 <TextView
408 android:text="作业概括" 409 android:text="作业概括"
409 android:textSize="16sp" 410 android:textSize="16sp"
410 android:textColor="#333333" 411 android:textColor="#333333"
411 android:textStyle="bold" 412 android:textStyle="bold"
412 android:background="@drawable/bg_hy_summary_title" 413 android:background="@drawable/bg_hy_summary_title"
413 android:paddingStart="28dp" 414 android:paddingStart="28dp"
414 android:paddingEnd="4dp" 415 android:paddingEnd="4dp"
415 android:layout_marginTop="8dp" 416 android:layout_marginTop="8dp"
416 android:layout_gravity="center_horizontal" 417 android:layout_gravity="center_horizontal"
417 android:layout_width="wrap_content" 418 android:layout_width="wrap_content"
418 android:layout_height="wrap_content"/> 419 android:layout_height="wrap_content"/>
419 <LinearLayout 420 <LinearLayout
420 android:orientation="horizontal" 421 android:orientation="horizontal"
421 android:background="@drawable/shape_radius_5" 422 android:background="@drawable/shape_radius_5"
422 android:backgroundTint="#F4FAFF" 423 android:backgroundTint="#F4FAFF"
423 android:layout_width="match_parent" 424 android:layout_width="match_parent"
424 android:layout_height="58dp" 425 android:layout_height="58dp"
425 android:layout_marginTop="40dp"> 426 android:layout_marginTop="40dp">
426 <LinearLayout 427 <LinearLayout
427 android:orientation="vertical" 428 android:orientation="vertical"
428 android:gravity="center" 429 android:gravity="center"
429 android:layout_width="0dp" 430 android:layout_width="0dp"
430 android:layout_height="match_parent" 431 android:layout_height="match_parent"
431 android:layout_weight="1"> 432 android:layout_weight="1">
432 <LinearLayout 433 <LinearLayout
433 android:orientation="horizontal" 434 android:orientation="horizontal"
434 android:gravity="center_vertical" 435 android:gravity="center_vertical"
435 android:layout_width="wrap_content" 436 android:layout_width="wrap_content"
436 android:layout_height="wrap_content"> 437 android:layout_height="wrap_content">
437 <ImageView 438 <ImageView
438 android:src="@drawable/png_icon_statistical_accuracy" 439 android:src="@drawable/png_icon_statistical_accuracy"
439 android:layout_width="12dp" 440 android:layout_width="12dp"
440 android:layout_height="13dp"/> 441 android:layout_height="13dp"/>
441 <TextView 442 <TextView
442 android:text="作业正确率" 443 android:text="作业正确率"
443 android:textSize="11sp" 444 android:textSize="11sp"
444 android:textColor="#333" 445 android:textColor="#333"
445 android:textStyle="bold" 446 android:textStyle="bold"
446 android:layout_marginStart="5dp" 447 android:layout_marginStart="5dp"
447 android:layout_width="wrap_content" 448 android:layout_width="wrap_content"
448 android:layout_height="wrap_content"/> 449 android:layout_height="wrap_content"/>
449 </LinearLayout> 450 </LinearLayout>
450 <LinearLayout 451 <LinearLayout
451 android:orientation="horizontal" 452 android:orientation="horizontal"
452 android:layout_marginTop="8dp" 453 android:layout_marginTop="8dp"
453 android:layout_width="wrap_content" 454 android:layout_width="wrap_content"
454 android:layout_height="wrap_content"> 455 android:layout_height="wrap_content">
455 <TextView 456 <TextView
456 android:id="@+id/tvTotalRate" 457 android:id="@+id/tvTotalRate"
457 tools:text="88" 458 tools:text="88"
458 android:textSize="14sp" 459 android:textSize="14sp"
459 android:textColor="#3BC3B6" 460 android:textColor="#3BC3B6"
460 android:textStyle="bold" 461 android:textStyle="bold"
461 android:layout_width="wrap_content" 462 android:layout_width="wrap_content"
462 android:layout_height="wrap_content"/> 463 android:layout_height="wrap_content"/>
463 <TextView 464 <TextView
464 android:text="%" 465 android:text="%"
465 android:textSize="9sp" 466 android:textSize="9sp"
466 android:textColor="#3BC3B6" 467 android:textColor="#3BC3B6"
467 android:textStyle="bold" 468 android:textStyle="bold"
468 android:layout_width="wrap_content" 469 android:layout_width="wrap_content"
469 android:layout_height="wrap_content"/> 470 android:layout_height="wrap_content"/>
470 </LinearLayout> 471 </LinearLayout>
471 </LinearLayout> 472 </LinearLayout>
472 <View
473 android:background="#9ECAFC"
474 android:layout_marginVertical="8dp"
475 android:layout_width="1dp"
476 android:layout_height="match_parent"/>
477 <LinearLayout 473 <LinearLayout
478 android:orientation="vertical" 474 android:orientation="vertical"
479 android:gravity="center" 475 android:gravity="center"
480 android:layout_width="0dp" 476 android:layout_width="0dp"
481 android:layout_height="match_parent" 477 android:layout_height="match_parent"
482 android:layout_weight="1"> 478 android:layout_weight="1">
483 <LinearLayout 479 <LinearLayout
484 android:orientation="horizontal" 480 android:orientation="horizontal"
485 android:gravity="center_vertical" 481 android:gravity="center_vertical"
486 android:layout_width="wrap_content" 482 android:layout_width="wrap_content"
487 android:layout_height="wrap_content"> 483 android:layout_height="wrap_content">
488 <ImageView 484 <ImageView
489 android:src="@drawable/png_icon_statistical_accuracy" 485 android:src="@drawable/png_icon_statistical_correct"
490 android:layout_width="12dp" 486 android:layout_width="12dp"
491 android:layout_height="13dp"/> 487 android:layout_height="13dp"/>
492 <TextView 488 <TextView
493 android:text="答对题数" 489 android:text="答对题数"
494 android:textSize="11sp" 490 android:textSize="11sp"
495 android:textColor="#333" 491 android:textColor="#333"
496 android:textStyle="bold" 492 android:textStyle="bold"
497 android:layout_marginStart="5dp" 493 android:layout_marginStart="5dp"
498 android:layout_width="wrap_content" 494 android:layout_width="wrap_content"
499 android:layout_height="wrap_content"/> 495 android:layout_height="wrap_content"/>
500 </LinearLayout> 496 </LinearLayout>
501 <LinearLayout 497 <LinearLayout
502 android:orientation="horizontal" 498 android:orientation="horizontal"
503 android:layout_marginTop="8dp" 499 android:layout_marginTop="8dp"
504 android:layout_width="wrap_content" 500 android:layout_width="wrap_content"
505 android:layout_height="wrap_content"> 501 android:layout_height="wrap_content">
506 <TextView 502 <TextView
507 android:id="@+id/tvTotalCorrect" 503 android:id="@+id/tvTotalCorrect"
508 tools:text="88" 504 tools:text="88"
509 android:textSize="14sp" 505 android:textSize="14sp"
510 android:textColor="#3BC3B6" 506 android:textColor="#3BC3B6"
511 android:textStyle="bold" 507 android:textStyle="bold"
512 android:layout_width="wrap_content" 508 android:layout_width="wrap_content"
513 android:layout_height="wrap_content"/> 509 android:layout_height="wrap_content"/>
514 <TextView 510 <TextView
515 android:text="道" 511 android:text="道"
516 android:textSize="9sp" 512 android:textSize="9sp"
517 android:textColor="#3BC3B6" 513 android:textColor="#3BC3B6"
518 android:textStyle="bold" 514 android:textStyle="bold"
519 android:layout_width="wrap_content" 515 android:layout_width="wrap_content"
520 android:layout_height="wrap_content"/> 516 android:layout_height="wrap_content"/>
521 </LinearLayout> 517 </LinearLayout>
522 </LinearLayout> 518 </LinearLayout>
523 <View
524 android:background="#9ECAFC"
525 android:layout_marginVertical="8dp"
526 android:layout_width="1dp"
527 android:layout_height="match_parent"/>
528 <LinearLayout 519 <LinearLayout
529 android:orientation="vertical" 520 android:orientation="vertical"
530 android:gravity="center" 521 android:gravity="center"
531 android:layout_width="0dp" 522 android:layout_width="0dp"
532 android:layout_height="match_parent" 523 android:layout_height="match_parent"
533 android:layout_weight="1"> 524 android:layout_weight="1">
534 <LinearLayout 525 <LinearLayout
535 android:orientation="horizontal" 526 android:orientation="horizontal"
536 android:gravity="center_vertical" 527 android:gravity="center_vertical"
537 android:layout_width="wrap_content" 528 android:layout_width="wrap_content"
538 android:layout_height="wrap_content"> 529 android:layout_height="wrap_content">
539 <ImageView 530 <ImageView
540 android:src="@drawable/png_icon_statistical_accuracy" 531 android:src="@drawable/png_icon_statistical_error"
541 android:layout_width="12dp" 532 android:layout_width="12dp"
542 android:layout_height="13dp"/> 533 android:layout_height="13dp"/>
543 <TextView 534 <TextView
544 android:text="答错题数" 535 android:text="答错题数"
545 android:textSize="11sp" 536 android:textSize="11sp"
546 android:textColor="#333" 537 android:textColor="#333"
547 android:textStyle="bold" 538 android:textStyle="bold"
548 android:layout_marginStart="5dp" 539 android:layout_marginStart="5dp"
549 android:layout_width="wrap_content" 540 android:layout_width="wrap_content"
550 android:layout_height="wrap_content"/> 541 android:layout_height="wrap_content"/>
551 </LinearLayout> 542 </LinearLayout>
552 <LinearLayout 543 <LinearLayout
553 android:orientation="horizontal" 544 android:orientation="horizontal"
554 android:layout_marginTop="8dp" 545 android:layout_marginTop="8dp"
555 android:layout_width="wrap_content" 546 android:layout_width="wrap_content"
556 android:layout_height="wrap_content"> 547 android:layout_height="wrap_content">
557 <TextView 548 <TextView
558 android:id="@+id/tvTotalError" 549 android:id="@+id/tvTotalError"
559 tools:text="88" 550 tools:text="88"
560 android:textSize="14sp" 551 android:textSize="14sp"
561 android:textColor="#3BC3B6" 552 android:textColor="#3BC3B6"
562 android:textStyle="bold" 553 android:textStyle="bold"
563 android:layout_width="wrap_content" 554 android:layout_width="wrap_content"
564 android:layout_height="wrap_content"/> 555 android:layout_height="wrap_content"/>
565 <TextView 556 <TextView
566 android:text="道" 557 android:text="道"
567 android:textSize="9sp" 558 android:textSize="9sp"
568 android:textColor="#3BC3B6" 559 android:textColor="#3BC3B6"
569 android:textStyle="bold" 560 android:textStyle="bold"
570 android:layout_width="wrap_content" 561 android:layout_width="wrap_content"
571 android:layout_height="wrap_content"/> 562 android:layout_height="wrap_content"/>
572 </LinearLayout> 563 </LinearLayout>
573 </LinearLayout> 564 </LinearLayout>
565 <LinearLayout
566 android:orientation="vertical"
567 android:gravity="center"
568 android:layout_width="0dp"
569 android:layout_height="match_parent"
570 android:layout_weight="1">
571 <LinearLayout
572 android:orientation="horizontal"
573 android:gravity="center_vertical"
574 android:layout_width="wrap_content"
575 android:layout_height="wrap_content">
576 <ImageView
577 android:src="@drawable/png_icon_daily_blank"
578 android:layout_width="12dp"
579 android:layout_height="13dp"/>
580 <TextView
581 android:text="未做题数"
582 android:textSize="11sp"
583 android:textColor="#333"
584 android:textStyle="bold"
585 android:layout_marginStart="5dp"
586 android:layout_width="wrap_content"
587 android:layout_height="wrap_content"/>
588 </LinearLayout>
589 <LinearLayout
590 android:orientation="horizontal"
591 android:layout_marginTop="8dp"
592 android:layout_width="wrap_content"
593 android:layout_height="wrap_content">
594 <TextView
595 android:id="@+id/tvTotalBlank"
596 tools:text="88"
597 android:textSize="14sp"
598 android:textColor="#3BC3B6"
599 android:textStyle="bold"
600 android:layout_width="wrap_content"
601 android:layout_height="wrap_content"/>
602 <TextView
603 android:text="道"
604 android:textSize="9sp"
605 android:textColor="#3BC3B6"
606 android:textStyle="bold"
607 android:layout_width="wrap_content"
608 android:layout_height="wrap_content"/>
609 </LinearLayout>
610 </LinearLayout>
574 </LinearLayout> 611 </LinearLayout>
575 612
576 <TextView 613 <TextView
577 android:text="每日作业正确率" 614 android:text="每日作业正确率"
578 android:textSize="13sp" 615 android:textSize="13sp"
579 android:textColor="#333" 616 android:textColor="#333"
580 android:textStyle="bold" 617 android:textStyle="bold"
581 android:layout_gravity="center_horizontal" 618 android:layout_gravity="center_horizontal"
582 android:layout_marginTop="68dp" 619 android:layout_marginTop="68dp"
583 android:layout_width="wrap_content" 620 android:layout_width="wrap_content"
584 android:layout_height="wrap_content"/> 621 android:layout_height="wrap_content"/>
585 <com.github.mikephil.charting.charts.LineChart 622 <com.github.mikephil.charting.charts.LineChart
586 android:id="@+id/lineChart" 623 android:id="@+id/lineChart"
587 android:layout_width="match_parent" 624 android:layout_width="match_parent"
588 android:layout_height="220dp"/> 625 android:layout_height="220dp"/>
589 <Space style="@style/empty_space"/> 626 <Space style="@style/empty_space"/>
590 <FrameLayout 627 <FrameLayout
591 android:layout_width="match_parent" 628 android:layout_width="match_parent"
592 android:layout_height="wrap_content"> 629 android:layout_height="wrap_content">
593 <ImageView 630 <ImageView
594 android:src="@drawable/png_hy_summary_comment" 631 android:src="@drawable/png_hy_summary_comment"
595 android:layout_width="16dp" 632 android:layout_width="16dp"
596 android:layout_height="20dp"/> 633 android:layout_height="20dp"/>
597 <TextView 634 <TextView
598 android:id="@+id/tvRating" 635 android:id="@+id/tvRating"
599 android:textSize="14sp" 636 android:textSize="14sp"
600 android:textColor="#333" 637 android:textColor="#333"
601 android:lineSpacingMultiplier="1.3" 638 android:lineSpacingMultiplier="1.3"
602 android:layout_marginTop="2dp" 639 android:layout_marginTop="2dp"
603 android:layout_width="match_parent" 640 android:layout_width="match_parent"
604 android:layout_height="wrap_content"/> 641 android:layout_height="wrap_content"/>
605 </FrameLayout> 642 </FrameLayout>
606 </LinearLayout> 643 </LinearLayout>
607 644
608 <LinearLayout 645 <LinearLayout
609 android:orientation="vertical" 646 android:orientation="vertical"
610 android:background="@drawable/shape_radius_10" 647 android:background="@drawable/shape_radius_10"
611 android:backgroundTint="@color/white" 648 android:backgroundTint="@color/white"
612 android:padding="12dp" 649 android:padding="12dp"
613 android:layout_marginHorizontal="14dp" 650 android:layout_marginHorizontal="14dp"
614 android:layout_width="335dp" 651 android:layout_width="335dp"
615 android:layout_height="472dp"> 652 android:layout_height="472dp">
616 <TextView 653 <TextView
617 android:text="知识点掌握情况" 654 android:text="知识点掌握情况"
618 android:textSize="16sp" 655 android:textSize="16sp"
619 android:textColor="#333333" 656 android:textColor="#333333"
620 android:textStyle="bold" 657 android:textStyle="bold"
621 android:background="@drawable/bg_hy_point_title" 658 android:background="@drawable/bg_hy_point_title"
622 android:paddingStart="28dp" 659 android:paddingStart="28dp"
623 android:paddingEnd="4dp" 660 android:paddingEnd="4dp"
624 android:layout_marginTop="8dp" 661 android:layout_marginTop="8dp"
625 android:layout_gravity="center_horizontal" 662 android:layout_gravity="center_horizontal"
626 android:layout_width="wrap_content" 663 android:layout_width="wrap_content"
627 android:layout_height="wrap_content"/> 664 android:layout_height="wrap_content"/>
628 665
629 <LinearLayout 666 <LinearLayout
630 android:orientation="horizontal" 667 android:orientation="horizontal"
631 android:layout_width="match_parent" 668 android:layout_width="match_parent"
632 android:layout_height="70dp" 669 android:layout_height="70dp"
633 android:layout_marginTop="48dp"> 670 android:layout_marginTop="48dp"
671 android:baselineAligned="false">
634 <LinearLayout 672 <LinearLayout
635 android:orientation="vertical" 673 android:orientation="vertical"
636 android:background="@drawable/shape_radius_10" 674 android:background="@drawable/shape_radius_10"
637 android:backgroundTint="#F4FAFF" 675 android:backgroundTint="#F4FAFF"
638 android:gravity="center_horizontal" 676 android:gravity="center_horizontal"
639 android:paddingTop="8dp" 677 android:paddingTop="8dp"
640 android:layout_width="0dp" 678 android:layout_width="0dp"
641 android:layout_height="match_parent" 679 android:layout_height="match_parent"
642 android:layout_weight="1"> 680 android:layout_weight="1">
643 <ImageView 681 <ImageView
644 android:src="@drawable/png_ic_excellent" 682 android:src="@drawable/png_ic_excellent"
645 android:backgroundTint="#3BC3B6" 683 android:backgroundTint="#3BC3B6"
646 android:background="@drawable/bg_circle" 684 android:background="@drawable/bg_circle"
647 android:padding="4dp" 685 android:padding="4dp"
648 android:layout_width="20dp" 686 android:layout_width="20dp"
649 android:layout_height="20dp"/> 687 android:layout_height="20dp"/>
650 <TextView 688 <TextView
651 android:id="@+id/tvExcellent" 689 android:id="@+id/tvExcellent"
652 android:text="-" 690 android:text="-"
653 android:textColor="#3BC3B6" 691 android:textColor="#3BC3B6"
654 android:textSize="13sp" 692 android:textSize="13sp"
655 android:textStyle="bold" 693 android:textStyle="bold"
656 android:layout_marginTop="4dp" 694 android:layout_marginTop="4dp"
657 android:layout_width="wrap_content" 695 android:layout_width="wrap_content"
658 android:layout_height="wrap_content"/> 696 android:layout_height="wrap_content"/>
659 <TextView 697 <TextView
660 android:text="掌握优秀" 698 android:text="掌握优秀"
661 android:textSize="10sp" 699 android:textSize="10sp"
662 android:textColor="#333" 700 android:textColor="#333"
663 android:textStyle="bold" 701 android:textStyle="bold"
664 android:layout_width="wrap_content" 702 android:layout_width="wrap_content"
665 android:layout_height="wrap_content"/> 703 android:layout_height="wrap_content"/>
666 </LinearLayout> 704 </LinearLayout>
667 <LinearLayout 705 <LinearLayout
668 android:orientation="vertical" 706 android:orientation="vertical"
669 android:background="@drawable/shape_radius_10" 707 android:background="@drawable/shape_radius_10"
670 android:backgroundTint="#F4FAFF" 708 android:backgroundTint="#F4FAFF"
671 android:gravity="center_horizontal" 709 android:gravity="center_horizontal"
672 android:paddingTop="8dp" 710 android:paddingTop="8dp"
673 android:layout_marginStart="14dp" 711 android:layout_marginStart="14dp"
674 android:layout_width="0dp" 712 android:layout_width="0dp"
675 android:layout_height="match_parent" 713 android:layout_height="match_parent"
676 android:layout_weight="1"> 714 android:layout_weight="1">
677 <ImageView 715 <ImageView
678 android:src="@drawable/png_ic_good" 716 android:src="@drawable/png_ic_good"
679 android:backgroundTint="#489AFA" 717 android:backgroundTint="#489AFA"
680 android:background="@drawable/bg_circle" 718 android:background="@drawable/bg_circle"
681 android:padding="4dp" 719 android:padding="4dp"
682 android:layout_width="20dp" 720 android:layout_width="20dp"
683 android:layout_height="20dp"/> 721 android:layout_height="20dp"/>
684 <TextView 722 <TextView
685 android:id="@+id/tvGood" 723 android:id="@+id/tvGood"
686 android:text="-" 724 android:text="-"
687 android:textColor="#489AFA" 725 android:textColor="#489AFA"
688 android:textSize="13sp" 726 android:textSize="13sp"
689 android:textStyle="bold" 727 android:textStyle="bold"
690 android:layout_marginTop="4dp" 728 android:layout_marginTop="4dp"
691 android:layout_width="wrap_content" 729 android:layout_width="wrap_content"
692 android:layout_height="wrap_content"/> 730 android:layout_height="wrap_content"/>
693 <TextView 731 <TextView
694 android:text="掌握良好" 732 android:text="掌握良好"
695 android:textSize="10sp" 733 android:textSize="10sp"
696 android:textColor="#333" 734 android:textColor="#333"
697 android:textStyle="bold" 735 android:textStyle="bold"
698 android:layout_width="wrap_content" 736 android:layout_width="wrap_content"
699 android:layout_height="wrap_content"/> 737 android:layout_height="wrap_content"/>
700 </LinearLayout> 738 </LinearLayout>
701 <LinearLayout 739 <LinearLayout
702 android:orientation="vertical" 740 android:orientation="vertical"
703 android:background="@drawable/shape_radius_10" 741 android:background="@drawable/shape_radius_10"
704 android:backgroundTint="#F4FAFF" 742 android:backgroundTint="#F4FAFF"
705 android:gravity="center_horizontal" 743 android:gravity="center_horizontal"
706 android:paddingTop="8dp" 744 android:paddingTop="8dp"
707 android:layout_marginStart="14dp" 745 android:layout_marginStart="14dp"
708 android:layout_width="0dp" 746 android:layout_width="0dp"
709 android:layout_height="match_parent" 747 android:layout_height="match_parent"
710 android:layout_weight="1"> 748 android:layout_weight="1">
711 <ImageView 749 <ImageView
712 android:src="@drawable/png_ic_normal" 750 android:src="@drawable/png_ic_normal"
713 android:backgroundTint="#F58725" 751 android:backgroundTint="#F58725"
714 android:background="@drawable/bg_circle" 752 android:background="@drawable/bg_circle"
715 android:padding="4dp" 753 android:padding="4dp"
716 android:layout_width="20dp" 754 android:layout_width="20dp"
717 android:layout_height="20dp"/> 755 android:layout_height="20dp"/>
718 <TextView 756 <TextView
719 android:id="@+id/tvNormal" 757 android:id="@+id/tvNormal"
720 android:text="-" 758 android:text="-"
721 android:textColor="#F58725" 759 android:textColor="#F58725"
722 android:textSize="13sp" 760 android:textSize="13sp"
723 android:textStyle="bold" 761 android:textStyle="bold"
724 android:layout_marginTop="4dp" 762 android:layout_marginTop="4dp"
725 android:layout_width="wrap_content" 763 android:layout_width="wrap_content"
726 android:layout_height="wrap_content"/> 764 android:layout_height="wrap_content"/>
727 <TextView 765 <TextView
728 android:text="掌握一般" 766 android:text="掌握一般"
729 android:textSize="10sp" 767 android:textSize="10sp"
730 android:textColor="#333" 768 android:textColor="#333"
731 android:textStyle="bold" 769 android:textStyle="bold"
732 android:layout_width="wrap_content" 770 android:layout_width="wrap_content"
733 android:layout_height="wrap_content"/> 771 android:layout_height="wrap_content"/>
734 </LinearLayout> 772 </LinearLayout>
735 <LinearLayout 773 <LinearLayout
736 android:orientation="vertical" 774 android:orientation="vertical"
737 android:background="@drawable/shape_radius_10" 775 android:background="@drawable/shape_radius_10"
738 android:backgroundTint="#F4FAFF" 776 android:backgroundTint="#F4FAFF"
739 android:gravity="center_horizontal" 777 android:gravity="center_horizontal"
740 android:paddingTop="8dp" 778 android:paddingTop="8dp"
741 android:layout_marginStart="14dp" 779 android:layout_marginStart="14dp"
742 android:layout_width="0dp" 780 android:layout_width="0dp"
743 android:layout_height="match_parent" 781 android:layout_height="match_parent"
744 android:layout_weight="1"> 782 android:layout_weight="1">
745 <ImageView 783 <ImageView
746 android:src="@drawable/png_ic_weak" 784 android:src="@drawable/png_ic_weak"
747 android:backgroundTint="#EA5127" 785 android:backgroundTint="#EA5127"
748 android:background="@drawable/bg_circle" 786 android:background="@drawable/bg_circle"
749 android:padding="4dp" 787 android:padding="4dp"
750 android:layout_width="20dp" 788 android:layout_width="20dp"
751 android:layout_height="20dp"/> 789 android:layout_height="20dp"/>
752 <TextView 790 <TextView
753 android:id="@+id/tvWeak" 791 android:id="@+id/tvWeak"
754 android:text="-" 792 android:text="-"
755 android:textColor="#EA5127" 793 android:textColor="#EA5127"
756 android:textSize="13sp" 794 android:textSize="13sp"
757 android:textStyle="bold" 795 android:textStyle="bold"
758 android:layout_marginTop="4dp" 796 android:layout_marginTop="4dp"
759 android:layout_width="wrap_content" 797 android:layout_width="wrap_content"
760 android:layout_height="wrap_content"/> 798 android:layout_height="wrap_content"/>
761 <TextView 799 <TextView
762 android:text="掌握薄弱" 800 android:text="掌握薄弱"
763 android:textSize="10sp" 801 android:textSize="10sp"
764 android:textColor="#333" 802 android:textColor="#333"
765 android:textStyle="bold" 803 android:textStyle="bold"
766 android:layout_width="wrap_content" 804 android:layout_width="wrap_content"
767 android:layout_height="wrap_content"/> 805 android:layout_height="wrap_content"/>
768 </LinearLayout> 806 </LinearLayout>
769 </LinearLayout> 807 </LinearLayout>
770 808
771 <FrameLayout 809 <FrameLayout
772 android:layout_gravity="center_horizontal" 810 android:layout_gravity="center_horizontal"
773 android:layout_marginTop="36dp" 811 android:layout_marginTop="36dp"
774 android:layout_width="238dp" 812 android:layout_width="238dp"
775 android:layout_height="238dp"> 813 android:layout_height="238dp">
776 <com.littlejie.circleprogress.CircleProgress 814 <com.littlejie.circleprogress.CircleProgress
777 android:id="@+id/cpBase" 815 android:id="@+id/cpBase"
778 app:value="0" 816 app:value="0"
779 app:arcWidth="48dp" 817 app:arcWidth="48dp"
780 app:bgArcWidth="48dp" 818 app:bgArcWidth="48dp"
781 app:bgArcColor="#3BC3B6" 819 app:bgArcColor="#3BC3B6"
782 app:startAngle="0" 820 app:startAngle="0"
783 app:sweepAngle="360" 821 app:sweepAngle="360"
784 app:hintColor="@color/transparent" 822 app:hintColor="@color/transparent"
785 app:unitColor="@color/transparent" 823 app:unitColor="@color/transparent"
786 app:valueColor="@color/transparent" 824 app:valueColor="@color/transparent"
787 android:layout_width="match_parent" 825 android:layout_width="match_parent"
788 android:layout_height="match_parent"/> 826 android:layout_height="match_parent"/>
789 <com.littlejie.circleprogress.CircleProgress 827 <com.littlejie.circleprogress.CircleProgress
790 android:id="@+id/cpGood" 828 android:id="@+id/cpGood"
791 app:value="0" 829 app:value="0"
792 app:arcWidth="48dp" 830 app:arcWidth="48dp"
793 app:bgArcWidth="48dp" 831 app:bgArcWidth="48dp"
794 app:arcColors="#489AFA" 832 app:arcColors="#489AFA"
795 app:bgArcColor="@color/transparent" 833 app:bgArcColor="@color/transparent"
796 app:startAngle="0" 834 app:startAngle="0"
797 app:sweepAngle="360" 835 app:sweepAngle="360"
798 app:hintColor="@color/transparent" 836 app:hintColor="@color/transparent"
799 app:unitColor="@color/transparent" 837 app:unitColor="@color/transparent"
800 app:valueColor="@color/transparent" 838 app:valueColor="@color/transparent"
801 android:layout_width="match_parent" 839 android:layout_width="match_parent"
802 android:layout_height="match_parent"/> 840 android:layout_height="match_parent"/>
803 <com.littlejie.circleprogress.CircleProgress 841 <com.littlejie.circleprogress.CircleProgress
804 android:id="@+id/cpNormal" 842 android:id="@+id/cpNormal"
805 app:value="0" 843 app:value="0"
806 app:arcWidth="48dp" 844 app:arcWidth="48dp"
807 app:bgArcWidth="48dp" 845 app:bgArcWidth="48dp"
808 app:arcColors="#F58725" 846 app:arcColors="#F58725"
809 app:bgArcColor="@color/transparent" 847 app:bgArcColor="@color/transparent"
810 app:startAngle="0" 848 app:startAngle="0"
811 app:sweepAngle="360" 849 app:sweepAngle="360"
812 app:hintColor="@color/transparent" 850 app:hintColor="@color/transparent"
813 app:unitColor="@color/transparent" 851 app:unitColor="@color/transparent"
814 app:valueColor="@color/transparent" 852 app:valueColor="@color/transparent"
815 android:layout_width="match_parent" 853 android:layout_width="match_parent"
816 android:layout_height="match_parent"/> 854 android:layout_height="match_parent"/>
817 <com.littlejie.circleprogress.CircleProgress 855 <com.littlejie.circleprogress.CircleProgress
818 android:id="@+id/cpWeak" 856 android:id="@+id/cpWeak"
819 app:value="0" 857 app:value="0"
820 app:arcWidth="48dp" 858 app:arcWidth="48dp"
821 app:bgArcWidth="48dp" 859 app:bgArcWidth="48dp"
822 app:arcColors="#EA5127" 860 app:arcColors="#EA5127"
823 app:bgArcColor="@color/transparent" 861 app:bgArcColor="@color/transparent"
824 app:startAngle="0" 862 app:startAngle="0"
825 app:sweepAngle="360" 863 app:sweepAngle="360"
826 app:hintColor="@color/transparent" 864 app:hintColor="@color/transparent"
827 app:unitColor="@color/transparent" 865 app:unitColor="@color/transparent"
828 app:valueColor="@color/transparent" 866 app:valueColor="@color/transparent"
829 android:layout_width="match_parent" 867 android:layout_width="match_parent"
830 android:layout_height="match_parent"/> 868 android:layout_height="match_parent"/>
831 869
832 <LinearLayout 870 <LinearLayout
833 android:orientation="vertical" 871 android:orientation="vertical"
834 android:gravity="center_horizontal" 872 android:gravity="center_horizontal"
835 android:layout_gravity="center" 873 android:layout_gravity="center"
836 android:layout_width="wrap_content" 874 android:layout_width="wrap_content"
837 android:layout_height="wrap_content"> 875 android:layout_height="wrap_content">
838 <LinearLayout 876 <LinearLayout
839 android:layout_width="wrap_content" 877 android:layout_width="wrap_content"
840 android:layout_height="wrap_content"> 878 android:layout_height="wrap_content">
841 <TextView 879 <TextView
842 android:id="@+id/tvAvePoint" 880 android:id="@+id/tvAvePoint"
843 tools:text="88" 881 tools:text="88"
844 android:textSize="34sp" 882 android:textSize="34sp"
845 android:textColor="#3BC3B6" 883 android:textColor="#3BC3B6"
846 android:textStyle="bold" 884 android:textStyle="bold"
847 android:layout_width="wrap_content" 885 android:layout_width="wrap_content"
848 android:layout_height="wrap_content"/> 886 android:layout_height="wrap_content"/>
849 <TextView 887 <TextView
850 android:text="%" 888 android:text="%"
851 android:textSize="16sp" 889 android:textSize="16sp"
852 android:textColor="#3BC3B6" 890 android:textColor="#3BC3B6"
853 android:layout_width="wrap_content" 891 android:layout_width="wrap_content"
854 android:layout_height="wrap_content"/> 892 android:layout_height="wrap_content"/>
855 </LinearLayout> 893 </LinearLayout>
856 <TextView 894 <TextView
857 android:text="综合掌握程度" 895 android:text="综合掌握程度"
858 android:textSize="16sp" 896 android:textSize="16sp"
859 android:textColor="#333" 897 android:textColor="#333"
860 android:textStyle="bold" 898 android:textStyle="bold"
861 android:layout_marginTop="-2dp" 899 android:layout_marginTop="-2dp"
862 android:layout_width="wrap_content" 900 android:layout_width="wrap_content"
863 android:layout_height="wrap_content"/> 901 android:layout_height="wrap_content"/>
864 </LinearLayout> 902 </LinearLayout>
865 </FrameLayout> 903 </FrameLayout>
866 </LinearLayout> 904 </LinearLayout>
867 905
868 <LinearLayout 906 <LinearLayout
907 android:id="@+id/viewTable"
869 android:orientation="vertical" 908 android:orientation="vertical"
870 android:background="@drawable/shape_radius_10" 909 android:background="@drawable/shape_radius_10"
871 android:backgroundTint="@color/white" 910 android:backgroundTint="@color/white"
872 android:padding="16dp" 911 android:padding="16dp"
873 android:layout_marginHorizontal="14dp" 912 android:layout_marginHorizontal="14dp"
874 android:layout_width="335dp" 913 android:layout_width="335dp"
875 android:layout_height="472dp"> 914 android:layout_height="472dp">
876 <TextView 915 <TextView
877 android:text="学习效果分析" 916 android:text="学习效果分析"
878 android:textSize="16sp" 917 android:textSize="16sp"
879 android:textColor="#333333" 918 android:textColor="#333333"
880 android:textStyle="bold" 919 android:textStyle="bold"
881 android:background="@drawable/bg_hy_analyse_title" 920 android:background="@drawable/bg_hy_analyse_title"
882 android:paddingStart="24dp" 921 android:paddingStart="24dp"
883 android:paddingEnd="4dp" 922 android:paddingEnd="4dp"
884 android:layout_marginTop="4dp" 923 android:layout_marginTop="4dp"
885 android:layout_gravity="center_horizontal" 924 android:layout_gravity="center_horizontal"
886 android:layout_width="wrap_content" 925 android:layout_width="wrap_content"
887 android:layout_height="wrap_content"/> 926 android:layout_height="wrap_content"/>
888 927
889 <LinearLayout 928 <LinearLayout
890 android:id="@+id/flEmptyPoints" 929 android:id="@+id/flEmptyPoints"
891 android:visibility="gone" 930 android:visibility="gone"
892 android:orientation="vertical" 931 android:orientation="vertical"
893 android:gravity="center_horizontal" 932 android:gravity="center_horizontal"
894 android:layout_marginTop="80dp" 933 android:layout_marginTop="80dp"
895 android:layout_width="match_parent" 934 android:layout_width="match_parent"
896 android:layout_height="wrap_content"> 935 android:layout_height="wrap_content">
897 <ImageView 936 <ImageView
898 android:src="@drawable/png_huyou_points_empty" 937 android:src="@drawable/png_huyou_points_empty"
899 android:layout_width="195dp" 938 android:layout_width="195dp"
900 android:layout_height="145dp"/> 939 android:layout_height="145dp"/>
901 <TextView 940 <TextView
902 android:text="你太棒了!" 941 android:text="你太棒了!"
903 android:textSize="20sp" 942 android:textSize="20sp"
904 android:textColor="#999" 943 android:textColor="#999"
905 android:layout_marginVertical="16dp" 944 android:layout_marginVertical="16dp"
906 android:layout_width="wrap_content" 945 android:layout_width="wrap_content"
907 android:layout_height="wrap_content"/> 946 android:layout_height="wrap_content"/>
908 </LinearLayout> 947 </LinearLayout>
909 948
910 949
911 <LinearLayout 950 <LinearLayout
912 android:id="@+id/tableRoot" 951 android:id="@+id/tableRoot"
913 android:orientation="vertical" 952 android:orientation="vertical"
914 android:background="@drawable/bg_huyou_table_bg" 953 android:background="@drawable/bg_huyou_table_bg"
915 android:layout_marginTop="16dp" 954 android:layout_marginTop="16dp"
916 android:layout_width="match_parent" 955 android:layout_width="match_parent"
917 android:layout_height="wrap_content"> 956 android:layout_height="wrap_content">
918 <LinearLayout 957 <LinearLayout
919 android:orientation="horizontal" 958 android:orientation="horizontal"
920 android:background="#50CEC2" 959 android:background="#50CEC2"
921 android:layout_width="match_parent" 960 android:layout_width="match_parent"
922 android:layout_height="60dp"> 961 android:layout_height="60dp">
923 <TextView 962 <TextView
924 android:text="知识点名称" 963 android:text="知识点名称"
925 android:textSize="13sp" 964 android:textSize="13sp"
926 android:textColor="@color/white" 965 android:textColor="@color/white"
927 android:gravity="center" 966 android:gravity="center"
928 android:layout_weight="82" 967 android:layout_weight="82"
929 android:layout_width="0dp" 968 android:layout_width="0dp"
930 android:layout_height="match_parent"/> 969 android:layout_height="match_parent"/>
931 <View 970 <View
932 android:background="#38B3A7" 971 android:background="#38B3A7"
933 android:layout_width="1dp" 972 android:layout_width="1dp"
934 android:layout_height="match_parent"/> 973 android:layout_height="match_parent"/>
935 974
936 <LinearLayout 975 <LinearLayout
937 android:orientation="vertical" 976 android:orientation="vertical"
938 android:layout_weight="72" 977 android:layout_weight="72"
939 android:layout_width="0dp" 978 android:layout_width="0dp"
940 android:layout_height="match_parent"> 979 android:layout_height="match_parent">
941 <TextView 980 <TextView
942 android:text="学前" 981 android:text="学前"
943 android:textSize="13sp" 982 android:textSize="13sp"
944 android:textColor="@color/white" 983 android:textColor="@color/white"
945 android:gravity="center" 984 android:gravity="center"
946 android:layout_width="match_parent" 985 android:layout_width="match_parent"
947 android:layout_height="24dp"/> 986 android:layout_height="24dp"/>
948 <View 987 <View
949 android:background="#38B3A7" 988 android:background="#38B3A7"
950 android:layout_width="match_parent" 989 android:layout_width="match_parent"
951 android:layout_height="1dp"/> 990 android:layout_height="1dp"/>
952 <LinearLayout 991 <LinearLayout
953 android:orientation="horizontal" 992 android:orientation="horizontal"
954 android:layout_width="match_parent" 993 android:layout_width="match_parent"
955 android:layout_height="match_parent"> 994 android:layout_height="match_parent">
956 <TextView 995 <TextView
957 android:text="程\n度" 996 android:text="程\n度"
958 android:textSize="13sp" 997 android:textSize="13sp"
959 android:textColor="@color/white" 998 android:textColor="@color/white"
960 android:gravity="center" 999 android:gravity="center"
961 android:layout_weight="1" 1000 android:layout_weight="1"
962 android:layout_width="0dp" 1001 android:layout_width="0dp"
963 android:layout_height="wrap_content"/> 1002 android:layout_height="wrap_content"/>
964 <View 1003 <View
965 android:background="#38B3A7" 1004 android:background="#38B3A7"
966 android:layout_width="1dp" 1005 android:layout_width="1dp"
967 android:layout_height="match_parent"/> 1006 android:layout_height="match_parent"/>
968 <TextView 1007 <TextView
969 android:text="状\n态" 1008 android:text="状\n态"
970 android:textSize="13sp" 1009 android:textSize="13sp"
971 android:textColor="@color/white" 1010 android:textColor="@color/white"
972 android:gravity="center" 1011 android:gravity="center"
973 android:layout_weight="1" 1012 android:layout_weight="1"
974 android:layout_width="0dp" 1013 android:layout_width="0dp"
975 android:layout_height="wrap_content"/> 1014 android:layout_height="wrap_content"/>
976 </LinearLayout> 1015 </LinearLayout>
977 </LinearLayout> 1016 </LinearLayout>
978 1017
979 <View 1018 <View
980 android:background="#38B3A7" 1019 android:background="#38B3A7"
981 android:layout_width="1dp" 1020 android:layout_width="1dp"
982 android:layout_height="match_parent"/> 1021 android:layout_height="match_parent"/>
983 1022
984 <LinearLayout 1023 <LinearLayout
985 android:orientation="vertical" 1024 android:orientation="vertical"
986 android:layout_weight="72" 1025 android:layout_weight="72"
987 android:layout_width="0dp" 1026 android:layout_width="0dp"
988 android:layout_height="match_parent"> 1027 android:layout_height="match_parent">
989 <TextView 1028 <TextView
990 android:text="学后" 1029 android:text="学后"
991 android:textSize="13sp" 1030 android:textSize="13sp"
992 android:textColor="@color/white" 1031 android:textColor="@color/white"
993 android:gravity="center" 1032 android:gravity="center"
994 android:layout_width="match_parent" 1033 android:layout_width="match_parent"
995 android:layout_height="24dp"/> 1034 android:layout_height="24dp"/>
996 <View 1035 <View
997 android:background="#38B3A7" 1036 android:background="#38B3A7"
998 android:layout_width="match_parent" 1037 android:layout_width="match_parent"
999 android:layout_height="1dp"/> 1038 android:layout_height="1dp"/>
1000 <LinearLayout 1039 <LinearLayout
1001 android:orientation="horizontal" 1040 android:orientation="horizontal"
1002 android:layout_width="match_parent" 1041 android:layout_width="match_parent"
1003 android:layout_height="match_parent"> 1042 android:layout_height="match_parent">
1004 <TextView 1043 <TextView
1005 android:text="程\n度" 1044 android:text="程\n度"
1006 android:textSize="13sp" 1045 android:textSize="13sp"
1007 android:textColor="@color/white" 1046 android:textColor="@color/white"
1008 android:gravity="center" 1047 android:gravity="center"
1009 android:layout_weight="1" 1048 android:layout_weight="1"
1010 android:layout_width="0dp" 1049 android:layout_width="0dp"
1011 android:layout_height="wrap_content"/> 1050 android:layout_height="wrap_content"/>
1012 <View 1051 <View
1013 android:background="#38B3A7" 1052 android:background="#38B3A7"
1014 android:layout_width="1dp" 1053 android:layout_width="1dp"
1015 android:layout_height="match_parent"/> 1054 android:layout_height="match_parent"/>
1016 <TextView 1055 <TextView
1017 android:text="状\n态" 1056 android:text="状\n态"
1018 android:textSize="13sp" 1057 android:textSize="13sp"
1019 android:textColor="@color/white" 1058 android:textColor="@color/white"
1020 android:gravity="center" 1059 android:gravity="center"
1021 android:layout_weight="1" 1060 android:layout_weight="1"
1022 android:layout_width="0dp" 1061 android:layout_width="0dp"
1023 android:layout_height="wrap_content"/> 1062 android:layout_height="wrap_content"/>
1024 </LinearLayout> 1063 </LinearLayout>
1025 1064
1026 </LinearLayout> 1065 </LinearLayout>
1027 1066
1028 <View 1067 <View
1029 android:background="#38B3A7" 1068 android:background="#38B3A7"
1030 android:layout_width="1dp" 1069 android:layout_width="1dp"
1031 android:layout_height="match_parent"/> 1070 android:layout_height="match_parent"/>
1032 <TextView 1071 <TextView
1033 android:text="进步\n幅度" 1072 android:text="进步\n幅度"
1034 android:textSize="13sp" 1073 android:textSize="13sp"
1035 android:textColor="@color/white" 1074 android:textColor="@color/white"
1036 android:gravity="center" 1075 android:gravity="center"
1037 android:layout_weight="50" 1076 android:layout_weight="50"
1038 android:layout_width="0dp" 1077 android:layout_width="0dp"
1039 android:layout_height="match_parent"/> 1078 android:layout_height="match_parent"/>
1040 <View 1079 <View
1041 android:background="#38B3A7" 1080 android:background="#38B3A7"
1042 android:layout_width="1dp" 1081 android:layout_width="1dp"
1043 android:layout_height="match_parent"/> 1082 android:layout_height="match_parent"/>
1044 <TextView 1083 <TextView
1045 android:text="正答\n率" 1084 android:text="正答\n率"
1046 android:textSize="13sp" 1085 android:textSize="13sp"
1047 android:textColor="@color/white" 1086 android:textColor="@color/white"
1048 android:gravity="center" 1087 android:gravity="center"
1049 android:layout_weight="38" 1088 android:layout_weight="38"
1050 android:layout_width="0dp" 1089 android:layout_width="0dp"
1051 android:layout_height="match_parent"/> 1090 android:layout_height="match_parent"/>
1052 </LinearLayout> 1091 </LinearLayout>
1053 <androidx.recyclerview.widget.RecyclerView 1092 <androidx.recyclerview.widget.RecyclerView
1054 android:id="@+id/rvPoint" 1093 android:id="@+id/rvPoint"
1055 android:orientation="vertical" 1094 android:orientation="vertical"
1056 app:layoutManager="androidx.recyclerview.widget.LinearLayoutManager" 1095 app:layoutManager="androidx.recyclerview.widget.LinearLayoutManager"
1057 app:reverseLayout="false" 1096 app:reverseLayout="false"
1058 android:layout_width="match_parent" 1097 android:layout_width="match_parent"
1059 android:layout_height="wrap_content"/> 1098 android:layout_height="wrap_content"/>
1060 </LinearLayout> 1099 </LinearLayout>
1061 1100
1062 <LinearLayout 1101 <LinearLayout
1063 android:id="@+id/flPointDesc" 1102 android:id="@+id/flPointDesc"
1064 android:alpha="0" 1103 android:alpha="0"
1065 android:orientation="horizontal" 1104 android:orientation="horizontal"
1066 android:gravity="center_vertical" 1105 android:gravity="center_vertical"
1067 android:layout_marginTop="10dp" 1106 android:layout_marginTop="10dp"
1068 android:layout_width="match_parent" 1107 android:layout_width="match_parent"
1069 android:layout_height="wrap_content"> 1108 android:layout_height="wrap_content">
1070 <ImageView 1109 <ImageView
1071 android:src="@drawable/png_up" 1110 android:src="@drawable/png_up"
1072 android:layout_width="12dp" 1111 android:layout_width="12dp"
1073 android:layout_height="12dp"/> 1112 android:layout_height="12dp"/>
1074 <TextView 1113 <TextView
1075 android:text="代表进步幅度最大的知识点" 1114 android:text="代表进步幅度最大的知识点"
1076 android:textSize="12sp" 1115 android:textSize="12sp"
1077 android:textColor="#666" 1116 android:textColor="#666"
1078 android:layout_marginStart="8dp" 1117 android:layout_marginStart="8dp"
1079 android:layout_width="wrap_content" 1118 android:layout_width="wrap_content"
1080 android:layout_height="wrap_content"/> 1119 android:layout_height="wrap_content"/>
1081 </LinearLayout> 1120 </LinearLayout>
1082 </LinearLayout> 1121 </LinearLayout>
1122
1123 <LinearLayout
1124 android:id="@+id/viewWeekTable"
1125 android:orientation="vertical"
1126 android:background="@drawable/shape_radius_10"
1127 android:backgroundTint="@color/white"
1128 android:padding="16dp"
1129 android:layout_marginHorizontal="14dp"
1130 android:layout_width="335dp"
1131 android:layout_height="472dp">
1132 <TextView
1133 android:text="知识点掌握详情"
1134 android:textSize="16sp"
1135 android:textColor="#333333"
1136 android:textStyle="bold"
1137 android:background="@drawable/bg_hy_analyse_title"
1138 android:paddingStart="24dp"
1139 android:paddingEnd="4dp"
1140 android:layout_marginTop="4dp"
1141 android:layout_gravity="center_horizontal"
1142 android:layout_width="wrap_content"
1143 android:layout_height="wrap_content"/>
1144
1145 <LinearLayout
1146 android:id="@+id/tableWeekRoot"
1147 android:orientation="vertical"
1148 android:background="@drawable/bg_huyou_table_bg"
1149 android:layout_marginTop="16dp"
1150 android:layout_width="match_parent"
1151 android:layout_height="wrap_content">
1152 <LinearLayout
1153 android:orientation="horizontal"
1154 android:background="#50CEC2"
1155 android:layout_width="match_parent"
1156 android:layout_height="60dp">
1157 <TextView
1158 android:text="知识点名称"
1159 android:textSize="13sp"
1160 android:textColor="@color/white"
1161 android:gravity="center"
1162 android:layout_weight="135"
1163 android:layout_width="0dp"
1164 android:layout_height="match_parent"/>
1165 <View
1166 android:background="#38B3A7"
1167 android:layout_width="1dp"
1168 android:layout_height="match_parent"/>
1169
1170 <TextView
1171 android:text="知识点掌握状态"
1172 android:textSize="13sp"
1173 android:textColor="@color/white"
1174 android:gravity="center"
1175 android:layout_weight="179"
1176 android:layout_width="0dp"
1177 android:layout_height="match_parent"/>
1178
1179 <View
1180 android:background="#38B3A7"
1181 android:layout_width="1dp"
1182 android:layout_height="match_parent"/>
1183
1184 <TextView
1185 android:text="正答率"
1186 android:textSize="13sp"
1187 android:textColor="@color/white"
1188 android:gravity="center"
1189 android:layout_width="48dp"
1190 android:layout_height="match_parent"/>
1191 </LinearLayout>
1192 <androidx.recyclerview.widget.RecyclerView
1193 android:id="@+id/rvWeekPoint"
1194 android:orientation="vertical"
1195 app:layoutManager="androidx.recyclerview.widget.LinearLayoutManager"
1196 app:reverseLayout="false"
app/src/main/res/layout/item_huyou_week_point.xml
File was created 1 <?xml version="1.0" encoding="utf-8"?>
2 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
3 xmlns:tools="http://schemas.android.com/tools"
4 android:orientation="vertical"
5 android:layout_width="match_parent"
6 android:layout_height="36dp"
7 tools:ignore="SmallSp,RtlSymmetry,HardcodedText">
8 <View
9 android:background="#38B3A7"
10 android:layout_width="match_parent"
11 android:layout_height="1dp"/>
12
13 <LinearLayout
14 android:orientation="horizontal"
15 android:layout_width="match_parent"
16 android:layout_height="match_parent">
17 <TextView
18 android:id="@+id/tvName"
19 tools:text="正数与负数"
20 android:textSize="12sp"
21 android:textColor="#333"
22 android:gravity="center_vertical"
23 android:maxLines="2"
24 android:paddingStart="6dp"
25 android:layout_weight="135"
26 android:layout_width="0dp"
27 android:layout_height="match_parent"/>
28 <View
29 android:background="#38B3A7"
30 android:layout_width="1dp"
31 android:layout_height="match_parent"/>
32 <FrameLayout
33 android:paddingStart="4dp"
34 android:layout_weight="179"
35 android:layout_width="0dp"
36 android:layout_height="match_parent">
37 <TextView
38 android:id="@+id/tvState"
39 tools:text="掌握薄弱"
40 android:textSize="12sp"
41 android:textColor="@color/white"
42 android:background="@drawable/shape_radius_2"
43 android:backgroundTint="#EA5127"
44 android:paddingHorizontal="3dp"
45 android:paddingVertical="1dp"
46 android:singleLine="true"
47 android:layout_gravity="center"
48 android:layout_width="wrap_content"
49 android:layout_height="wrap_content" />
50 </FrameLayout>
51 <View
52 android:background="#38B3A7"
53 android:layout_width="1dp"
54 android:layout_height="match_parent"/>
55 <TextView
56 android:id="@+id/tvHuyou"
57 android:text="-"
58 android:textSize="12sp"
59 android:textColor="#333"
60 android:gravity="center"
61 android:layout_width="48dp"
62 android:layout_height="match_parent"/>
63 </LinearLayout>
64 </LinearLayout>
libs/common/src/main/java/com/prws/common/bean/homework/StDetail.java
1 package com.prws.common.bean.homework; 1 package com.prws.common.bean.homework;
2 2
3 import com.google.gson.Gson; 3 import com.google.gson.Gson;
4 import com.google.gson.GsonBuilder; 4 import com.google.gson.GsonBuilder;
5 import com.google.gson.reflect.TypeToken; 5 import com.google.gson.reflect.TypeToken;
6 6
7 import java.util.ArrayList; 7 import java.util.ArrayList;
8 import java.util.Date; 8 import java.util.Date;
9 import java.util.List; 9 import java.util.List;
10 10
11 public class StDetail { 11 public class StDetail {
12 12
13 public String id; 13 public String id;
14 14
15 public String stuId; 15 public String stuId;
16 public Date startTime; 16 public Date startTime;
17 public Date endTime; 17 public Date endTime;
18 public String homeworkSubject; 18 public String homeworkSubject;
19 public String scId; 19 public String scId;
20 public String grade; 20 public String grade;
21 21
22 public int total; 22 public int total;
23 public int correct; 23 public int correct;
24 public int unfinished;
24 25
25 public float mondayCorrection; 26 public float mondayCorrection;
26 public float tuesdayCorrection; 27 public float tuesdayCorrection;
27 public float wednesdayCorrection; 28 public float wednesdayCorrection;
28 public float thursdayCorrection; 29 public float thursdayCorrection;
29 public float fridayCorrection; 30 public float fridayCorrection;
30 31
31 public String correction; 32 public String correction;
32 public transient List<Correction> correctionList; 33 public transient List<Correction> correctionList;
33 34
34 public List<Point> points; 35 public List<Point> points;
35 36
36 public int type; 37 public int type;
37 38
38 public void formatCollection() { 39 public void formatCollection() {
39 correctionList = new ArrayList<>(); 40 correctionList = new ArrayList<>();
40 if (correction == null) { 41 if (correction == null) {
41 return; 42 return;
42 } 43 }
43 Gson gson = new GsonBuilder().setDateFormat("yyyy-MM-dd HH:mm:ss").create(); 44 Gson gson = new GsonBuilder().setDateFormat("yyyy-MM-dd HH:mm:ss").create();
44 try { 45 try {
45 List<Correction> list = gson.fromJson(correction, new TypeToken<List<Correction>>(){}.getType()); 46 List<Correction> list = gson.fromJson(correction, new TypeToken<List<Correction>>(){}.getType());
46 for (Correction item: list) { 47 for (Correction item: list) {
47 if (item != null && item.date != null) { 48 if (item != null && item.date != null) {
48 correctionList.add(item); 49 correctionList.add(item);
49 } 50 }
50 } 51 }
51 } catch (Exception e){ 52 } catch (Exception e){
52 e.printStackTrace(); 53 e.printStackTrace();
53 } 54 }
54 } 55 }
55 56
56 public static class Point { 57 public static class Point {
57 public String pointId; 58 public String pointId;
58 public String pointName; 59 public String pointName;
59 public float beforeState; 60 public float beforeState;
60 public float afterState; 61 public float afterState;
61 public float gap; 62 public float gap;
62 public float correctness; 63 public float correctness;
63 } 64 }
64 65
65 public static class Correction { 66 public static class Correction {
66 public float correction; 67 public float correction;
67 public Date date; 68 public Date date;
68 } 69 }
69 70
70 } 71 }
71 72