Commit d24a968bef23a625a987ce8bc70e846846f8e4b3

Authored by shixianjie
1 parent 4cd487c75a
Exists in master

周报布局调整

.idea/deploymentTargetDropDown.xml
1 <?xml version="1.0" encoding="UTF-8"?> 1 <?xml version="1.0" encoding="UTF-8"?>
2 <project version="4"> 2 <project version="4">
3 <component name="deploymentTargetDropDown"> 3 <component name="deploymentTargetDropDown">
4 <value> 4 <value>
5 <entry key="app"> 5 <entry key="app">
6 <State> 6 <State>
7 <runningDeviceTargetSelectedWithDropDown> 7 <runningDeviceTargetSelectedWithDropDown>
8 <Target> 8 <Target>
9 <type value="RUNNING_DEVICE_TARGET" /> 9 <type value="RUNNING_DEVICE_TARGET" />
10 <deviceKey> 10 <deviceKey>
11 <Key> 11 <Key>
12 <type value="SERIAL_NUMBER" /> 12 <type value="SERIAL_NUMBER" />
13 <value value="951f9ace" /> 13 <value value="951f9ace" />
14 </Key> 14 </Key>
15 </deviceKey> 15 </deviceKey>
16 </Target> 16 </Target>
17 </runningDeviceTargetSelectedWithDropDown> 17 </runningDeviceTargetSelectedWithDropDown>
18 <timeTargetWasSelectedWithDropDown value="2024-10-11T03:19:45.857926300Z" /> 18 <timeTargetWasSelectedWithDropDown value="2024-10-11T03:36:34.174716500Z" />
19 </State> 19 </State>
20 </entry> 20 </entry>
21 </value> 21 </value>
22 </component> 22 </component>
23 </project> 23 </project>
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 ImmersionBar.with(this).init(); 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) binding.tvTitle.setText("阶段作业学习总结");
81 81
82 Glide.with(this).load(student.photo).into(binding.ivAvatar); 82 Glide.with(this).load(student.photo).into(binding.ivAvatar);
83 binding.tvStuName.setText(student.stuName); 83 binding.tvStuName.setText(student.stuName);
84 84
85 setupChart(); 85 setupChart();
86 NetWorks.service_url.getHuyouDetail(NetWorks.getHeader(), id) 86 NetWorks.service_url.getHuyouDetail(NetWorks.getHeader(), id)
87 .subscribeOn(Schedulers.io()) 87 .subscribeOn(Schedulers.io())
88 .map(response -> response.getData()) 88 .map(response -> response.getData())
89 .map(data -> { 89 .map(data -> {
90 if (type == 1) data.formatCollection(); 90 if (type == 1) data.formatCollection();
91 return data; 91 return data;
92 }) 92 })
93 .observeOn(AndroidSchedulers.mainThread()) 93 .observeOn(AndroidSchedulers.mainThread())
94 .compose(RxLifecycleAndroid.bindActivity(getRxLifecycle())) 94 .compose(RxLifecycleAndroid.bindActivity(getRxLifecycle()))
95 .subscribe((data, th) -> { 95 .subscribe((data, th) -> {
96 mData = data; 96 mData = data;
97 if (th != null) th.printStackTrace(); 97 if (th != null) th.printStackTrace();
98 if (data != null) showData(data); 98 if (data != null) showData(data);
99 }); 99 });
100 100
101 binding.btnShare.setOnClickListener(v -> { 101 binding.btnShare.setOnClickListener(v -> {
102 Uri shareUri = prepareShare(); 102 Uri shareUri = prepareShare();
103 if (shareUri != null) { 103 if (shareUri != null) {
104 Intent shareIntent = new Intent(Intent.ACTION_SEND); 104 Intent shareIntent = new Intent(Intent.ACTION_SEND);
105 shareIntent.setType("image/jpeg"); 105 shareIntent.setType("image/jpeg");
106 shareIntent.putExtra(Intent.EXTRA_STREAM, shareUri); 106 shareIntent.putExtra(Intent.EXTRA_STREAM, shareUri);
107 shareIntent.addFlags(Intent.FLAG_GRANT_READ_URI_PERMISSION); 107 shareIntent.addFlags(Intent.FLAG_GRANT_READ_URI_PERMISSION);
108 108
109 startActivity(shareIntent); 109 startActivity(shareIntent);
110 } 110 }
111 }); 111 });
112 112
113 binding.btnSwitch.setOnClickListener(v -> { 113 binding.btnSwitch.setOnClickListener(v -> {
114 switchPage(); 114 switchPage();
115 }); 115 });
116 116
117 } 117 }
118 118
119 private SimpleDateFormat getFormatWithGmt8(String pattern) { 119 private SimpleDateFormat getFormatWithGmt8(String pattern) {
120 SimpleDateFormat format = new SimpleDateFormat(pattern, Locale.CHINA); 120 SimpleDateFormat format = new SimpleDateFormat(pattern, Locale.CHINA);
121 format.setTimeZone(TimeZone.getTimeZone("GMT+16")); 121 format.setTimeZone(TimeZone.getTimeZone("GMT+16"));
122 return format; 122 return format;
123 } 123 }
124 124
125 @SuppressLint("SetTextI18n") 125 @SuppressLint("SetTextI18n")
126 private void showData(StDetail data) { 126 private void showData(StDetail data) {
127 binding.tvGrade.setText(data.grade); 127 binding.tvGrade.setText(data.grade);
128 binding.tvSubject.setText(data.homeworkSubject); 128 binding.tvSubject.setText(data.homeworkSubject);
129 String start = getFormatWithGmt8("yyyy.M.d").format(data.startTime); 129 String start = getFormatWithGmt8("yyyy.M.d").format(data.startTime);
130 String end = new SimpleDateFormat(" - M.d", Locale.CHINA).format(data.endTime); 130 String end = new SimpleDateFormat(" - M.d", Locale.CHINA).format(data.endTime);
131 binding.tvDate.setText(start + end); 131 binding.tvDate.setText(start + end);
132 132
133 if (data.points == null) data.points = new ArrayList<>(); 133 if (data.points == null) data.points = new ArrayList<>();
134 if (data.points.size() == 0) { 134 if (data.points.size() == 0) {
135 binding.cpBefore.setValue(0); 135 binding.cpBefore.setValue(0);
136 binding.cpAfter.setValue(0); 136 binding.cpAfter.setValue(0);
137 binding.pgBefore.setText("0"); 137 binding.pgBefore.setText("0");
138 binding.pgAfter.setText("0"); 138 binding.pgAfter.setText("0");
139 } else { 139 } else {
140 float before = 0; 140 float before = 0;
141 float after = 0; 141 float after = 0;
142 for (StDetail.Point point: data.points) { 142 for (StDetail.Point point: data.points) {
143 before += point.beforeState; 143 before += point.beforeState;
144 after += point.afterState; 144 after += point.afterState;
145 } 145 }
146 before = (int) (100f * before / data.points.size() + 0.5f); 146 before = (int) (100f * before / data.points.size() + 0.5f);
147 after = (int) (100f * after / data.points.size() + 0.5f); 147 after = (int) (100f * after / data.points.size() + 0.5f);
148 binding.cpBefore.setValue(before); 148 binding.cpBefore.setValue(before);
149 binding.cpAfter.setValue(after); 149 binding.cpAfter.setValue(after);
150 DecimalFormat format = new DecimalFormat("0"); 150 DecimalFormat format = new DecimalFormat("0");
151 binding.pgBefore.setText(format.format(before)); 151 binding.pgBefore.setText(format.format(before));
152 binding.pgAfter.setText(format.format(after)); 152 binding.pgAfter.setText(format.format(after));
153 153
154 String comment; 154 String comment;
155 if (after >= 90) { 155 if (after >= 90) {
156 comment = "知识点掌握的比较扎实,多练习多巩固掌握一般的知识点会有很大帮助。"; 156 comment = "知识点掌握的比较扎实,多练习多巩固掌握一般的知识点会有很大帮助。";
157 } else if (after >= 80) { 157 } else if (after >= 80) {
158 comment = "知识点掌握程度有进步,还要再继续学习,多练习,不断巩固。"; 158 comment = "知识点掌握程度有进步,还要再继续学习,多练习,不断巩固。";
159 } else if (after >= 60) { 159 } else if (after >= 60) {
160 comment = "薄弱知识点还有进步空间,再多做一些类似题目来巩固知识点,继续努力。"; 160 comment = "薄弱知识点还有进步空间,再多做一些类似题目来巩固知识点,继续努力。";
161 } else { 161 } else {
162 comment = "你的薄弱知识点还需要再深入了解,有不清楚的地方及时问老师,继续加油。"; 162 comment = "你的薄弱知识点还需要再深入了解,有不清楚的地方及时问老师,继续加油。";
163 } 163 }
164 String percent = new DecimalFormat("0%").format(after / 100); 164 String percent = new DecimalFormat("0%").format(after / 100);
165 String temp = indent + "通过学习,你的薄弱知识点掌握程度为 %s," + comment; 165 String temp = indent + "通过学习,你的薄弱知识点掌握程度为 %s," + comment;
166 temp = String.format(temp, fromColor(percent, "#F24E38")); 166 temp = String.format(temp, fromColor(percent, "#F24E38"));
167 binding.tvWeakRate.setText(Html.fromHtml(temp, Html.FROM_HTML_MODE_COMPACT)); 167 binding.tvWeakRate.setText(Html.fromHtml(temp, Html.FROM_HTML_MODE_COMPACT));
168 } 168 }
169 169
170 binding.tvTotalRate.setText(new DecimalFormat("0").format(100f * data.correct / data.total)); 170 binding.tvTotalRate.setText(new DecimalFormat("0").format(100f * data.correct / data.total));
171 binding.tvTotalCorrect.setText(String.valueOf(data.correct)); 171 binding.tvTotalCorrect.setText(String.valueOf(data.correct));
172 binding.tvTotalError.setText(String.valueOf(data.total - data.correct)); 172 binding.tvTotalError.setText(String.valueOf(data.total - data.correct));
173 if (data.total == 0) { 173 if (data.total == 0) {
174 binding.tvRating.setText(""); 174 binding.tvRating.setText("");
175 } else { 175 } else {
176 float rate = 100f * data.correct / data.total; 176 float rate = 100f * data.correct / data.total;
177 String comment; 177 String comment;
178 if (rate >= 90) { 178 if (rate >= 90) {
179 comment = "掌握程度比较优秀,你对知识的理解和运用能力非常强,这是你努力的结果。请继续保持这份优秀,在未来的学习中,可以继续挑战更难的题目,勇攀高峰。"; 179 comment = "掌握程度比较优秀,你对知识的理解和运用能力非常强,这是你努力的结果。请继续保持这份优秀,在未来的学习中,可以继续挑战更难的题目,勇攀高峰。";
180 } else if (rate >= 80) { 180 } else if (rate >= 80) {
181 comment = "掌握良好。接下来,跟随老师的学习规划,针对薄弱环节重点突破。加油,只要持之以恒,坚持下去,你一定会更加出色。"; 181 comment = "掌握良好。接下来,跟随老师的学习规划,针对薄弱环节重点突破。加油,只要持之以恒,坚持下去,你一定会更加出色。";
182 } else if (rate >= 60) { 182 } else if (rate >= 60) {
183 comment = "掌握程度一般。不过别灰心,你有提升的潜力。跟随老师的步伐,制定合理的学习计划,多做一些练习题来巩固知识。老师相信你一定可以做到。"; 183 comment = "掌握程度一般。不过别灰心,你有提升的潜力。跟随老师的步伐,制定合理的学习计划,多做一些练习题来巩固知识。老师相信你一定可以做到。";
184 } else { 184 } else {
185 comment = "掌握程度较为薄弱。但不要放弃,这正是你奋起直追的好时机。认真分析自己的问题,从基础开始逐步提升。老师会一直支持你,只要你有决心,就没有克服不了的困难。"; 185 comment = "掌握程度较为薄弱。但不要放弃,这正是你奋起直追的好时机。认真分析自己的问题,从基础开始逐步提升。老师会一直支持你,只要你有决心,就没有克服不了的困难。";
186 } 186 }
187 String rateStr = new DecimalFormat("0%").format(rate / 100f); 187 String rateStr = new DecimalFormat("0%").format(rate / 100f);
188 String temp; 188 String temp;
189 if (type == 0) { 189 if (type == 0) {
190 temp = indent + "在本周作业中,你的综合正确率是 %s," + comment; 190 temp = indent + "在本周作业中,你的综合正确率是 %s," + comment;
191 } else { 191 } else {
192 temp = indent + "你的综合正确率是 %s," + comment; 192 temp = indent + "你的综合正确率是 %s," + comment;
193 } 193 }
194 temp = String.format(temp, fromColor(rateStr, "#3BC3B6")); 194 temp = String.format(temp, fromColor(rateStr, "#3BC3B6"));
195 binding.tvRating.setText(Html.fromHtml(temp, Html.FROM_HTML_MODE_COMPACT)); 195 binding.tvRating.setText(Html.fromHtml(temp, Html.FROM_HTML_MODE_COMPACT));
196 } 196 }
197 197
198 List<Entry> entries = new ArrayList<>(); 198 List<Entry> entries = new ArrayList<>();
199 if (type == 0) { 199 if (type == 0) {
200 entries.add(new Entry(1, data.mondayCorrection)); 200 entries.add(new Entry(1, data.mondayCorrection));
201 entries.add(new Entry(2, data.tuesdayCorrection)); 201 entries.add(new Entry(2, data.tuesdayCorrection));
202 entries.add(new Entry(3, data.wednesdayCorrection)); 202 entries.add(new Entry(3, data.wednesdayCorrection));
203 entries.add(new Entry(4, data.thursdayCorrection)); 203 entries.add(new Entry(4, data.thursdayCorrection));
204 entries.add(new Entry(5, data.fridayCorrection)); 204 entries.add(new Entry(5, data.fridayCorrection));
205 } else { 205 } else {
206 for (int i = 0; i < data.correctionList.size(); i ++) { 206 for (int i = 0; i < data.correctionList.size(); i ++) {
207 StDetail.Correction c = data.correctionList.get(i); 207 StDetail.Correction c = data.correctionList.get(i);
208 entries.add(new Entry(i, c.correction)); 208 entries.add(new Entry(i, c.correction));
209 } 209 }
210 XAxis xAxis = binding.lineChart.getXAxis(); 210 XAxis xAxis = binding.lineChart.getXAxis();
211 xAxis.setLabelCount(Math.min(entries.size(), 5), true); 211 xAxis.setLabelCount(Math.min(entries.size(), 5), true);
212 xAxis.setValueFormatter(new ValueFormatter() { 212 xAxis.setValueFormatter(new ValueFormatter() {
213 SimpleDateFormat format = new SimpleDateFormat("M.d", Locale.CHINA); 213 SimpleDateFormat format = new SimpleDateFormat("M.d", Locale.CHINA);
214 @Override 214 @Override
215 public String getFormattedValue(float value) { 215 public String getFormattedValue(float value) {
216 int index = (int) value; 216 int index = (int) value;
217 if (index < 0 || index >= data.correctionList.size()) return ""; 217 if (index < 0 || index >= data.correctionList.size()) return "";
218 Date date = data.correctionList.get(index).date; 218 Date date = data.correctionList.get(index).date;
219 return format.format(date); 219 return format.format(date);
220 } 220 }
221 }); 221 });
222 } 222 }
223 223
224 LineDataSet set = new LineDataSet(entries, ""); 224 LineDataSet set = new LineDataSet(entries, "");
225 set.setColor(0xFF3BC3B6); 225 set.setColor(0xFF3BC3B6);
226 set.setCircleColor(0xFF3BC3B6); 226 set.setCircleColor(0xFF3BC3B6);
227 set.setDrawFilled(true); 227 set.setDrawFilled(true);
228 set.setDrawCircles(type == 0 || entries.size() == 1); 228 set.setDrawCircles(type == 0 || entries.size() == 1);
229 set.setDrawValues(false); 229 set.setDrawValues(false);
230 set.setHighlightEnabled(false); 230 set.setHighlightEnabled(false);
231 set.setDrawHighlightIndicators(false); 231 set.setDrawHighlightIndicators(false);
232 set.setFillDrawable(ResourcesCompat.getDrawable(getResources(), R.drawable.bg_line_chart_fill2, null)); 232 set.setFillDrawable(ResourcesCompat.getDrawable(getResources(), R.drawable.bg_line_chart_fill2, null));
233 binding.lineChart.setData(new LineData(set)); 233 binding.lineChart.setData(new LineData(set));
234 binding.lineChart.invalidate(); 234 binding.lineChart.invalidate();
235 235
236 if (!data.points.isEmpty()) { 236 if (!data.points.isEmpty()) {
237 int exNo = 0, goodNo = 0, normalNo = 0, weakNo = 0; 237 int exNo = 0, goodNo = 0, normalNo = 0, weakNo = 0;
238 float total = 0; 238 float total = 0;
239 for (StDetail.Point point: data.points) { 239 for (StDetail.Point point: data.points) {
240 total += point.afterState; 240 total += point.afterState;
241 if (point.afterState >= 0.9) { 241 if (point.afterState >= 0.9) {
242 exNo ++; 242 exNo ++;
243 } else if (point.afterState >= 0.8) { 243 } else if (point.afterState >= 0.8) {
244 goodNo ++; 244 goodNo ++;
245 } else if (point.afterState >= 0.6) { 245 } else if (point.afterState >= 0.6) {
246 normalNo ++; 246 normalNo ++;
247 } else { 247 } else {
248 weakNo ++; 248 weakNo ++;
249 } 249 }
250 } 250 }
251 binding.tvExcellent.setText(String.valueOf(exNo)); 251 binding.tvExcellent.setText(String.valueOf(exNo));
252 binding.tvGood.setText(String.valueOf(goodNo)); 252 binding.tvGood.setText(String.valueOf(goodNo));
253 binding.tvNormal.setText(String.valueOf(normalNo)); 253 binding.tvNormal.setText(String.valueOf(normalNo));
254 binding.tvWeak.setText(String.valueOf(weakNo)); 254 binding.tvWeak.setText(String.valueOf(weakNo));
255 255
256 float exRate = 100f * exNo / data.points.size(); 256 float exRate = 100f * exNo / data.points.size();
257 float goodRate = 100f * goodNo / data.points.size(); 257 float goodRate = 100f * goodNo / data.points.size();
258 float normalRate = 100f * normalNo / data.points.size(); 258 float normalRate = 100f * normalNo / data.points.size();
259 float weakRate = 100f * weakNo / data.points.size(); 259 float weakRate = 100f * weakNo / data.points.size();
260 binding.cpGood.setValue(goodRate + normalRate + weakRate); 260 binding.cpGood.setValue(goodRate + normalRate + weakRate);
261 binding.cpNormal.setValue(normalRate + weakRate); 261 binding.cpNormal.setValue(normalRate + weakRate);
262 binding.cpWeak.setValue(weakRate); 262 binding.cpWeak.setValue(weakRate);
263 binding.tvAvePoint.setText(new DecimalFormat("0").format(100f * total / data.points.size())); 263 binding.tvAvePoint.setText(new DecimalFormat("0").format(100f * total / data.points.size()));
264 } 264 }
265 265
266 List<StDetail.Point> points = new ArrayList<>(); 266 List<StDetail.Point> points = new ArrayList<>();
267 for (StDetail.Point point: data.points) { 267 for (StDetail.Point point: data.points) {
268 if (point.beforeState < 1) points.add(point); 268 if (point.beforeState < 1) points.add(point);
269 } 269 }
270 binding.tableRoot.setClipToOutline(true); 270 binding.tableRoot.setClipToOutline(true);
271 binding.rvPoint.setAdapter(new Adapter(points)); 271 binding.rvPoint.setAdapter(new Adapter(points));
272 binding.tableRoot.setVisibility(points.isEmpty() ? View.GONE : View.VISIBLE); 272 binding.tableRoot.setVisibility(points.isEmpty() ? View.GONE : View.VISIBLE);
273 binding.flPointDesc.setVisibility(points.isEmpty() ? View.GONE : View.VISIBLE); 273 binding.flPointDesc.setVisibility(points.isEmpty() ? View.GONE : View.VISIBLE);
274 binding.flEmptyPoints.setVisibility(points.isEmpty() ? View.VISIBLE : View.GONE); 274 binding.flEmptyPoints.setVisibility(points.isEmpty() ? View.VISIBLE : View.GONE);
275 } 275 }
276 276
277 private void setupChart() { 277 private void setupChart() {
278 binding.lineChart.getLegend().setForm(Legend.LegendForm.NONE); 278 binding.lineChart.getLegend().setForm(Legend.LegendForm.NONE);
279 binding.lineChart.setScaleEnabled(false); 279 binding.lineChart.setScaleEnabled(false);
280 binding.lineChart.setTouchEnabled(false); 280 binding.lineChart.setTouchEnabled(false);
281 binding.lineChart.setDescription(null); 281 binding.lineChart.setDescription(null);
282 binding.lineChart.getAxisRight().setEnabled(false); 282 binding.lineChart.getAxisRight().setEnabled(false);
283 YAxis yAxis = binding.lineChart.getAxisLeft(); 283 YAxis yAxis = binding.lineChart.getAxisLeft();
284 yAxis.setDrawAxisLine(false); 284 yAxis.setDrawAxisLine(false);
285 yAxis.setDrawGridLines(true); 285 yAxis.setDrawGridLines(true);
286 yAxis.setGridColor(0xFFDDDDDD); 286 yAxis.setGridColor(0xFFDDDDDD);
287 yAxis.setTextColor(0xFF333333); 287 yAxis.setTextColor(0xFF333333);
288 if (type == 0) { 288 if (type == 0) {
289 yAxis.setTextSize(16); 289 yAxis.setTextSize(16);
290 yAxis.setXOffset(16); 290 yAxis.setXOffset(16);
291 } else { 291 } else {
292 yAxis.setTextSize(13); 292 yAxis.setTextSize(13);
293 } 293 }
294 yAxis.setAxisMinimum(0); 294 yAxis.setAxisMinimum(0);
295 yAxis.setAxisMaximum(1); 295 yAxis.setAxisMaximum(1);
296 yAxis.setLabelCount(5, true); 296 yAxis.setLabelCount(5, true);
297 yAxis.setValueFormatter(new ValueFormatter() { 297 yAxis.setValueFormatter(new ValueFormatter() {
298 @Override 298 @Override
299 public String getFormattedValue(float value) { 299 public String getFormattedValue(float value) {
300 return new DecimalFormat("0%").format(value); 300 return new DecimalFormat("0%").format(value);
301 } 301 }
302 }); 302 });
303 303
304 XAxis xAxis = binding.lineChart.getXAxis(); 304 XAxis xAxis = binding.lineChart.getXAxis();
305 xAxis.setPosition(XAxis.XAxisPosition.BOTTOM); 305 xAxis.setPosition(XAxis.XAxisPosition.BOTTOM);
306 xAxis.setDrawAxisLine(false); 306 xAxis.setDrawAxisLine(false);
307 xAxis.setDrawGridLines(false); 307 xAxis.setDrawGridLines(false);
308 xAxis.setTextColor(0xFF333333); 308 xAxis.setTextColor(0xFF333333);
309 xAxis.setTextSize(16); 309 xAxis.setTextSize(16);
310 xAxis.setYOffset(16); 310 xAxis.setYOffset(16);
311 if (type == 0) { 311 if (type == 0) {
312 xAxis.setAxisMinimum(0.5f); 312 xAxis.setAxisMinimum(0.5f);
313 xAxis.setAxisMaximum(5.5f); 313 xAxis.setAxisMaximum(5.5f);
314 xAxis.setLabelCount(11, true); 314 xAxis.setLabelCount(11, true);
315 xAxis.setValueFormatter(new ValueFormatter() { 315 xAxis.setValueFormatter(new ValueFormatter() {
316 @Override 316 @Override
317 public String getFormattedValue(float value) { 317 public String getFormattedValue(float value) {
318 if (value == 1) { 318 if (value == 1) {
319 return "周一"; 319 return "周一";
320 } else if (value == 2) { 320 } else if (value == 2) {
321 return "周二"; 321 return "周二";
322 } else if (value == 3) { 322 } else if (value == 3) {
323 return "周三"; 323 return "周三";
324 } else if (value == 4) { 324 } else if (value == 4) {
325 return "周四"; 325 return "周四";
326 } else if (value == 5) { 326 } else if (value == 5) {
327 return "周五"; 327 return "周五";
328 } 328 }
329 return ""; 329 return "";
330 } 330 }
331 }); 331 });
332 } else { 332 } else {
333 xAxis.setTextSize(13); 333 xAxis.setTextSize(13);
334 } 334 }
335 } 335 }
336 336
337 private String fromColor(String str, String color) { 337 private String fromColor(String str, String color) {
338 return String.format("<font color='%s'><b>%s</b></font>", color, str); 338 return String.format("<font color='%s'><b>%s</b></font>", color, str);
339 } 339 }
340 340
341 private void switchPage() { 341 private void switchPage() {
342 Intent intent = new Intent(getIntent()); 342 Intent intent = new Intent(getIntent());
343 intent.putExtra("a4", !a4); 343 intent.putExtra("a4", !a4);
344 startActivity(intent); 344 startActivity(intent);
345 finish(); 345 finish();
346 } 346 }
347 347
348 private Uri prepareShare() { 348 private Uri prepareShare() {
349 try { 349 try {
350 binding.toolbar.setVisibility(View.INVISIBLE); 350 binding.toolbar.setVisibility(View.INVISIBLE);
351 Bitmap bitmap = BitmapUtils.shotView(binding.root); 351 Bitmap bitmap = BitmapUtils.shotView(binding.root);
352 binding.toolbar.setVisibility(View.VISIBLE); 352 binding.toolbar.setVisibility(View.VISIBLE);
353 353
354 String fileName = student.stuName + "_周作业学习报告_" + System.currentTimeMillis(); 354 String fileName = student.stuName + "_周作业学习报告_" + System.currentTimeMillis();
355 return ContentUtil.saveBitmapToGallery(this, bitmap, fileName); 355 return ContentUtil.saveBitmapToGallery(this, bitmap, fileName);
356 } catch (Exception e) { 356 } catch (Exception e) {
357 e.printStackTrace(); 357 e.printStackTrace();
358 } 358 }
359 return null; 359 return null;
360 } 360 }
361 361
362 @Override 362 @Override
363 protected ActivityHuyouDetailBinding getViewBinding() { 363 protected ActivityHuyouDetailBinding getViewBinding() {
364 a4 = getIntent().getBooleanExtra("a4", false); 364 a4 = getIntent().getBooleanExtra("a4", false);
365 View view; 365 View view;
366 if (a4) view = getLayoutInflater().inflate(R.layout.activity_huyou_detail_a4, null); 366 if (a4) view = getLayoutInflater().inflate(R.layout.activity_huyou_detail_a4, null);
367 else view = getLayoutInflater().inflate(R.layout.activity_huyou_detail, null); 367 else view = getLayoutInflater().inflate(R.layout.activity_huyou_detail, null);
368 return ActivityHuyouDetailBinding.bind(view); 368 return ActivityHuyouDetailBinding.bind(view);
369 } 369 }
370 370
371 public static class Adapter extends BaseQuickAdapter<StDetail.Point, BaseViewHolder> { 371 public static class Adapter extends BaseQuickAdapter<StDetail.Point, BaseViewHolder> {
372 372
373 public Adapter(@Nullable List<StDetail.Point> data) { 373 public Adapter(@Nullable List<StDetail.Point> data) {
374 super(R.layout.item_huyou_point, data); 374 super(R.layout.item_huyou_point, data);
375 } 375 }
376 376
377 @Override 377 @Override
378 protected void convert(@NonNull BaseViewHolder holder, StDetail.Point point) { 378 protected void convert(@NonNull BaseViewHolder holder, StDetail.Point point) {
379 DecimalFormat format1 = new DecimalFormat("0%"); 379 DecimalFormat format1 = new DecimalFormat("0%");
380 DecimalFormat format2 = new DecimalFormat("0"); 380 DecimalFormat format2 = new DecimalFormat("0");
381 holder.setText(R.id.tvName, point.pointName); 381 holder.setText(R.id.tvName, point.pointName);
382 holder.setText(R.id.tvBefore, format1.format(point.beforeState)); 382 holder.setText(R.id.tvBefore, format1.format(point.beforeState));
383 holder.setText(R.id.tvAfter, format1.format(point.afterState)); 383 holder.setText(R.id.tvAfter, format1.format(point.afterState));
384 holder.setText(R.id.tvGap, format2.format(point.gap * 100)); 384 holder.setText(R.id.tvGap, format2.format(point.gap * 100));
385 holder.setGone(R.id.ivFlag, getData().indexOf(point) == 0); 385 holder.setGone(R.id.ivFlag, getData().indexOf(point) == 0);
386 holder.<TextView>getView(R.id.tvName).setTooltipText(point.pointName); 386 holder.<TextView>getView(R.id.tvName).setTooltipText(point.pointName);
387 387
388 TextView before = holder.getView(R.id.tvBeforeState); 388 TextView before = holder.getView(R.id.tvBeforeState);
389 TextView after = holder.getView(R.id.tvAfterState); 389 TextView after = holder.getView(R.id.tvAfterState);
390 390
391 if (point.beforeState >= 0.9) { 391 if (point.beforeState >= 0.9) {
392 before.setText("掌握优秀"); 392 before.setText("掌握优秀");
393 before.setBackgroundTintList(ColorStateList.valueOf(0xFF4FBB7A)); 393 before.setBackgroundTintList(ColorStateList.valueOf(0xFF4FBB7A));
394 } else if (point.beforeState >= 0.8) { 394 } else if (point.beforeState >= 0.8) {
395 before.setText("掌握良好"); 395 before.setText("掌握良好");
396 before.setBackgroundTintList(ColorStateList.valueOf(0xFF489AFA)); 396 before.setBackgroundTintList(ColorStateList.valueOf(0xFF489AFA));
397 } else if (point.beforeState >= 0.6) { 397 } else if (point.beforeState >= 0.6) {
398 before.setText("掌握一般"); 398 before.setText("掌握一般");
399 before.setBackgroundTintList(ColorStateList.valueOf(0xFFF58725)); 399 before.setBackgroundTintList(ColorStateList.valueOf(0xFFF58725));
400 } else { 400 } else {
401 before.setText("掌握薄弱"); 401 before.setText("掌握薄弱");
402 before.setBackgroundTintList(ColorStateList.valueOf(0xFFEA5127)); 402 before.setBackgroundTintList(ColorStateList.valueOf(0xFFEA5127));
403 } 403 }
404 if (point.afterState >= 0.9) { 404 if (point.afterState >= 0.9) {
405 after.setText("掌握优秀"); 405 after.setText("掌握优秀");
406 after.setBackgroundTintList(ColorStateList.valueOf(0xFF4FBB7A)); 406 after.setBackgroundTintList(ColorStateList.valueOf(0xFF4FBB7A));
407 } else if (point.afterState >= 0.8) { 407 } else if (point.afterState >= 0.8) {
408 after.setText("掌握良好"); 408 after.setText("掌握良好");
409 after.setBackgroundTintList(ColorStateList.valueOf(0xFF489AFA)); 409 after.setBackgroundTintList(ColorStateList.valueOf(0xFF489AFA));
410 } else if (point.afterState >= 0.6) { 410 } else if (point.afterState >= 0.6) {
411 after.setText("掌握一般"); 411 after.setText("掌握一般");
412 after.setBackgroundTintList(ColorStateList.valueOf(0xFFF58725)); 412 after.setBackgroundTintList(ColorStateList.valueOf(0xFFF58725));
413 } else { 413 } else {
414 after.setText("掌握薄弱"); 414 after.setText("掌握薄弱");
415 after.setBackgroundTintList(ColorStateList.valueOf(0xFFEA5127)); 415 after.setBackgroundTintList(ColorStateList.valueOf(0xFFEA5127));
416 } 416 }
417 417
418 holder.setText(R.id.tvHuyou, format1.format(point.correctness)); 418 holder.setText(R.id.tvHuyou, format1.format(point.correctness));
419 } 419 }
420 420
421 } 421 }
422 422
423 } 423 }
424 424
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:layout_width="378dp" 18 android:layout_width="378dp"
19 android:layout_height="match_parent"> 19 android:layout_height="match_parent">
20 20
21 <FrameLayout 21 <FrameLayout
22 android:orientation="horizontal" 22 android:orientation="horizontal"
23 android:paddingHorizontal="16dp" 23 android:paddingHorizontal="16dp"
24 android:layout_marginTop="34dp" 24 android:layout_marginTop="16dp"
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 <FrameLayout 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"
34 android:text="返回"
35 android:textSize="16sp"
36 android:textColor="#333"
37 android:layout_width="wrap_content"
38 android:layout_height="wrap_content"/>
39 <Space style="@style/empty_space"/>
40 <TextView
33 android:id="@+id/btnSwitch" 41 android:id="@+id/btnSwitch"
34 android:text="A4版" 42 android:text="A4版"
35 android:textSize="16sp" 43 android:textSize="16sp"
36 android:textColor="#333" 44 android:textColor="#333"
37 android:layout_marginStart="48dp"
38 android:layout_width="wrap_content" 45 android:layout_width="wrap_content"
39 android:layout_height="wrap_content"/> 46 android:layout_height="wrap_content"/>
40 <TextView 47 <TextView
41 android:id="@+id/btnShare" 48 android:id="@+id/btnShare"
42 android:text="分享" 49 android:text="分享"
43 android:textSize="16sp" 50 android:textSize="16sp"
44 android:textColor="#333" 51 android:textColor="#333"
52 android:layout_marginStart="8dp"
45 android:layout_width="wrap_content" 53 android:layout_width="wrap_content"
46 android:layout_height="wrap_content"/> 54 android:layout_height="wrap_content"/>
47 <TextView 55 <TextView
48 android:id="@+id/btnSame" 56 android:id="@+id/btnSame"
49 android:visibility="gone" 57 android:visibility="gone"
50 android:text="举一反三" 58 android:text="举一反三"
51 android:textSize="16sp" 59 android:textSize="16sp"
52 android:textColor="#333" 60 android:textColor="#333"
53 android:layout_gravity="center_vertical|end" 61 android:layout_gravity="center_vertical|end"
54 android:layout_width="wrap_content" 62 android:layout_width="wrap_content"
55 android:layout_height="wrap_content"/> 63 android:layout_height="wrap_content"/>
56 </FrameLayout> 64 </LinearLayout>
57 <TextView 65 <TextView
58 android:id="@+id/tvTitle" 66 android:id="@+id/tvTitle"
59 android:text="周作业学习报告" 67 android:text="周作业学习报告"
60 android:textSize="18sp" 68 android:textSize="18sp"
61 android:textColor="#333" 69 android:textColor="#333"
62 android:textStyle="bold" 70 android:textStyle="bold"
63 android:layout_gravity="center_horizontal" 71 android:layout_gravity="center_horizontal"
64 android:layout_width="wrap_content" 72 android:layout_width="wrap_content"
65 android:layout_height="wrap_content" /> 73 android:layout_height="wrap_content" />
66 </FrameLayout> 74 </FrameLayout>
67 75
68 76
69 <ImageView 77 <ImageView
70 android:src="@drawable/png_huyou_top_bg" 78 android:src="@drawable/png_huyou_top_bg"
71 android:elevation="1dp" 79 android:elevation="1dp"
72 android:layout_gravity="end" 80 android:layout_gravity="end"
73 android:layout_marginHorizontal="16dp" 81 android:layout_marginHorizontal="16dp"
74 android:layout_width="102dp" 82 android:layout_width="102dp"
75 android:layout_height="90dp"/> 83 android:layout_height="90dp"/>
76 84
77 <LinearLayout 85 <LinearLayout
78 android:orientation="vertical" 86 android:orientation="vertical"
79 android:background="@drawable/png_info_bg" 87 android:background="@drawable/png_info_bg"
80 android:padding="16dp" 88 android:padding="16dp"
81 android:layout_marginHorizontal="16dp" 89 android:layout_marginHorizontal="16dp"
82 android:layout_marginTop="-60dp" 90 android:layout_marginTop="-60dp"
83 android:layout_width="match_parent" 91 android:layout_width="match_parent"
84 android:layout_height="144dp"> 92 android:layout_height="144dp">
85 <LinearLayout 93 <LinearLayout
86 android:orientation="horizontal" 94 android:orientation="horizontal"
87 android:layout_width="match_parent" 95 android:layout_width="match_parent"
88 android:layout_height="wrap_content"> 96 android:layout_height="wrap_content">
89 <androidx.constraintlayout.utils.widget.ImageFilterView 97 <androidx.constraintlayout.utils.widget.ImageFilterView
90 android:id="@+id/ivAvatar" 98 android:id="@+id/ivAvatar"
91 tools:background="#2491FF" 99 tools:background="#2491FF"
92 app:round="40dp" 100 app:round="40dp"
93 android:layout_width="40dp" 101 android:layout_width="40dp"
94 android:layout_height="40dp"/> 102 android:layout_height="40dp"/>
95 <LinearLayout 103 <LinearLayout
96 android:orientation="vertical" 104 android:orientation="vertical"
97 android:layout_gravity="center_vertical" 105 android:layout_gravity="center_vertical"
98 android:layout_marginStart="10dp" 106 android:layout_marginStart="10dp"
99 android:layout_width="wrap_content" 107 android:layout_width="wrap_content"
100 android:layout_height="wrap_content"> 108 android:layout_height="wrap_content">
101 <TextView 109 <TextView
102 android:id="@+id/tvStuName" 110 android:id="@+id/tvStuName"
103 tools:text="杨同学 " 111 tools:text="杨同学 "
104 android:textSize="14sp" 112 android:textSize="14sp"
105 android:textColor="#333" 113 android:textColor="#333"
106 android:textStyle="bold" 114 android:textStyle="bold"
107 android:layout_width="wrap_content" 115 android:layout_width="wrap_content"
108 android:layout_height="wrap_content"/> 116 android:layout_height="wrap_content"/>
109 <TextView 117 <TextView
110 android:id="@+id/tvGrade" 118 android:id="@+id/tvGrade"
111 tools:text="七年级" 119 tools:text="七年级"
112 android:textSize="13sp" 120 android:textSize="13sp"
113 android:textColor="#666" 121 android:textColor="#666"
114 android:textStyle="bold" 122 android:textStyle="bold"
115 android:layout_width="wrap_content" 123 android:layout_width="wrap_content"
116 android:layout_height="wrap_content"/> 124 android:layout_height="wrap_content"/>
117 </LinearLayout> 125 </LinearLayout>
118 </LinearLayout> 126 </LinearLayout>
119 <LinearLayout 127 <LinearLayout
120 android:orientation="horizontal" 128 android:orientation="horizontal"
121 android:background="@drawable/shape_radius_10" 129 android:background="@drawable/shape_radius_10"
122 android:backgroundTint="#F4FAFF" 130 android:backgroundTint="#F4FAFF"
123 android:layout_marginTop="12dp" 131 android:layout_marginTop="12dp"
124 android:layout_width="match_parent" 132 android:layout_width="match_parent"
125 android:layout_height="60dp"> 133 android:layout_height="60dp">
126 <LinearLayout 134 <LinearLayout
127 android:orientation="vertical" 135 android:orientation="vertical"
128 android:gravity="center" 136 android:gravity="center"
129 android:layout_width="0dp" 137 android:layout_width="0dp"
130 android:layout_height="match_parent" 138 android:layout_height="match_parent"
131 android:layout_weight="1"> 139 android:layout_weight="1">
132 <LinearLayout 140 <LinearLayout
133 android:paddingEnd="20dp" 141 android:paddingEnd="20dp"
134 android:gravity="center_vertical" 142 android:gravity="center_vertical"
135 android:layout_width="wrap_content" 143 android:layout_width="wrap_content"
136 android:layout_height="wrap_content"> 144 android:layout_height="wrap_content">
137 <ImageView 145 <ImageView
138 android:src="@drawable/png_iv_subject" 146 android:src="@drawable/png_iv_subject"
139 android:layout_marginEnd="5dp" 147 android:layout_marginEnd="5dp"
140 android:layout_width="16dp" 148 android:layout_width="16dp"
141 android:layout_height="14dp"/> 149 android:layout_height="14dp"/>
142 <TextView 150 <TextView
143 android:text="学科" 151 android:text="学科"
144 android:textSize="12sp" 152 android:textSize="12sp"
145 android:textColor="#333" 153 android:textColor="#333"
146 android:textStyle="bold" 154 android:textStyle="bold"
147 android:layout_width="wrap_content" 155 android:layout_width="wrap_content"
148 android:layout_height="wrap_content"/> 156 android:layout_height="wrap_content"/>
149 </LinearLayout> 157 </LinearLayout>
150 <TextView 158 <TextView
151 android:id="@+id/tvSubject" 159 android:id="@+id/tvSubject"
152 tools:text="数学" 160 tools:text="数学"
153 android:textSize="12sp" 161 android:textSize="12sp"
154 android:textColor="#3BC3B6" 162 android:textColor="#3BC3B6"
155 android:textStyle="bold" 163 android:textStyle="bold"
156 android:layout_marginTop="8dp" 164 android:layout_marginTop="8dp"
157 android:layout_width="wrap_content" 165 android:layout_width="wrap_content"
158 android:layout_height="wrap_content"/> 166 android:layout_height="wrap_content"/>
159 </LinearLayout> 167 </LinearLayout>
160 <LinearLayout 168 <LinearLayout
161 android:orientation="vertical" 169 android:orientation="vertical"
162 android:gravity="center" 170 android:gravity="center"
163 android:layout_width="0dp" 171 android:layout_width="0dp"
164 android:layout_height="match_parent" 172 android:layout_height="match_parent"
165 android:layout_weight="1"> 173 android:layout_weight="1">
166 <LinearLayout 174 <LinearLayout
167 android:paddingEnd="20dp" 175 android:paddingEnd="20dp"
168 android:gravity="center_vertical" 176 android:gravity="center_vertical"
169 android:layout_width="wrap_content" 177 android:layout_width="wrap_content"
170 android:layout_height="wrap_content"> 178 android:layout_height="wrap_content">
171 <ImageView 179 <ImageView
172 android:src="@drawable/png_ic_during" 180 android:src="@drawable/png_ic_during"
173 android:layout_marginEnd="5dp" 181 android:layout_marginEnd="5dp"
174 android:layout_width="14dp" 182 android:layout_width="14dp"
175 android:layout_height="13dp"/> 183 android:layout_height="13dp"/>
176 <TextView 184 <TextView
177 android:text="周期" 185 android:text="周期"
178 android:textSize="12sp" 186 android:textSize="12sp"
179 android:textColor="#333" 187 android:textColor="#333"
180 android:textStyle="bold" 188 android:textStyle="bold"
181 android:layout_width="wrap_content" 189 android:layout_width="wrap_content"
182 android:layout_height="wrap_content"/> 190 android:layout_height="wrap_content"/>
183 </LinearLayout> 191 </LinearLayout>
184 <TextView 192 <TextView
185 android:id="@+id/tvDate" 193 android:id="@+id/tvDate"
186 tools:text="2024.09.01-2024.09.30" 194 tools:text="2024.09.01-2024.09.30"
187 android:textSize="12sp" 195 android:textSize="12sp"
188 android:textColor="#3BC3B6" 196 android:textColor="#3BC3B6"
189 android:textStyle="bold" 197 android:textStyle="bold"
190 android:layout_marginTop="8dp" 198 android:layout_marginTop="8dp"
191 android:layout_width="wrap_content" 199 android:layout_width="wrap_content"
192 android:layout_height="wrap_content"/> 200 android:layout_height="wrap_content"/>
193 </LinearLayout> 201 </LinearLayout>
194 </LinearLayout> 202 </LinearLayout>
195 </LinearLayout> 203 </LinearLayout>
196 204
197 <LinearLayout 205 <LinearLayout
198 android:orientation="vertical" 206 android:orientation="vertical"
199 android:background="@drawable/shape_radius_10" 207 android:background="@drawable/shape_radius_10"
200 android:backgroundTint="@color/white" 208 android:backgroundTint="@color/white"
201 android:padding="16dp" 209 android:padding="16dp"
202 android:layout_marginHorizontal="16dp" 210 android:layout_marginHorizontal="16dp"
203 android:layout_marginTop="12dp" 211 android:layout_marginTop="12dp"
204 android:layout_width="match_parent" 212 android:layout_width="match_parent"
205 android:layout_height="wrap_content"> 213 android:layout_height="wrap_content">
206 <TextView 214 <TextView
207 android:text="薄弱知识点总评" 215 android:text="薄弱知识点总评"
208 android:textSize="16sp" 216 android:textSize="16sp"
209 android:textColor="#333333" 217 android:textColor="#333333"
210 android:textStyle="bold" 218 android:textStyle="bold"
211 android:background="@drawable/bg_hy_weak_title" 219 android:background="@drawable/bg_hy_weak_title"
212 android:paddingStart="20dp" 220 android:paddingStart="20dp"
213 android:paddingEnd="4dp" 221 android:paddingEnd="4dp"
214 android:layout_gravity="center_horizontal" 222 android:layout_gravity="center_horizontal"
215 android:layout_width="wrap_content" 223 android:layout_width="wrap_content"
216 android:layout_height="wrap_content"/> 224 android:layout_height="wrap_content"/>
217 <LinearLayout 225 <LinearLayout
218 android:orientation="horizontal" 226 android:orientation="horizontal"
219 android:layout_marginTop="28dp" 227 android:layout_marginTop="28dp"
220 android:layout_width="match_parent" 228 android:layout_width="match_parent"
221 android:layout_height="wrap_content"> 229 android:layout_height="wrap_content">
222 <LinearLayout 230 <LinearLayout
223 android:orientation="vertical" 231 android:orientation="vertical"
224 android:layout_width="0dp" 232 android:layout_width="0dp"
225 android:layout_height="wrap_content" 233 android:layout_height="wrap_content"
226 android:layout_weight="1"> 234 android:layout_weight="1">
227 <TextView 235 <TextView
228 android:text="学习前" 236 android:text="学习前"
229 android:textSize="12sp" 237 android:textSize="12sp"
230 android:textColor="#333" 238 android:textColor="#333"
231 android:layout_gravity="center_horizontal" 239 android:layout_gravity="center_horizontal"
232 android:layout_width="wrap_content" 240 android:layout_width="wrap_content"
233 android:layout_height="wrap_content"/> 241 android:layout_height="wrap_content"/>
234 <FrameLayout 242 <FrameLayout
235 android:background="@drawable/png_huyou_progress_bg" 243 android:background="@drawable/png_huyou_progress_bg"
236 android:padding="8dp" 244 android:padding="8dp"
237 android:layout_gravity="center_horizontal" 245 android:layout_gravity="center_horizontal"
238 android:layout_marginTop="16dp" 246 android:layout_marginTop="16dp"
239 android:layout_width="126dp" 247 android:layout_width="126dp"
240 android:layout_height="126dp"> 248 android:layout_height="126dp">
241 <com.littlejie.circleprogress.CircleProgress 249 <com.littlejie.circleprogress.CircleProgress
242 android:id="@+id/cpBefore" 250 android:id="@+id/cpBefore"
243 app:arcWidth="15dp" 251 app:arcWidth="15dp"
244 app:bgArcWidth="15dp" 252 app:bgArcWidth="15dp"
245 app:arcColors="#F36A27" 253 app:arcColors="#F36A27"
246 app:bgArcColor="#FFF1EA" 254 app:bgArcColor="#FFF1EA"
247 app:startAngle="-90" 255 app:startAngle="-90"
248 app:sweepAngle="360" 256 app:sweepAngle="360"
249 app:maxValue="100" 257 app:maxValue="100"
250 app:value="0" 258 app:value="0"
251 app:hintColor="@color/transparent" 259 app:hintColor="@color/transparent"
252 app:unitColor="@color/transparent" 260 app:unitColor="@color/transparent"
253 app:valueColor="@color/transparent" 261 app:valueColor="@color/transparent"
254 android:layout_width="match_parent" 262 android:layout_width="match_parent"
255 android:layout_height="match_parent"/> 263 android:layout_height="match_parent"/>
256 <LinearLayout 264 <LinearLayout
257 android:orientation="vertical" 265 android:orientation="vertical"
258 android:gravity="center_horizontal" 266 android:gravity="center_horizontal"
259 android:layout_gravity="center" 267 android:layout_gravity="center"
260 android:layout_width="wrap_content" 268 android:layout_width="wrap_content"
261 android:layout_height="wrap_content"> 269 android:layout_height="wrap_content">
262 <LinearLayout 270 <LinearLayout
263 android:layout_width="wrap_content" 271 android:layout_width="wrap_content"
264 android:layout_height="wrap_content"> 272 android:layout_height="wrap_content">
265 <TextView 273 <TextView
266 android:id="@+id/pgBefore" 274 android:id="@+id/pgBefore"
267 tools:text="88" 275 tools:text="88"
268 android:textSize="25sp" 276 android:textSize="25sp"
269 android:textColor="#EA5127" 277 android:textColor="#EA5127"
270 android:textStyle="bold" 278 android:textStyle="bold"
271 android:layout_width="wrap_content" 279 android:layout_width="wrap_content"
272 android:layout_height="wrap_content"/> 280 android:layout_height="wrap_content"/>
273 <TextView 281 <TextView
274 android:text="%" 282 android:text="%"
275 android:textSize="12sp" 283 android:textSize="12sp"
276 android:textColor="#EA5127" 284 android:textColor="#EA5127"
277 android:layout_width="wrap_content" 285 android:layout_width="wrap_content"
278 android:layout_height="wrap_content"/> 286 android:layout_height="wrap_content"/>
279 </LinearLayout> 287 </LinearLayout>
280 <TextView 288 <TextView
281 android:text="整体掌握程度" 289 android:text="整体掌握程度"
282 android:textSize="10sp" 290 android:textSize="10sp"
283 android:textColor="#333" 291 android:textColor="#333"
284 android:textStyle="bold" 292 android:textStyle="bold"
285 android:layout_marginTop="-2dp" 293 android:layout_marginTop="-2dp"
286 android:layout_width="wrap_content" 294 android:layout_width="wrap_content"
287 android:layout_height="wrap_content"/> 295 android:layout_height="wrap_content"/>
288 </LinearLayout> 296 </LinearLayout>
289 </FrameLayout> 297 </FrameLayout>
290 </LinearLayout> 298 </LinearLayout>
291 <LinearLayout 299 <LinearLayout
292 android:orientation="vertical" 300 android:orientation="vertical"
293 android:layout_width="0dp" 301 android:layout_width="0dp"
294 android:layout_height="wrap_content" 302 android:layout_height="wrap_content"
295 android:layout_weight="1"> 303 android:layout_weight="1">
296 <TextView 304 <TextView
297 android:text="学习后" 305 android:text="学习后"
298 android:textSize="12sp" 306 android:textSize="12sp"
299 android:textColor="#333" 307 android:textColor="#333"
300 android:layout_gravity="center_horizontal" 308 android:layout_gravity="center_horizontal"
301 android:layout_width="wrap_content" 309 android:layout_width="wrap_content"
302 android:layout_height="wrap_content"/> 310 android:layout_height="wrap_content"/>
303 <FrameLayout 311 <FrameLayout
304 android:background="@drawable/png_huyou_progress_bg" 312 android:background="@drawable/png_huyou_progress_bg"
305 android:padding="8dp" 313 android:padding="8dp"
306 android:layout_gravity="center_horizontal" 314 android:layout_gravity="center_horizontal"
307 android:layout_marginTop="16dp" 315 android:layout_marginTop="16dp"
308 android:layout_width="126dp" 316 android:layout_width="126dp"
309 android:layout_height="126dp"> 317 android:layout_height="126dp">
310 <com.littlejie.circleprogress.CircleProgress 318 <com.littlejie.circleprogress.CircleProgress
311 android:id="@+id/cpAfter" 319 android:id="@+id/cpAfter"
312 app:arcWidth="15dp" 320 app:arcWidth="15dp"
313 app:bgArcWidth="15dp" 321 app:bgArcWidth="15dp"
314 app:arcColors="#3BC3B6" 322 app:arcColors="#3BC3B6"
315 app:bgArcColor="#C2FCF6" 323 app:bgArcColor="#C2FCF6"
316 app:startAngle="-90" 324 app:startAngle="-90"
317 app:sweepAngle="360" 325 app:sweepAngle="360"
318 app:maxValue="100" 326 app:maxValue="100"
319 app:value="0" 327 app:value="0"
320 app:hintColor="@color/transparent" 328 app:hintColor="@color/transparent"
321 app:unitColor="@color/transparent" 329 app:unitColor="@color/transparent"
322 app:valueColor="@color/transparent" 330 app:valueColor="@color/transparent"
323 android:layout_width="match_parent" 331 android:layout_width="match_parent"
324 android:layout_height="match_parent"/> 332 android:layout_height="match_parent"/>
325 <LinearLayout 333 <LinearLayout
326 android:orientation="vertical" 334 android:orientation="vertical"
327 android:gravity="center_horizontal" 335 android:gravity="center_horizontal"
328 android:layout_gravity="center" 336 android:layout_gravity="center"
329 android:layout_width="wrap_content" 337 android:layout_width="wrap_content"
330 android:layout_height="wrap_content"> 338 android:layout_height="wrap_content">
331 <LinearLayout 339 <LinearLayout
332 android:layout_width="wrap_content" 340 android:layout_width="wrap_content"
333 android:layout_height="wrap_content"> 341 android:layout_height="wrap_content">
334 <TextView 342 <TextView
335 android:id="@+id/pgAfter" 343 android:id="@+id/pgAfter"
336 tools:text="88" 344 tools:text="88"
337 android:textSize="25sp" 345 android:textSize="25sp"
338 android:textColor="#3BC3B6" 346 android:textColor="#3BC3B6"
339 android:textStyle="bold" 347 android:textStyle="bold"
340 android:layout_width="wrap_content" 348 android:layout_width="wrap_content"
341 android:layout_height="wrap_content"/> 349 android:layout_height="wrap_content"/>
342 <TextView 350 <TextView
343 android:text="%" 351 android:text="%"
344 android:textSize="12sp" 352 android:textSize="12sp"
345 android:textColor="#3BC3B6" 353 android:textColor="#3BC3B6"
346 android:layout_width="wrap_content" 354 android:layout_width="wrap_content"
347 android:layout_height="wrap_content"/> 355 android:layout_height="wrap_content"/>
348 </LinearLayout> 356 </LinearLayout>
349 <TextView 357 <TextView
350 android:text="整体掌握程度" 358 android:text="整体掌握程度"
351 android:textSize="10sp" 359 android:textSize="10sp"
352 android:textColor="#333" 360 android:textColor="#333"
353 android:textStyle="bold" 361 android:textStyle="bold"
354 android:layout_marginTop="-2dp" 362 android:layout_marginTop="-2dp"
355 android:layout_width="wrap_content" 363 android:layout_width="wrap_content"
356 android:layout_height="wrap_content"/> 364 android:layout_height="wrap_content"/>
357 </LinearLayout> 365 </LinearLayout>
358 </FrameLayout> 366 </FrameLayout>
359 </LinearLayout> 367 </LinearLayout>
360 </LinearLayout> 368 </LinearLayout>
361 369
362 <FrameLayout 370 <FrameLayout
363 android:layout_marginTop="20dp" 371 android:layout_marginTop="20dp"
364 android:layout_width="match_parent" 372 android:layout_width="match_parent"
365 android:layout_height="wrap_content"> 373 android:layout_height="wrap_content">
366 <ImageView 374 <ImageView
367 android:src="@drawable/png_hy_weak_comment" 375 android:src="@drawable/png_hy_weak_comment"
368 android:layout_width="16dp" 376 android:layout_width="16dp"
369 android:layout_height="18dp"/> 377 android:layout_height="18dp"/>
370 <TextView 378 <TextView
371 android:id="@+id/tvWeakRate" 379 android:id="@+id/tvWeakRate"
372 android:textSize="16sp" 380 android:textSize="16sp"
373 android:textColor="#333" 381 android:textColor="#333"
374 android:lineSpacingMultiplier="1.3" 382 android:lineSpacingMultiplier="1.3"
375 android:layout_width="wrap_content" 383 android:layout_width="wrap_content"
376 android:layout_height="wrap_content"/> 384 android:layout_height="wrap_content"/>
377 </FrameLayout> 385 </FrameLayout>
378 </LinearLayout> 386 </LinearLayout>
379 387
380 <LinearLayout 388 <LinearLayout
381 android:orientation="vertical" 389 android:orientation="vertical"
382 android:background="@drawable/shape_radius_10" 390 android:background="@drawable/shape_radius_10"
383 android:backgroundTint="@color/white" 391 android:backgroundTint="@color/white"
384 android:padding="16dp" 392 android:padding="16dp"
385 android:layout_marginHorizontal="16dp" 393 android:layout_marginHorizontal="16dp"
386 android:layout_marginTop="12dp" 394 android:layout_marginTop="12dp"
387 android:layout_width="match_parent" 395 android:layout_width="match_parent"
388 android:layout_height="wrap_content"> 396 android:layout_height="wrap_content">
389 397
390 <TextView 398 <TextView
391 android:text="作业概括" 399 android:text="作业概括"
392 android:textSize="16sp" 400 android:textSize="16sp"
393 android:textColor="#333333" 401 android:textColor="#333333"
394 android:textStyle="bold" 402 android:textStyle="bold"
395 android:background="@drawable/bg_hy_summary_title" 403 android:background="@drawable/bg_hy_summary_title"
396 android:paddingStart="28dp" 404 android:paddingStart="28dp"
397 android:paddingEnd="4dp" 405 android:paddingEnd="4dp"
398 android:layout_gravity="center_horizontal" 406 android:layout_gravity="center_horizontal"
399 android:layout_width="wrap_content" 407 android:layout_width="wrap_content"
400 android:layout_height="wrap_content"/> 408 android:layout_height="wrap_content"/>
401 <LinearLayout 409 <LinearLayout
402 android:orientation="horizontal" 410 android:orientation="horizontal"
403 android:background="@drawable/shape_radius_5" 411 android:background="@drawable/shape_radius_5"
404 android:backgroundTint="#F4FAFF" 412 android:backgroundTint="#F4FAFF"
405 android:layout_width="match_parent" 413 android:layout_width="match_parent"
406 android:layout_height="80dp" 414 android:layout_height="80dp"
407 android:layout_marginTop="16dp"> 415 android:layout_marginTop="16dp">
408 <LinearLayout 416 <LinearLayout
409 android:orientation="vertical" 417 android:orientation="vertical"
410 android:gravity="center" 418 android:gravity="center"
411 android:layout_width="0dp" 419 android:layout_width="0dp"
412 android:layout_height="match_parent" 420 android:layout_height="match_parent"
413 android:layout_weight="1"> 421 android:layout_weight="1">
414 <LinearLayout 422 <LinearLayout
415 android:orientation="horizontal" 423 android:orientation="horizontal"
416 android:gravity="center_vertical" 424 android:gravity="center_vertical"
417 android:layout_width="wrap_content" 425 android:layout_width="wrap_content"
418 android:layout_height="wrap_content"> 426 android:layout_height="wrap_content">
419 <ImageView 427 <ImageView
420 android:src="@drawable/png_icon_statistical_accuracy" 428 android:src="@drawable/png_icon_statistical_accuracy"
421 android:layout_width="12dp" 429 android:layout_width="12dp"
422 android:layout_height="13dp"/> 430 android:layout_height="13dp"/>
423 <TextView 431 <TextView
424 android:text="作业正确率" 432 android:text="作业正确率"
425 android:textSize="11sp" 433 android:textSize="11sp"
426 android:textColor="#333" 434 android:textColor="#333"
427 android:textStyle="bold" 435 android:textStyle="bold"
428 android:layout_marginStart="5dp" 436 android:layout_marginStart="5dp"
429 android:layout_width="wrap_content" 437 android:layout_width="wrap_content"
430 android:layout_height="wrap_content"/> 438 android:layout_height="wrap_content"/>
431 </LinearLayout> 439 </LinearLayout>
432 <LinearLayout 440 <LinearLayout
433 android:orientation="horizontal" 441 android:orientation="horizontal"
434 android:layout_marginTop="8dp" 442 android:layout_marginTop="8dp"
435 android:layout_width="wrap_content" 443 android:layout_width="wrap_content"
436 android:layout_height="wrap_content"> 444 android:layout_height="wrap_content">
437 <TextView 445 <TextView
438 android:id="@+id/tvTotalRate" 446 android:id="@+id/tvTotalRate"
439 tools:text="88" 447 tools:text="88"
440 android:textSize="14sp" 448 android:textSize="14sp"
441 android:textColor="#3BC3B6" 449 android:textColor="#3BC3B6"
442 android:textStyle="bold" 450 android:textStyle="bold"
443 android:layout_width="wrap_content" 451 android:layout_width="wrap_content"
444 android:layout_height="wrap_content"/> 452 android:layout_height="wrap_content"/>
445 <TextView 453 <TextView
446 android:text="%" 454 android:text="%"
447 android:textSize="9sp" 455 android:textSize="9sp"
448 android:textColor="#3BC3B6" 456 android:textColor="#3BC3B6"
449 android:textStyle="bold" 457 android:textStyle="bold"
450 android:layout_width="wrap_content" 458 android:layout_width="wrap_content"
451 android:layout_height="wrap_content"/> 459 android:layout_height="wrap_content"/>
452 </LinearLayout> 460 </LinearLayout>
453 </LinearLayout> 461 </LinearLayout>
454 <View 462 <View
455 android:background="#9ECAFC" 463 android:background="#9ECAFC"
456 android:layout_marginVertical="8dp" 464 android:layout_marginVertical="8dp"
457 android:layout_width="1dp" 465 android:layout_width="1dp"
458 android:layout_height="match_parent"/> 466 android:layout_height="match_parent"/>
459 <LinearLayout 467 <LinearLayout
460 android:orientation="vertical" 468 android:orientation="vertical"
461 android:gravity="center" 469 android:gravity="center"
462 android:layout_width="0dp" 470 android:layout_width="0dp"
463 android:layout_height="match_parent" 471 android:layout_height="match_parent"
464 android:layout_weight="1"> 472 android:layout_weight="1">
465 <LinearLayout 473 <LinearLayout
466 android:orientation="horizontal" 474 android:orientation="horizontal"
467 android:gravity="center_vertical" 475 android:gravity="center_vertical"
468 android:layout_width="wrap_content" 476 android:layout_width="wrap_content"
469 android:layout_height="wrap_content"> 477 android:layout_height="wrap_content">
470 <ImageView 478 <ImageView
471 android:src="@drawable/png_icon_statistical_accuracy" 479 android:src="@drawable/png_icon_statistical_accuracy"
472 android:layout_width="12dp" 480 android:layout_width="12dp"
473 android:layout_height="13dp"/> 481 android:layout_height="13dp"/>
474 <TextView 482 <TextView
475 android:text="答对题数" 483 android:text="答对题数"
476 android:textSize="11sp" 484 android:textSize="11sp"
477 android:textColor="#333" 485 android:textColor="#333"
478 android:textStyle="bold" 486 android:textStyle="bold"
479 android:layout_marginStart="5dp" 487 android:layout_marginStart="5dp"
480 android:layout_width="wrap_content" 488 android:layout_width="wrap_content"
481 android:layout_height="wrap_content"/> 489 android:layout_height="wrap_content"/>
482 </LinearLayout> 490 </LinearLayout>
483 <LinearLayout 491 <LinearLayout
484 android:orientation="horizontal" 492 android:orientation="horizontal"
485 android:layout_marginTop="8dp" 493 android:layout_marginTop="8dp"
486 android:layout_width="wrap_content" 494 android:layout_width="wrap_content"
487 android:layout_height="wrap_content"> 495 android:layout_height="wrap_content">
488 <TextView 496 <TextView
489 android:id="@+id/tvTotalCorrect" 497 android:id="@+id/tvTotalCorrect"
490 tools:text="88" 498 tools:text="88"
491 android:textSize="14sp" 499 android:textSize="14sp"
492 android:textColor="#3BC3B6" 500 android:textColor="#3BC3B6"
493 android:textStyle="bold" 501 android:textStyle="bold"
494 android:layout_width="wrap_content" 502 android:layout_width="wrap_content"
495 android:layout_height="wrap_content"/> 503 android:layout_height="wrap_content"/>
496 <TextView 504 <TextView
497 android:text="道" 505 android:text="道"
498 android:textSize="9sp" 506 android:textSize="9sp"
499 android:textColor="#3BC3B6" 507 android:textColor="#3BC3B6"
500 android:textStyle="bold" 508 android:textStyle="bold"
501 android:layout_width="wrap_content" 509 android:layout_width="wrap_content"
502 android:layout_height="wrap_content"/> 510 android:layout_height="wrap_content"/>
503 </LinearLayout> 511 </LinearLayout>
504 </LinearLayout> 512 </LinearLayout>
505 <View 513 <View
506 android:background="#9ECAFC" 514 android:background="#9ECAFC"
507 android:layout_marginVertical="8dp" 515 android:layout_marginVertical="8dp"
508 android:layout_width="1dp" 516 android:layout_width="1dp"
509 android:layout_height="match_parent"/> 517 android:layout_height="match_parent"/>
510 <LinearLayout 518 <LinearLayout
511 android:orientation="vertical" 519 android:orientation="vertical"
512 android:gravity="center" 520 android:gravity="center"
513 android:layout_width="0dp" 521 android:layout_width="0dp"
514 android:layout_height="match_parent" 522 android:layout_height="match_parent"
515 android:layout_weight="1"> 523 android:layout_weight="1">
516 <LinearLayout 524 <LinearLayout
517 android:orientation="horizontal" 525 android:orientation="horizontal"
518 android:gravity="center_vertical" 526 android:gravity="center_vertical"
519 android:layout_width="wrap_content" 527 android:layout_width="wrap_content"
520 android:layout_height="wrap_content"> 528 android:layout_height="wrap_content">
521 <ImageView 529 <ImageView
522 android:src="@drawable/png_icon_statistical_accuracy" 530 android:src="@drawable/png_icon_statistical_accuracy"
523 android:layout_width="12dp" 531 android:layout_width="12dp"
524 android:layout_height="13dp"/> 532 android:layout_height="13dp"/>
525 <TextView 533 <TextView
526 android:text="答错题数" 534 android:text="答错题数"
527 android:textSize="11sp" 535 android:textSize="11sp"
528 android:textColor="#333" 536 android:textColor="#333"
529 android:textStyle="bold" 537 android:textStyle="bold"
530 android:layout_marginStart="5dp" 538 android:layout_marginStart="5dp"
531 android:layout_width="wrap_content" 539 android:layout_width="wrap_content"
532 android:layout_height="wrap_content"/> 540 android:layout_height="wrap_content"/>
533 </LinearLayout> 541 </LinearLayout>
534 <LinearLayout 542 <LinearLayout
535 android:orientation="horizontal" 543 android:orientation="horizontal"
536 android:layout_marginTop="8dp" 544 android:layout_marginTop="8dp"
537 android:layout_width="wrap_content" 545 android:layout_width="wrap_content"
538 android:layout_height="wrap_content"> 546 android:layout_height="wrap_content">
539 <TextView 547 <TextView
540 android:id="@+id/tvTotalError" 548 android:id="@+id/tvTotalError"
541 tools:text="88" 549 tools:text="88"
542 android:textSize="14sp" 550 android:textSize="14sp"
543 android:textColor="#3BC3B6" 551 android:textColor="#3BC3B6"
544 android:textStyle="bold" 552 android:textStyle="bold"
545 android:layout_width="wrap_content" 553 android:layout_width="wrap_content"
546 android:layout_height="wrap_content"/> 554 android:layout_height="wrap_content"/>
547 <TextView 555 <TextView
548 android:text="道" 556 android:text="道"
549 android:textSize="9sp" 557 android:textSize="9sp"
550 android:textColor="#3BC3B6" 558 android:textColor="#3BC3B6"
551 android:textStyle="bold" 559 android:textStyle="bold"
552 android:layout_width="wrap_content" 560 android:layout_width="wrap_content"
553 android:layout_height="wrap_content"/> 561 android:layout_height="wrap_content"/>
554 </LinearLayout> 562 </LinearLayout>
555 </LinearLayout> 563 </LinearLayout>
556 </LinearLayout> 564 </LinearLayout>
557 565
558 <TextView 566 <TextView
559 android:text="每日作业正确率" 567 android:text="每日作业正确率"
560 android:textSize="13sp" 568 android:textSize="13sp"
561 android:textColor="#333" 569 android:textColor="#333"
562 android:textStyle="bold" 570 android:textStyle="bold"
563 android:layout_gravity="center_horizontal" 571 android:layout_gravity="center_horizontal"
564 android:layout_marginTop="16dp" 572 android:layout_marginTop="16dp"
565 android:layout_width="wrap_content" 573 android:layout_width="wrap_content"
566 android:layout_height="wrap_content"/> 574 android:layout_height="wrap_content"/>
567 <com.github.mikephil.charting.charts.LineChart 575 <com.github.mikephil.charting.charts.LineChart
568 android:id="@+id/lineChart" 576 android:id="@+id/lineChart"
569 android:layout_marginStart="-8dp" 577 android:layout_marginStart="-8dp"
570 android:layout_width="match_parent" 578 android:layout_width="match_parent"
571 android:layout_height="220dp"/> 579 android:layout_height="220dp"/>
572 <FrameLayout 580 <FrameLayout
573 android:layout_marginVertical="20dp" 581 android:layout_marginVertical="20dp"
574 android:layout_width="match_parent" 582 android:layout_width="match_parent"
575 android:layout_height="wrap_content"> 583 android:layout_height="wrap_content">
576 <ImageView 584 <ImageView
577 android:src="@drawable/png_hy_summary_comment" 585 android:src="@drawable/png_hy_summary_comment"
578 android:layout_width="22dp" 586 android:layout_width="22dp"
579 android:layout_height="22dp"/> 587 android:layout_height="22dp"/>
580 <TextView 588 <TextView
581 android:id="@+id/tvRating" 589 android:id="@+id/tvRating"
582 android:textSize="16sp" 590 android:textSize="16sp"
583 android:textColor="#333" 591 android:textColor="#333"
584 android:lineSpacingMultiplier="1.3" 592 android:lineSpacingMultiplier="1.3"
585 android:layout_marginTop="2dp" 593 android:layout_marginTop="2dp"
586 android:layout_width="match_parent" 594 android:layout_width="match_parent"
587 android:layout_height="wrap_content"/> 595 android:layout_height="wrap_content"/>
588 </FrameLayout> 596 </FrameLayout>
589 </LinearLayout> 597 </LinearLayout>
590 598
591 <Space 599 <Space
592 android:id="@+id/splitLine" 600 android:id="@+id/splitLine"
593 android:layout_marginTop="6dp" 601 android:layout_marginTop="6dp"
594 android:layout_width="match_parent" 602 android:layout_width="match_parent"
595 android:layout_height="0dp"/> 603 android:layout_height="0dp"/>
596 604
597 <LinearLayout 605 <LinearLayout
598 android:orientation="vertical" 606 android:orientation="vertical"
599 android:background="@drawable/shape_radius_10" 607 android:background="@drawable/shape_radius_10"
600 android:backgroundTint="@color/white" 608 android:backgroundTint="@color/white"
601 android:padding="16dp" 609 android:padding="16dp"
602 android:layout_marginHorizontal="16dp" 610 android:layout_marginHorizontal="16dp"
603 android:layout_marginTop="6dp" 611 android:layout_marginTop="6dp"
604 android:layout_width="match_parent" 612 android:layout_width="match_parent"
605 android:layout_height="wrap_content"> 613 android:layout_height="wrap_content">
606 <TextView 614 <TextView
607 android:text="知识点掌握情况" 615 android:text="知识点掌握情况"
608 android:textSize="16sp" 616 android:textSize="16sp"
609 android:textColor="#333333" 617 android:textColor="#333333"
610 android:textStyle="bold" 618 android:textStyle="bold"
611 android:background="@drawable/bg_hy_point_title" 619 android:background="@drawable/bg_hy_point_title"
612 android:paddingStart="28dp" 620 android:paddingStart="28dp"
613 android:paddingEnd="4dp" 621 android:paddingEnd="4dp"
614 android:layout_gravity="center_horizontal" 622 android:layout_gravity="center_horizontal"
615 android:layout_width="wrap_content" 623 android:layout_width="wrap_content"
616 android:layout_height="wrap_content"/> 624 android:layout_height="wrap_content"/>
617 625
618 <LinearLayout 626 <LinearLayout
619 android:orientation="horizontal" 627 android:orientation="horizontal"
620 android:layout_width="match_parent" 628 android:layout_width="match_parent"
621 android:layout_height="120dp" 629 android:layout_height="120dp"
622 android:layout_marginTop="20dp"> 630 android:layout_marginTop="20dp">
623 <LinearLayout 631 <LinearLayout
624 android:orientation="vertical" 632 android:orientation="vertical"
625 android:background="@drawable/shape_radius_10" 633 android:background="@drawable/shape_radius_10"
626 android:backgroundTint="#F4FAFF" 634 android:backgroundTint="#F4FAFF"
627 android:gravity="center_horizontal" 635 android:gravity="center_horizontal"
628 android:paddingTop="10dp" 636 android:paddingTop="10dp"
629 android:layout_width="0dp" 637 android:layout_width="0dp"
630 android:layout_height="match_parent" 638 android:layout_height="match_parent"
631 android:layout_weight="1"> 639 android:layout_weight="1">
632 <ImageView 640 <ImageView
633 android:src="@drawable/png_ic_excellent" 641 android:src="@drawable/png_ic_excellent"
634 android:backgroundTint="#3BC3B6" 642 android:backgroundTint="#3BC3B6"
635 android:background="@drawable/bg_circle" 643 android:background="@drawable/bg_circle"
636 android:padding="8dp" 644 android:padding="8dp"
637 android:layout_width="40dp" 645 android:layout_width="40dp"
638 android:layout_height="40dp"/> 646 android:layout_height="40dp"/>
639 <TextView 647 <TextView
640 android:id="@+id/tvExcellent" 648 android:id="@+id/tvExcellent"
641 android:text="-" 649 android:text="-"
642 android:textColor="#3BC3B6" 650 android:textColor="#3BC3B6"
643 android:textSize="25sp" 651 android:textSize="25sp"
644 android:textStyle="bold" 652 android:textStyle="bold"
645 android:layout_marginTop="4dp" 653 android:layout_marginTop="4dp"
646 android:layout_width="wrap_content" 654 android:layout_width="wrap_content"
647 android:layout_height="wrap_content"/> 655 android:layout_height="wrap_content"/>
648 <TextView 656 <TextView
649 android:text="掌握优秀" 657 android:text="掌握优秀"
650 android:textSize="15sp" 658 android:textSize="15sp"
651 android:textColor="#333" 659 android:textColor="#333"
652 android:textStyle="bold" 660 android:textStyle="bold"
653 android:layout_width="wrap_content" 661 android:layout_width="wrap_content"
654 android:layout_height="wrap_content"/> 662 android:layout_height="wrap_content"/>
655 </LinearLayout> 663 </LinearLayout>
656 <LinearLayout 664 <LinearLayout
657 android:orientation="vertical" 665 android:orientation="vertical"
658 android:background="@drawable/shape_radius_10" 666 android:background="@drawable/shape_radius_10"
659 android:backgroundTint="#F4FAFF" 667 android:backgroundTint="#F4FAFF"
660 android:gravity="center_horizontal" 668 android:gravity="center_horizontal"
661 android:paddingTop="10dp" 669 android:paddingTop="10dp"
662 android:layout_marginStart="14dp" 670 android:layout_marginStart="14dp"
663 android:layout_width="0dp" 671 android:layout_width="0dp"
664 android:layout_height="match_parent" 672 android:layout_height="match_parent"
665 android:layout_weight="1"> 673 android:layout_weight="1">
666 <ImageView 674 <ImageView
667 android:src="@drawable/png_ic_good" 675 android:src="@drawable/png_ic_good"
668 android:backgroundTint="#489AFA" 676 android:backgroundTint="#489AFA"
669 android:background="@drawable/bg_circle" 677 android:background="@drawable/bg_circle"
670 android:padding="8dp" 678 android:padding="8dp"
671 android:layout_width="40dp" 679 android:layout_width="40dp"
672 android:layout_height="40dp"/> 680 android:layout_height="40dp"/>
673 <TextView 681 <TextView
674 android:id="@+id/tvGood" 682 android:id="@+id/tvGood"
675 android:text="-" 683 android:text="-"
676 android:textColor="#489AFA" 684 android:textColor="#489AFA"
677 android:textSize="25sp" 685 android:textSize="25sp"
678 android:textStyle="bold" 686 android:textStyle="bold"
679 android:layout_marginTop="4dp" 687 android:layout_marginTop="4dp"
680 android:layout_width="wrap_content" 688 android:layout_width="wrap_content"
681 android:layout_height="wrap_content"/> 689 android:layout_height="wrap_content"/>
682 <TextView 690 <TextView
683 android:text="掌握良好" 691 android:text="掌握良好"
684 android:textSize="15sp" 692 android:textSize="15sp"
685 android:textColor="#333" 693 android:textColor="#333"
686 android:textStyle="bold" 694 android:textStyle="bold"
687 android:layout_width="wrap_content" 695 android:layout_width="wrap_content"
688 android:layout_height="wrap_content"/> 696 android:layout_height="wrap_content"/>
689 </LinearLayout> 697 </LinearLayout>
690 <LinearLayout 698 <LinearLayout
691 android:orientation="vertical" 699 android:orientation="vertical"
692 android:background="@drawable/shape_radius_10" 700 android:background="@drawable/shape_radius_10"
693 android:backgroundTint="#F4FAFF" 701 android:backgroundTint="#F4FAFF"
694 android:gravity="center_horizontal" 702 android:gravity="center_horizontal"
695 android:paddingTop="10dp" 703 android:paddingTop="10dp"
696 android:layout_marginStart="14dp" 704 android:layout_marginStart="14dp"
697 android:layout_width="0dp" 705 android:layout_width="0dp"
698 android:layout_height="match_parent" 706 android:layout_height="match_parent"
699 android:layout_weight="1"> 707 android:layout_weight="1">
700 <ImageView 708 <ImageView
701 android:src="@drawable/png_ic_normal" 709 android:src="@drawable/png_ic_normal"
702 android:backgroundTint="#F58725" 710 android:backgroundTint="#F58725"
703 android:background="@drawable/bg_circle" 711 android:background="@drawable/bg_circle"
704 android:padding="8dp" 712 android:padding="8dp"
705 android:layout_width="40dp" 713 android:layout_width="40dp"
706 android:layout_height="40dp"/> 714 android:layout_height="40dp"/>
707 <TextView 715 <TextView
708 android:id="@+id/tvNormal" 716 android:id="@+id/tvNormal"
709 android:text="-" 717 android:text="-"
710 android:textColor="#F58725" 718 android:textColor="#F58725"
711 android:textSize="25sp" 719 android:textSize="25sp"
712 android:textStyle="bold" 720 android:textStyle="bold"
713 android:layout_marginTop="4dp" 721 android:layout_marginTop="4dp"
714 android:layout_width="wrap_content" 722 android:layout_width="wrap_content"
715 android:layout_height="wrap_content"/> 723 android:layout_height="wrap_content"/>
716 <TextView 724 <TextView
717 android:text="掌握一般" 725 android:text="掌握一般"
718 android:textSize="15sp" 726 android:textSize="15sp"
719 android:textColor="#333" 727 android:textColor="#333"
720 android:textStyle="bold" 728 android:textStyle="bold"
721 android:layout_width="wrap_content" 729 android:layout_width="wrap_content"
722 android:layout_height="wrap_content"/> 730 android:layout_height="wrap_content"/>
723 </LinearLayout> 731 </LinearLayout>
724 <LinearLayout 732 <LinearLayout
725 android:orientation="vertical" 733 android:orientation="vertical"
726 android:background="@drawable/shape_radius_10" 734 android:background="@drawable/shape_radius_10"
727 android:backgroundTint="#F4FAFF" 735 android:backgroundTint="#F4FAFF"
728 android:gravity="center_horizontal" 736 android:gravity="center_horizontal"
729 android:paddingTop="10dp" 737 android:paddingTop="10dp"
730 android:layout_marginStart="14dp" 738 android:layout_marginStart="14dp"
731 android:layout_width="0dp" 739 android:layout_width="0dp"
732 android:layout_height="match_parent" 740 android:layout_height="match_parent"
733 android:layout_weight="1"> 741 android:layout_weight="1">
734 <ImageView 742 <ImageView
735 android:src="@drawable/png_ic_weak" 743 android:src="@drawable/png_ic_weak"
736 android:backgroundTint="#EA5127" 744 android:backgroundTint="#EA5127"
737 android:background="@drawable/bg_circle" 745 android:background="@drawable/bg_circle"
738 android:padding="8dp" 746 android:padding="8dp"
739 android:layout_width="40dp" 747 android:layout_width="40dp"
740 android:layout_height="40dp"/> 748 android:layout_height="40dp"/>
741 <TextView 749 <TextView
742 android:id="@+id/tvWeak" 750 android:id="@+id/tvWeak"
743 android:text="-" 751 android:text="-"
744 android:textColor="#EA5127" 752 android:textColor="#EA5127"
745 android:textSize="25sp" 753 android:textSize="25sp"
746 android:textStyle="bold" 754 android:textStyle="bold"
747 android:layout_marginTop="4dp" 755 android:layout_marginTop="4dp"
748 android:layout_width="wrap_content" 756 android:layout_width="wrap_content"
749 android:layout_height="wrap_content"/> 757 android:layout_height="wrap_content"/>
750 <TextView 758 <TextView
751 android:text="掌握薄弱" 759 android:text="掌握薄弱"
752 android:textSize="15sp" 760 android:textSize="15sp"
753 android:textColor="#333" 761 android:textColor="#333"
754 android:textStyle="bold" 762 android:textStyle="bold"
755 android:layout_width="wrap_content" 763 android:layout_width="wrap_content"
756 android:layout_height="wrap_content"/> 764 android:layout_height="wrap_content"/>
757 </LinearLayout> 765 </LinearLayout>
758 </LinearLayout> 766 </LinearLayout>
759 767
760 <FrameLayout 768 <FrameLayout
761 android:layout_gravity="center_horizontal" 769 android:layout_gravity="center_horizontal"
762 android:layout_marginTop="20dp" 770 android:layout_marginTop="20dp"
763 android:layout_width="180dp" 771 android:layout_width="180dp"
764 android:layout_height="180dp"> 772 android:layout_height="180dp">
765 <com.littlejie.circleprogress.CircleProgress 773 <com.littlejie.circleprogress.CircleProgress
766 android:id="@+id/cpBase" 774 android:id="@+id/cpBase"
767 app:value="0" 775 app:value="0"
768 app:arcWidth="35dp" 776 app:arcWidth="35dp"
769 app:bgArcWidth="35dp" 777 app:bgArcWidth="35dp"
770 app:bgArcColor="#3BC3B6" 778 app:bgArcColor="#3BC3B6"
771 app:startAngle="0" 779 app:startAngle="0"
772 app:sweepAngle="360" 780 app:sweepAngle="360"
773 app:hintColor="@color/transparent" 781 app:hintColor="@color/transparent"
774 app:unitColor="@color/transparent" 782 app:unitColor="@color/transparent"
775 app:valueColor="@color/transparent" 783 app:valueColor="@color/transparent"
776 android:layout_width="match_parent" 784 android:layout_width="match_parent"
777 android:layout_height="match_parent"/> 785 android:layout_height="match_parent"/>
778 <com.littlejie.circleprogress.CircleProgress 786 <com.littlejie.circleprogress.CircleProgress
779 android:id="@+id/cpGood" 787 android:id="@+id/cpGood"
780 app:value="0" 788 app:value="0"
781 app:arcWidth="35dp" 789 app:arcWidth="35dp"
782 app:bgArcWidth="35dp" 790 app:bgArcWidth="35dp"
783 app:arcColors="#489AFA" 791 app:arcColors="#489AFA"
784 app:bgArcColor="@color/transparent" 792 app:bgArcColor="@color/transparent"
785 app:startAngle="0" 793 app:startAngle="0"
786 app:sweepAngle="360" 794 app:sweepAngle="360"
787 app:hintColor="@color/transparent" 795 app:hintColor="@color/transparent"
788 app:unitColor="@color/transparent" 796 app:unitColor="@color/transparent"
789 app:valueColor="@color/transparent" 797 app:valueColor="@color/transparent"
790 android:layout_width="match_parent" 798 android:layout_width="match_parent"
791 android:layout_height="match_parent"/> 799 android:layout_height="match_parent"/>
792 <com.littlejie.circleprogress.CircleProgress 800 <com.littlejie.circleprogress.CircleProgress
793 android:id="@+id/cpNormal" 801 android:id="@+id/cpNormal"
794 app:value="0" 802 app:value="0"
795 app:arcWidth="35dp" 803 app:arcWidth="35dp"
796 app:bgArcWidth="35dp" 804 app:bgArcWidth="35dp"
797 app:arcColors="#F58725" 805 app:arcColors="#F58725"
798 app:bgArcColor="@color/transparent" 806 app:bgArcColor="@color/transparent"
799 app:startAngle="0" 807 app:startAngle="0"
800 app:sweepAngle="360" 808 app:sweepAngle="360"
801 app:hintColor="@color/transparent" 809 app:hintColor="@color/transparent"
802 app:unitColor="@color/transparent" 810 app:unitColor="@color/transparent"
803 app:valueColor="@color/transparent" 811 app:valueColor="@color/transparent"
804 android:layout_width="match_parent" 812 android:layout_width="match_parent"
805 android:layout_height="match_parent"/> 813 android:layout_height="match_parent"/>
806 <com.littlejie.circleprogress.CircleProgress 814 <com.littlejie.circleprogress.CircleProgress
807 android:id="@+id/cpWeak" 815 android:id="@+id/cpWeak"
808 app:value="0" 816 app:value="0"
809 app:arcWidth="35dp" 817 app:arcWidth="35dp"
810 app:bgArcWidth="35dp" 818 app:bgArcWidth="35dp"
811 app:arcColors="#EA5127" 819 app:arcColors="#EA5127"
812 app:bgArcColor="@color/transparent" 820 app:bgArcColor="@color/transparent"
813 app:startAngle="0" 821 app:startAngle="0"
814 app:sweepAngle="360" 822 app:sweepAngle="360"
815 app:hintColor="@color/transparent" 823 app:hintColor="@color/transparent"
816 app:unitColor="@color/transparent" 824 app:unitColor="@color/transparent"
817 app:valueColor="@color/transparent" 825 app:valueColor="@color/transparent"
818 android:layout_width="match_parent" 826 android:layout_width="match_parent"
819 android:layout_height="match_parent"/> 827 android:layout_height="match_parent"/>
820 828
821 <LinearLayout 829 <LinearLayout
822 android:orientation="vertical" 830 android:orientation="vertical"
823 android:gravity="center_horizontal" 831 android:gravity="center_horizontal"
824 android:layout_gravity="center" 832 android:layout_gravity="center"
825 android:layout_width="wrap_content" 833 android:layout_width="wrap_content"
826 android:layout_height="wrap_content"> 834 android:layout_height="wrap_content">
827 <LinearLayout 835 <LinearLayout
828 android:layout_width="wrap_content" 836 android:layout_width="wrap_content"
829 android:layout_height="wrap_content"> 837 android:layout_height="wrap_content">
830 <TextView 838 <TextView
831 android:id="@+id/tvAvePoint" 839 android:id="@+id/tvAvePoint"
832 tools:text="88" 840 tools:text="88"
833 android:textSize="25sp" 841 android:textSize="25sp"
834 android:textColor="#3BC3B6" 842 android:textColor="#3BC3B6"
835 android:textStyle="bold" 843 android:textStyle="bold"
836 android:layout_width="wrap_content" 844 android:layout_width="wrap_content"
837 android:layout_height="wrap_content"/> 845 android:layout_height="wrap_content"/>
838 <TextView 846 <TextView
839 android:text="%" 847 android:text="%"
840 android:textSize="12sp" 848 android:textSize="12sp"
841 android:textColor="#3BC3B6" 849 android:textColor="#3BC3B6"
842 android:layout_width="wrap_content" 850 android:layout_width="wrap_content"
843 android:layout_height="wrap_content"/> 851 android:layout_height="wrap_content"/>
844 </LinearLayout> 852 </LinearLayout>
845 <TextView 853 <TextView
846 android:text="综合掌握程度" 854 android:text="综合掌握程度"
847 android:textSize="10sp" 855 android:textSize="10sp"
848 android:textColor="#333" 856 android:textColor="#333"
849 android:textStyle="bold" 857 android:textStyle="bold"
850 android:layout_marginTop="-2dp" 858 android:layout_marginTop="-2dp"
851 android:layout_width="wrap_content" 859 android:layout_width="wrap_content"
852 android:layout_height="wrap_content"/> 860 android:layout_height="wrap_content"/>
853 </LinearLayout> 861 </LinearLayout>
854 </FrameLayout> 862 </FrameLayout>
855 </LinearLayout> 863 </LinearLayout>
856 864
857 <LinearLayout 865 <LinearLayout
858 android:orientation="vertical" 866 android:orientation="vertical"
859 android:background="@drawable/shape_radius_10" 867 android:background="@drawable/shape_radius_10"
860 android:backgroundTint="@color/white" 868 android:backgroundTint="@color/white"
861 android:padding="16dp" 869 android:padding="16dp"
862 android:layout_marginHorizontal="16dp" 870 android:layout_marginHorizontal="16dp"
863 android:layout_marginTop="12dp" 871 android:layout_marginTop="12dp"
864 android:layout_width="match_parent" 872 android:layout_width="match_parent"
865 android:layout_height="wrap_content"> 873 android:layout_height="wrap_content">
866 <TextView 874 <TextView
867 android:text="学习效果分析" 875 android:text="学习效果分析"
868 android:textSize="16sp" 876 android:textSize="16sp"
869 android:textColor="#333333" 877 android:textColor="#333333"
870 android:textStyle="bold" 878 android:textStyle="bold"
871 android:background="@drawable/bg_hy_analyse_title" 879 android:background="@drawable/bg_hy_analyse_title"
872 android:paddingStart="24dp" 880 android:paddingStart="24dp"
873 android:paddingEnd="4dp" 881 android:paddingEnd="4dp"
874 android:layout_gravity="center_horizontal" 882 android:layout_gravity="center_horizontal"
875 android:layout_width="wrap_content" 883 android:layout_width="wrap_content"
876 android:layout_height="wrap_content"/> 884 android:layout_height="wrap_content"/>
877 885
878 <LinearLayout 886 <LinearLayout
879 android:id="@+id/flEmptyPoints" 887 android:id="@+id/flEmptyPoints"
880 android:visibility="gone" 888 android:visibility="gone"
881 android:orientation="vertical" 889 android:orientation="vertical"
882 android:gravity="center_horizontal" 890 android:gravity="center_horizontal"
883 android:layout_marginTop="50dp" 891 android:layout_marginTop="50dp"
884 android:layout_width="match_parent" 892 android:layout_width="match_parent"
885 android:layout_height="wrap_content"> 893 android:layout_height="wrap_content">
886 <ImageView 894 <ImageView
887 android:src="@drawable/png_huyou_points_empty" 895 android:src="@drawable/png_huyou_points_empty"
888 android:layout_width="195dp" 896 android:layout_width="195dp"
889 android:layout_height="145dp"/> 897 android:layout_height="145dp"/>
890 <TextView 898 <TextView
891 android:text="你太棒了!" 899 android:text="你太棒了!"
892 android:textSize="20sp" 900 android:textSize="20sp"
893 android:textColor="#999" 901 android:textColor="#999"
894 android:layout_marginVertical="16dp" 902 android:layout_marginVertical="16dp"
895 android:layout_width="wrap_content" 903 android:layout_width="wrap_content"
896 android:layout_height="wrap_content"/> 904 android:layout_height="wrap_content"/>
897 </LinearLayout> 905 </LinearLayout>
898 906
899 <LinearLayout 907 <LinearLayout
900 android:id="@+id/tableRoot" 908 android:id="@+id/tableRoot"
901 android:orientation="vertical" 909 android:orientation="vertical"
902 android:background="@drawable/bg_huyou_table_bg" 910 android:background="@drawable/bg_huyou_table_bg"
903 android:layout_marginTop="16dp" 911 android:layout_marginTop="16dp"
904 android:layout_width="match_parent" 912 android:layout_width="match_parent"
905 android:layout_height="wrap_content"> 913 android:layout_height="wrap_content">
906 <LinearLayout 914 <LinearLayout
907 android:orientation="horizontal" 915 android:orientation="horizontal"
908 android:background="#50CEC2" 916 android:background="#50CEC2"
909 android:layout_width="match_parent" 917 android:layout_width="match_parent"
910 android:layout_height="60dp"> 918 android:layout_height="60dp">
911 <TextView 919 <TextView
912 android:text="知识点名称" 920 android:text="知识点名称"
913 android:textSize="13sp" 921 android:textSize="13sp"
914 android:textColor="@color/white" 922 android:textColor="@color/white"
915 android:gravity="center" 923 android:gravity="center"
916 android:layout_weight="82" 924 android:layout_weight="82"
917 android:layout_width="0dp" 925 android:layout_width="0dp"
918 android:layout_height="match_parent"/> 926 android:layout_height="match_parent"/>
919 <View 927 <View
920 android:background="#38B3A7" 928 android:background="#38B3A7"
921 android:layout_width="1dp" 929 android:layout_width="1dp"
922 android:layout_height="match_parent"/> 930 android:layout_height="match_parent"/>
923 931
924 <LinearLayout 932 <LinearLayout
925 android:orientation="vertical" 933 android:orientation="vertical"
926 android:layout_weight="72" 934 android:layout_weight="72"
927 android:layout_width="0dp" 935 android:layout_width="0dp"
928 android:layout_height="match_parent"> 936 android:layout_height="match_parent">
929 <TextView 937 <TextView
930 android:text="学前" 938 android:text="学前"
931 android:textSize="13sp" 939 android:textSize="13sp"
932 android:textColor="@color/white" 940 android:textColor="@color/white"
933 android:gravity="center" 941 android:gravity="center"
934 android:layout_width="match_parent" 942 android:layout_width="match_parent"
935 android:layout_height="24dp"/> 943 android:layout_height="24dp"/>
936 <View 944 <View
937 android:background="#38B3A7" 945 android:background="#38B3A7"
938 android:layout_width="match_parent" 946 android:layout_width="match_parent"
939 android:layout_height="1dp"/> 947 android:layout_height="1dp"/>
940 <LinearLayout 948 <LinearLayout
941 android:orientation="horizontal" 949 android:orientation="horizontal"
942 android:layout_width="match_parent" 950 android:layout_width="match_parent"
943 android:layout_height="match_parent"> 951 android:layout_height="match_parent">
944 <TextView 952 <TextView
945 android:text="程\n度" 953 android:text="程\n度"
946 android:textSize="13sp" 954 android:textSize="13sp"
947 android:textColor="@color/white" 955 android:textColor="@color/white"
948 android:gravity="center" 956 android:gravity="center"
949 android:layout_weight="1" 957 android:layout_weight="1"
950 android:layout_width="0dp" 958 android:layout_width="0dp"
951 android:layout_height="wrap_content"/> 959 android:layout_height="wrap_content"/>
952 <View 960 <View
953 android:background="#38B3A7" 961 android:background="#38B3A7"
954 android:layout_width="1dp" 962 android:layout_width="1dp"
955 android:layout_height="match_parent"/> 963 android:layout_height="match_parent"/>
956 <TextView 964 <TextView
957 android:text="状\n态" 965 android:text="状\n态"
958 android:textSize="13sp" 966 android:textSize="13sp"
959 android:textColor="@color/white" 967 android:textColor="@color/white"
960 android:gravity="center" 968 android:gravity="center"
961 android:layout_weight="1" 969 android:layout_weight="1"
962 android:layout_width="0dp" 970 android:layout_width="0dp"
963 android:layout_height="wrap_content"/> 971 android:layout_height="wrap_content"/>
964 </LinearLayout> 972 </LinearLayout>
965 </LinearLayout> 973 </LinearLayout>
966 974
967 <View 975 <View
968 android:background="#38B3A7" 976 android:background="#38B3A7"
969 android:layout_width="1dp" 977 android:layout_width="1dp"
970 android:layout_height="match_parent"/> 978 android:layout_height="match_parent"/>
971 979
972 <LinearLayout 980 <LinearLayout
973 android:orientation="vertical" 981 android:orientation="vertical"
974 android:layout_weight="72" 982 android:layout_weight="72"
975 android:layout_width="0dp" 983 android:layout_width="0dp"
976 android:layout_height="match_parent"> 984 android:layout_height="match_parent">
977 <TextView 985 <TextView
978 android:text="学后" 986 android:text="学后"
979 android:textSize="13sp" 987 android:textSize="13sp"
980 android:textColor="@color/white" 988 android:textColor="@color/white"
981 android:gravity="center" 989 android:gravity="center"
982 android:layout_width="match_parent" 990 android:layout_width="match_parent"
983 android:layout_height="24dp"/> 991 android:layout_height="24dp"/>
984 <View 992 <View
985 android:background="#38B3A7" 993 android:background="#38B3A7"
986 android:layout_width="match_parent" 994 android:layout_width="match_parent"
987 android:layout_height="1dp"/> 995 android:layout_height="1dp"/>
988 <LinearLayout 996 <LinearLayout
989 android:orientation="horizontal" 997 android:orientation="horizontal"
990 android:layout_width="match_parent" 998 android:layout_width="match_parent"
991 android:layout_height="match_parent"> 999 android:layout_height="match_parent">
992 <TextView 1000 <TextView
993 android:text="程\n度" 1001 android:text="程\n度"
994 android:textSize="13sp" 1002 android:textSize="13sp"
995 android:textColor="@color/white" 1003 android:textColor="@color/white"
996 android:gravity="center" 1004 android:gravity="center"
997 android:layout_weight="1" 1005 android:layout_weight="1"
998 android:layout_width="0dp" 1006 android:layout_width="0dp"
999 android:layout_height="wrap_content"/> 1007 android:layout_height="wrap_content"/>
1000 <View 1008 <View
1001 android:background="#38B3A7" 1009 android:background="#38B3A7"
1002 android:layout_width="1dp" 1010 android:layout_width="1dp"
1003 android:layout_height="match_parent"/> 1011 android:layout_height="match_parent"/>
1004 <TextView 1012 <TextView
1005 android:text="状\n态" 1013 android:text="状\n态"
1006 android:textSize="13sp" 1014 android:textSize="13sp"
1007 android:textColor="@color/white" 1015 android:textColor="@color/white"
1008 android:gravity="center" 1016 android:gravity="center"
1009 android:layout_weight="1" 1017 android:layout_weight="1"
1010 android:layout_width="0dp" 1018 android:layout_width="0dp"
1011 android:layout_height="wrap_content"/> 1019 android:layout_height="wrap_content"/>
1012 </LinearLayout> 1020 </LinearLayout>
1013 1021
1014 </LinearLayout> 1022 </LinearLayout>
1015 1023
1016 <View 1024 <View
1017 android:background="#38B3A7" 1025 android:background="#38B3A7"
1018 android:layout_width="1dp" 1026 android:layout_width="1dp"
1019 android:layout_height="match_parent"/> 1027 android:layout_height="match_parent"/>
1020 <TextView 1028 <TextView
1021 android:text="进步\n幅度" 1029 android:text="进步\n幅度"
1022 android:textSize="13sp" 1030 android:textSize="13sp"
1023 android:textColor="@color/white" 1031 android:textColor="@color/white"
1024 android:gravity="center" 1032 android:gravity="center"
1025 android:layout_weight="50" 1033 android:layout_weight="50"
1026 android:layout_width="0dp" 1034 android:layout_width="0dp"
1027 android:layout_height="match_parent"/> 1035 android:layout_height="match_parent"/>
1028 <View 1036 <View
1029 android:background="#38B3A7" 1037 android:background="#38B3A7"
1030 android:layout_width="1dp" 1038 android:layout_width="1dp"
1031 android:layout_height="match_parent"/> 1039 android:layout_height="match_parent"/>
1032 <TextView 1040 <TextView
1033 android:text="正答\n率" 1041 android:text="正答\n率"
1034 android:textSize="13sp" 1042 android:textSize="13sp"
1035 android:textColor="@color/white" 1043 android:textColor="@color/white"
1036 android:gravity="center" 1044 android:gravity="center"
1037 android:layout_weight="38" 1045 android:layout_weight="38"
1038 android:layout_width="0dp" 1046 android:layout_width="0dp"
1039 android:layout_height="match_parent"/> 1047 android:layout_height="match_parent"/>
1040 </LinearLayout> 1048 </LinearLayout>
1041 <androidx.recyclerview.widget.RecyclerView 1049 <androidx.recyclerview.widget.RecyclerView
1042 android:id="@+id/rvPoint" 1050 android:id="@+id/rvPoint"
1043 android:orientation="vertical" 1051 android:orientation="vertical"
1044 app:layoutManager="androidx.recyclerview.widget.LinearLayoutManager" 1052 app:layoutManager="androidx.recyclerview.widget.LinearLayoutManager"
1045 app:reverseLayout="false" 1053 app:reverseLayout="false"
1046 android:layout_width="match_parent" 1054 android:layout_width="match_parent"
1047 android:layout_height="wrap_content"/> 1055 android:layout_height="wrap_content"/>
1048 </LinearLayout> 1056 </LinearLayout>
1049 1057
1050 <LinearLayout 1058 <LinearLayout
1051 android:id="@+id/flPointDesc" 1059 android:id="@+id/flPointDesc"
1052 android:orientation="horizontal" 1060 android:orientation="horizontal"
1053 android:gravity="center_vertical" 1061 android:gravity="center_vertical"
1054 android:layout_marginTop="10dp" 1062 android:layout_marginTop="10dp"
1055 android:layout_width="match_parent" 1063 android:layout_width="match_parent"
1056 android:layout_height="wrap_content"> 1064 android:layout_height="wrap_content">
1057 <ImageView 1065 <ImageView
1058 android:src="@drawable/png_up" 1066 android:src="@drawable/png_up"
1059 android:layout_width="12dp" 1067 android:layout_width="12dp"
1060 android:layout_height="12dp"/> 1068 android:layout_height="12dp"/>
1061 <TextView 1069 <TextView
1062 android:text="代表进步幅度最大的知识点" 1070 android:text="代表进步幅度最大的知识点"
1063 android:textSize="12sp" 1071 android:textSize="12sp"
1064 android:textColor="#666" 1072 android:textColor="#666"
1065 android:layout_marginStart="8dp" 1073 android:layout_marginStart="8dp"
1066 android:layout_width="wrap_content" 1074 android:layout_width="wrap_content"
1067 android:layout_height="wrap_content"/> 1075 android:layout_height="wrap_content"/>
1068 </LinearLayout> 1076 </LinearLayout>
1069 1077
1070 </LinearLayout> 1078 </LinearLayout>
1071 </LinearLayout> 1079 </LinearLayout>
1072 1080
1073 </androidx.core.widget.NestedScrollView> 1081 </androidx.core.widget.NestedScrollView>
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 <FrameLayout 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"
34 android:text="返回"
35 android:textSize="30sp"
36 android:textColor="#333"
37 android:layout_width="wrap_content"
38 android:layout_height="wrap_content"/>
39 <Space style="@style/empty_space"/>
40 <TextView
33 android:id="@+id/btnSwitch" 41 android:id="@+id/btnSwitch"
34 android:text="看长图" 42 android:text="看长图"
35 android:textSize="20sp" 43 android:textSize="30sp"
36 android:textColor="#333" 44 android:textColor="#333"
37 android:layout_marginStart="48dp"
38 android:layout_width="wrap_content" 45 android:layout_width="wrap_content"
39 android:layout_height="wrap_content"/> 46 android:layout_height="wrap_content"/>
40 <TextView 47 <TextView
41 android:id="@+id/btnShare" 48 android:id="@+id/btnShare"
42 android:text="分享" 49 android:text="分享"
43 android:textSize="20sp" 50 android:textSize="30sp"
44 android:textColor="#333" 51 android:textColor="#333"
52 android:layout_marginStart="8dp"
45 android:layout_width="wrap_content" 53 android:layout_width="wrap_content"
46 android:layout_height="wrap_content"/> 54 android:layout_height="wrap_content"/>
47 <TextView 55 <TextView
48 android:id="@+id/btnSame" 56 android:id="@+id/btnSame"
49 android:visibility="gone" 57 android:visibility="gone"
50 android:text="举一反三" 58 android:text="举一反三"
51 android:textSize="20sp" 59 android:textSize="20sp"
52 android:textColor="#333" 60 android:textColor="#333"
53 android:layout_gravity="end" 61 android:layout_gravity="end"
54 android:layout_width="wrap_content" 62 android:layout_width="wrap_content"
55 android:layout_height="wrap_content"/> 63 android:layout_height="wrap_content"/>
56 </FrameLayout> 64 </LinearLayout>
57 <TextView 65 <TextView
58 android:id="@+id/tvTitle" 66 android:id="@+id/tvTitle"
59 android:text="周作业学习报告" 67 android:text="周作业学习报告"
60 android:textSize="37sp" 68 android:textSize="37sp"
61 android:textColor="#333" 69 android:textColor="#333"
62 android:textStyle="bold" 70 android:textStyle="bold"
63 android:layout_gravity="center_horizontal" 71 android:layout_gravity="center_horizontal"
64 android:layout_width="wrap_content" 72 android:layout_width="wrap_content"
65 android:layout_height="wrap_content" /> 73 android:layout_height="wrap_content" />
66 </FrameLayout> 74 </FrameLayout>
67 75
68 76
69 <ImageView 77 <ImageView
70 android:src="@drawable/png_huyou_top_bg" 78 android:src="@drawable/png_huyou_top_bg"
71 android:elevation="1dp" 79 android:elevation="1dp"
72 android:layout_gravity="end" 80 android:layout_gravity="end"
73 android:layout_marginHorizontal="30dp" 81 android:layout_marginHorizontal="30dp"
74 android:layout_marginTop="-40dp" 82 android:layout_marginTop="-40dp"
75 android:layout_width="206dp" 83 android:layout_width="206dp"
76 android:layout_height="180dp"/> 84 android:layout_height="180dp"/>
77 85
78 <LinearLayout 86 <LinearLayout
79 android:orientation="vertical" 87 android:orientation="vertical"
80 android:background="@drawable/png_info_bg" 88 android:background="@drawable/png_info_bg"
81 android:padding="30dp" 89 android:padding="30dp"
82 android:layout_marginHorizontal="30dp" 90 android:layout_marginHorizontal="30dp"
83 android:layout_marginTop="-120dp" 91 android:layout_marginTop="-120dp"
84 android:layout_width="match_parent" 92 android:layout_width="match_parent"
85 android:layout_height="267dp"> 93 android:layout_height="267dp">
86 <LinearLayout 94 <LinearLayout
87 android:orientation="horizontal" 95 android:orientation="horizontal"
88 android:layout_width="match_parent" 96 android:layout_width="match_parent"
89 android:layout_height="wrap_content"> 97 android:layout_height="wrap_content">
90 <androidx.constraintlayout.utils.widget.ImageFilterView 98 <androidx.constraintlayout.utils.widget.ImageFilterView
91 android:id="@+id/ivAvatar" 99 android:id="@+id/ivAvatar"
92 tools:background="#2491FF" 100 tools:background="#2491FF"
93 app:round="40dp" 101 app:round="40dp"
94 android:layout_width="80dp" 102 android:layout_width="80dp"
95 android:layout_height="80dp"/> 103 android:layout_height="80dp"/>
96 <LinearLayout 104 <LinearLayout
97 android:orientation="vertical" 105 android:orientation="vertical"
98 android:layout_gravity="center_vertical" 106 android:layout_gravity="center_vertical"
99 android:layout_marginStart="10dp" 107 android:layout_marginStart="10dp"
100 android:layout_width="wrap_content" 108 android:layout_width="wrap_content"
101 android:layout_height="wrap_content"> 109 android:layout_height="wrap_content">
102 <TextView 110 <TextView
103 android:id="@+id/tvStuName" 111 android:id="@+id/tvStuName"
104 tools:text="杨同学 " 112 tools:text="杨同学 "
105 android:textSize="28sp" 113 android:textSize="28sp"
106 android:textColor="#333" 114 android:textColor="#333"
107 android:textStyle="bold" 115 android:textStyle="bold"
108 android:layout_width="wrap_content" 116 android:layout_width="wrap_content"
109 android:layout_height="wrap_content"/> 117 android:layout_height="wrap_content"/>
110 <TextView 118 <TextView
111 android:id="@+id/tvGrade" 119 android:id="@+id/tvGrade"
112 tools:text="七年级" 120 tools:text="七年级"
113 android:textSize="26sp" 121 android:textSize="26sp"
114 android:textColor="#666" 122 android:textColor="#666"
115 android:textStyle="bold" 123 android:textStyle="bold"
116 android:layout_width="wrap_content" 124 android:layout_width="wrap_content"
117 android:layout_height="wrap_content"/> 125 android:layout_height="wrap_content"/>
118 </LinearLayout> 126 </LinearLayout>
119 </LinearLayout> 127 </LinearLayout>
120 <LinearLayout 128 <LinearLayout
121 android:orientation="horizontal" 129 android:orientation="horizontal"
122 android:background="@drawable/shape_radius_10" 130 android:background="@drawable/shape_radius_10"
123 android:backgroundTint="#F4FAFF" 131 android:backgroundTint="#F4FAFF"
124 android:layout_marginTop="16dp" 132 android:layout_marginTop="16dp"
125 android:layout_width="match_parent" 133 android:layout_width="match_parent"
126 android:layout_height="120dp"> 134 android:layout_height="120dp">
127 <LinearLayout 135 <LinearLayout
128 android:orientation="vertical" 136 android:orientation="vertical"
129 android:gravity="center" 137 android:gravity="center"
130 android:layout_width="0dp" 138 android:layout_width="0dp"
131 android:layout_height="match_parent" 139 android:layout_height="match_parent"
132 android:layout_weight="1"> 140 android:layout_weight="1">
133 <LinearLayout 141 <LinearLayout
134 android:paddingEnd="40dp" 142 android:paddingEnd="40dp"
135 android:gravity="center_vertical" 143 android:gravity="center_vertical"
136 android:layout_width="wrap_content" 144 android:layout_width="wrap_content"
137 android:layout_height="wrap_content"> 145 android:layout_height="wrap_content">
138 <ImageView 146 <ImageView
139 android:src="@drawable/png_iv_subject" 147 android:src="@drawable/png_iv_subject"
140 android:layout_marginEnd="10dp" 148 android:layout_marginEnd="10dp"
141 android:layout_width="32dp" 149 android:layout_width="32dp"
142 android:layout_height="28dp"/> 150 android:layout_height="28dp"/>
143 <TextView 151 <TextView
144 android:text="学科" 152 android:text="学科"
145 android:textSize="24sp" 153 android:textSize="24sp"
146 android:textColor="#333" 154 android:textColor="#333"
147 android:textStyle="bold" 155 android:textStyle="bold"
148 android:layout_width="wrap_content" 156 android:layout_width="wrap_content"
149 android:layout_height="wrap_content"/> 157 android:layout_height="wrap_content"/>
150 </LinearLayout> 158 </LinearLayout>
151 <TextView 159 <TextView
152 android:id="@+id/tvSubject" 160 android:id="@+id/tvSubject"
153 tools:text="数学" 161 tools:text="数学"
154 android:textSize="24sp" 162 android:textSize="24sp"
155 android:textColor="#3BC3B6" 163 android:textColor="#3BC3B6"
156 android:textStyle="bold" 164 android:textStyle="bold"
157 android:layout_marginTop="8dp" 165 android:layout_marginTop="8dp"
158 android:layout_width="wrap_content" 166 android:layout_width="wrap_content"
159 android:layout_height="wrap_content"/> 167 android:layout_height="wrap_content"/>
160 </LinearLayout> 168 </LinearLayout>
161 <LinearLayout 169 <LinearLayout
162 android:orientation="vertical" 170 android:orientation="vertical"
163 android:gravity="center" 171 android:gravity="center"
164 android:layout_width="0dp" 172 android:layout_width="0dp"
165 android:layout_height="match_parent" 173 android:layout_height="match_parent"
166 android:layout_weight="1"> 174 android:layout_weight="1">
167 <LinearLayout 175 <LinearLayout
168 android:paddingEnd="40dp" 176 android:paddingEnd="40dp"
169 android:gravity="center_vertical" 177 android:gravity="center_vertical"
170 android:layout_width="wrap_content" 178 android:layout_width="wrap_content"
171 android:layout_height="wrap_content"> 179 android:layout_height="wrap_content">
172 <ImageView 180 <ImageView
173 android:src="@drawable/png_ic_during" 181 android:src="@drawable/png_ic_during"
174 android:layout_marginEnd="10dp" 182 android:layout_marginEnd="10dp"
175 android:layout_width="14dp" 183 android:layout_width="14dp"
176 android:layout_height="13dp"/> 184 android:layout_height="13dp"/>
177 <TextView 185 <TextView
178 android:text="周期" 186 android:text="周期"
179 android:textSize="24sp" 187 android:textSize="24sp"
180 android:textColor="#333" 188 android:textColor="#333"
181 android:textStyle="bold" 189 android:textStyle="bold"
182 android:layout_width="wrap_content" 190 android:layout_width="wrap_content"
183 android:layout_height="wrap_content"/> 191 android:layout_height="wrap_content"/>
184 </LinearLayout> 192 </LinearLayout>
185 <TextView 193 <TextView
186 android:id="@+id/tvDate" 194 android:id="@+id/tvDate"
187 tools:text="2024.09.01-2024.09.30" 195 tools:text="2024.09.01-2024.09.30"
188 android:textSize="24sp" 196 android:textSize="24sp"
189 android:textColor="#3BC3B6" 197 android:textColor="#3BC3B6"
190 android:textStyle="bold" 198 android:textStyle="bold"
191 android:layout_marginTop="8dp" 199 android:layout_marginTop="8dp"
192 android:layout_width="wrap_content" 200 android:layout_width="wrap_content"
193 android:layout_height="wrap_content"/> 201 android:layout_height="wrap_content"/>
194 </LinearLayout> 202 </LinearLayout>
195 </LinearLayout> 203 </LinearLayout>
196 </LinearLayout> 204 </LinearLayout>
197 <Space 205 <Space
198 android:id="@+id/splitLine" 206 android:id="@+id/splitLine"
199 android:layout_width="match_parent" 207 android:layout_width="match_parent"
200 android:layout_height="0dp"/> 208 android:layout_height="0dp"/>
201 209
202 <HorizontalScrollView 210 <HorizontalScrollView
203 android:scrollbars="none" 211 android:scrollbars="none"
204 android:layout_marginTop="25dp" 212 android:layout_marginTop="25dp"
205 android:layout_marginHorizontal="16dp" 213 android:layout_marginHorizontal="16dp"
206 android:layout_width="match_parent" 214 android:layout_width="match_parent"
207 android:layout_height="match_parent"> 215 android:layout_height="match_parent">
208 <LinearLayout 216 <LinearLayout
209 android:orientation="horizontal" 217 android:orientation="horizontal"
210 android:layout_width="wrap_content" 218 android:layout_width="wrap_content"
211 android:layout_height="match_parent"> 219 android:layout_height="match_parent">
212 <LinearLayout 220 <LinearLayout
213 android:orientation="vertical" 221 android:orientation="vertical"
214 android:background="@drawable/shape_radius_10" 222 android:background="@drawable/shape_radius_10"
215 android:backgroundTint="@color/white" 223 android:backgroundTint="@color/white"
216 android:padding="12dp" 224 android:padding="12dp"
217 android:layout_marginHorizontal="14dp" 225 android:layout_marginHorizontal="14dp"
218 android:layout_width="335dp" 226 android:layout_width="335dp"
219 android:layout_height="613dp"> 227 android:layout_height="613dp">
220 <TextView 228 <TextView
221 android:text="薄弱知识点总评" 229 android:text="薄弱知识点总评"
222 android:textSize="16sp" 230 android:textSize="16sp"
223 android:textColor="#333333" 231 android:textColor="#333333"
224 android:textStyle="bold" 232 android:textStyle="bold"
225 android:background="@drawable/bg_hy_weak_title" 233 android:background="@drawable/bg_hy_weak_title"
226 android:paddingStart="20dp" 234 android:paddingStart="20dp"
227 android:paddingEnd="4dp" 235 android:paddingEnd="4dp"
228 android:layout_marginTop="8dp" 236 android:layout_marginTop="8dp"
229 android:layout_gravity="center_horizontal" 237 android:layout_gravity="center_horizontal"
230 android:layout_width="wrap_content" 238 android:layout_width="wrap_content"
231 android:layout_height="wrap_content"/> 239 android:layout_height="wrap_content"/>
232 <LinearLayout 240 <LinearLayout
233 android:orientation="vertical" 241 android:orientation="vertical"
234 android:layout_marginTop="40dp" 242 android:layout_marginTop="40dp"
235 android:layout_width="match_parent" 243 android:layout_width="match_parent"
236 android:layout_height="wrap_content"> 244 android:layout_height="wrap_content">
237 <TextView 245 <TextView
238 android:text="学习前" 246 android:text="学习前"
239 android:textSize="12sp" 247 android:textSize="12sp"
240 android:textColor="#333" 248 android:textColor="#333"
241 android:layout_gravity="center_horizontal" 249 android:layout_gravity="center_horizontal"
242 android:layout_width="wrap_content" 250 android:layout_width="wrap_content"
243 android:layout_height="wrap_content"/> 251 android:layout_height="wrap_content"/>
244 <FrameLayout 252 <FrameLayout
245 android:background="@drawable/png_huyou_progress_bg" 253 android:background="@drawable/png_huyou_progress_bg"
246 android:padding="10dp" 254 android:padding="10dp"
247 android:layout_gravity="center_horizontal" 255 android:layout_gravity="center_horizontal"
248 android:layout_marginTop="16dp" 256 android:layout_marginTop="16dp"
249 android:layout_width="172dp" 257 android:layout_width="172dp"
250 android:layout_height="172dp"> 258 android:layout_height="172dp">
251 <com.littlejie.circleprogress.CircleProgress 259 <com.littlejie.circleprogress.CircleProgress
252 android:id="@+id/cpBefore" 260 android:id="@+id/cpBefore"
253 app:arcWidth="20dp" 261 app:arcWidth="20dp"
254 app:bgArcWidth="20dp" 262 app:bgArcWidth="20dp"
255 app:arcColors="#F36A27" 263 app:arcColors="#F36A27"
256 app:bgArcColor="#FFF1EA" 264 app:bgArcColor="#FFF1EA"
257 app:startAngle="-90" 265 app:startAngle="-90"
258 app:sweepAngle="360" 266 app:sweepAngle="360"
259 app:maxValue="100" 267 app:maxValue="100"
260 app:value="0" 268 app:value="0"
261 app:hintColor="@color/transparent" 269 app:hintColor="@color/transparent"
262 app:unitColor="@color/transparent" 270 app:unitColor="@color/transparent"
263 app:valueColor="@color/transparent" 271 app:valueColor="@color/transparent"
264 android:layout_width="match_parent" 272 android:layout_width="match_parent"
265 android:layout_height="match_parent"/> 273 android:layout_height="match_parent"/>
266 <LinearLayout 274 <LinearLayout
267 android:orientation="vertical" 275 android:orientation="vertical"
268 android:gravity="center_horizontal" 276 android:gravity="center_horizontal"
269 android:layout_gravity="center" 277 android:layout_gravity="center"
270 android:layout_width="wrap_content" 278 android:layout_width="wrap_content"
271 android:layout_height="wrap_content"> 279 android:layout_height="wrap_content">
272 <LinearLayout 280 <LinearLayout
273 android:layout_width="wrap_content" 281 android:layout_width="wrap_content"
274 android:layout_height="wrap_content"> 282 android:layout_height="wrap_content">
275 <TextView 283 <TextView
276 android:id="@+id/pgBefore" 284 android:id="@+id/pgBefore"
277 tools:text="88" 285 tools:text="88"
278 android:textSize="34sp" 286 android:textSize="34sp"
279 android:textColor="#EA5127" 287 android:textColor="#EA5127"
280 android:textStyle="bold" 288 android:textStyle="bold"
281 android:layout_width="wrap_content" 289 android:layout_width="wrap_content"
282 android:layout_height="wrap_content"/> 290 android:layout_height="wrap_content"/>
283 <TextView 291 <TextView
284 android:text="%" 292 android:text="%"
285 android:textSize="16sp" 293 android:textSize="16sp"
286 android:textColor="#EA5127" 294 android:textColor="#EA5127"
287 android:layout_width="wrap_content" 295 android:layout_width="wrap_content"
288 android:layout_height="wrap_content"/> 296 android:layout_height="wrap_content"/>
289 </LinearLayout> 297 </LinearLayout>
290 <TextView 298 <TextView
291 android:text="整体掌握程度" 299 android:text="整体掌握程度"
292 android:textSize="14sp" 300 android:textSize="14sp"
293 android:textColor="#333" 301 android:textColor="#333"
294 android:textStyle="bold" 302 android:textStyle="bold"
295 android:layout_marginTop="-2dp" 303 android:layout_marginTop="-2dp"
296 android:layout_width="wrap_content" 304 android:layout_width="wrap_content"
297 android:layout_height="wrap_content"/> 305 android:layout_height="wrap_content"/>
298 </LinearLayout> 306 </LinearLayout>
299 </FrameLayout> 307 </FrameLayout>
300 </LinearLayout> 308 </LinearLayout>
301 <LinearLayout 309 <LinearLayout
302 android:orientation="vertical" 310 android:orientation="vertical"
303 android:layout_marginTop="20dp" 311 android:layout_marginTop="20dp"
304 android:layout_width="match_parent" 312 android:layout_width="match_parent"
305 android:layout_height="wrap_content"> 313 android:layout_height="wrap_content">
306 <TextView 314 <TextView
307 android:text="学习后" 315 android:text="学习后"
308 android:textSize="12sp" 316 android:textSize="12sp"
309 android:textColor="#333" 317 android:textColor="#333"
310 android:layout_gravity="center_horizontal" 318 android:layout_gravity="center_horizontal"
311 android:layout_width="wrap_content" 319 android:layout_width="wrap_content"
312 android:layout_height="wrap_content"/> 320 android:layout_height="wrap_content"/>
313 <FrameLayout 321 <FrameLayout
314 android:background="@drawable/png_huyou_progress_bg" 322 android:background="@drawable/png_huyou_progress_bg"
315 android:padding="10dp" 323 android:padding="10dp"
316 android:layout_gravity="center_horizontal" 324 android:layout_gravity="center_horizontal"
317 android:layout_marginTop="16dp" 325 android:layout_marginTop="16dp"
318 android:layout_width="172dp" 326 android:layout_width="172dp"
319 android:layout_height="172dp"> 327 android:layout_height="172dp">
320 <com.littlejie.circleprogress.CircleProgress 328 <com.littlejie.circleprogress.CircleProgress
321 android:id="@+id/cpAfter" 329 android:id="@+id/cpAfter"
322 app:arcWidth="20dp" 330 app:arcWidth="20dp"
323 app:bgArcWidth="20dp" 331 app:bgArcWidth="20dp"
324 app:arcColors="#3BC3B6" 332 app:arcColors="#3BC3B6"
325 app:bgArcColor="#C2FCF6" 333 app:bgArcColor="#C2FCF6"
326 app:startAngle="-90" 334 app:startAngle="-90"
327 app:sweepAngle="360" 335 app:sweepAngle="360"
328 app:maxValue="100" 336 app:maxValue="100"
329 app:value="0" 337 app:value="0"
330 app:hintColor="@color/transparent" 338 app:hintColor="@color/transparent"
331 app:unitColor="@color/transparent" 339 app:unitColor="@color/transparent"
332 app:valueColor="@color/transparent" 340 app:valueColor="@color/transparent"
333 android:layout_width="match_parent" 341 android:layout_width="match_parent"
334 android:layout_height="match_parent"/> 342 android:layout_height="match_parent"/>
335 <LinearLayout 343 <LinearLayout
336 android:orientation="vertical" 344 android:orientation="vertical"
337 android:gravity="center_horizontal" 345 android:gravity="center_horizontal"
338 android:layout_gravity="center" 346 android:layout_gravity="center"
339 android:layout_width="wrap_content" 347 android:layout_width="wrap_content"
340 android:layout_height="wrap_content"> 348 android:layout_height="wrap_content">
341 <LinearLayout 349 <LinearLayout
342 android:layout_width="wrap_content" 350 android:layout_width="wrap_content"
343 android:layout_height="wrap_content"> 351 android:layout_height="wrap_content">
344 <TextView 352 <TextView
345 android:id="@+id/pgAfter" 353 android:id="@+id/pgAfter"
346 tools:text="88" 354 tools:text="88"
347 android:textSize="34sp" 355 android:textSize="34sp"
348 android:textColor="#3BC3B6" 356 android:textColor="#3BC3B6"
349 android:textStyle="bold" 357 android:textStyle="bold"
350 android:layout_width="wrap_content" 358 android:layout_width="wrap_content"
351 android:layout_height="wrap_content"/> 359 android:layout_height="wrap_content"/>
352 <TextView 360 <TextView
353 android:text="%" 361 android:text="%"
354 android:textSize="16sp" 362 android:textSize="16sp"
355 android:textColor="#3BC3B6" 363 android:textColor="#3BC3B6"
356 android:layout_width="wrap_content" 364 android:layout_width="wrap_content"
357 android:layout_height="wrap_content"/> 365 android:layout_height="wrap_content"/>
358 </LinearLayout> 366 </LinearLayout>
359 <TextView 367 <TextView
360 android:text="整体掌握程度" 368 android:text="整体掌握程度"
361 android:textSize="14sp" 369 android:textSize="14sp"
362 android:textColor="#333" 370 android:textColor="#333"
363 android:textStyle="bold" 371 android:textStyle="bold"
364 android:layout_marginTop="-2dp" 372 android:layout_marginTop="-2dp"
365 android:layout_width="wrap_content" 373 android:layout_width="wrap_content"
366 android:layout_height="wrap_content"/> 374 android:layout_height="wrap_content"/>
367 </LinearLayout> 375 </LinearLayout>
368 </FrameLayout> 376 </FrameLayout>
369 </LinearLayout> 377 </LinearLayout>
370 378
371 <FrameLayout 379 <FrameLayout
372 android:layout_marginTop="10dp" 380 android:layout_marginTop="10dp"
373 android:layout_width="match_parent" 381 android:layout_width="match_parent"
374 android:layout_height="wrap_content"> 382 android:layout_height="wrap_content">
375 <ImageView 383 <ImageView
376 android:src="@drawable/png_hy_weak_comment" 384 android:src="@drawable/png_hy_weak_comment"
377 android:layout_width="16dp" 385 android:layout_width="16dp"
378 android:layout_height="18dp"/> 386 android:layout_height="18dp"/>
379 <TextView 387 <TextView
380 android:id="@+id/tvWeakRate" 388 android:id="@+id/tvWeakRate"
381 android:textSize="14sp" 389 android:textSize="14sp"
382 android:textColor="#333" 390 android:textColor="#333"
383 android:layout_marginTop="1dp" 391 android:layout_marginTop="1dp"
384 android:lineSpacingMultiplier="1.3" 392 android:lineSpacingMultiplier="1.3"
385 android:layout_width="wrap_content" 393 android:layout_width="wrap_content"
386 android:layout_height="wrap_content"/> 394 android:layout_height="wrap_content"/>
387 </FrameLayout> 395 </FrameLayout>
388 </LinearLayout> 396 </LinearLayout>
389 397
390 <LinearLayout 398 <LinearLayout
391 android:orientation="vertical" 399 android:orientation="vertical"
392 android:background="@drawable/shape_radius_10" 400 android:background="@drawable/shape_radius_10"
393 android:backgroundTint="@color/white" 401 android:backgroundTint="@color/white"
394 android:padding="12dp" 402 android:padding="12dp"
395 android:layout_marginHorizontal="14dp" 403 android:layout_marginHorizontal="14dp"
396 android:layout_width="335dp" 404 android:layout_width="335dp"
397 android:layout_height="613dp"> 405 android:layout_height="613dp">
398 406
399 <TextView 407 <TextView
400 android:text="作业概括" 408 android:text="作业概括"
401 android:textSize="16sp" 409 android:textSize="16sp"
402 android:textColor="#333333" 410 android:textColor="#333333"
403 android:textStyle="bold" 411 android:textStyle="bold"
404 android:background="@drawable/bg_hy_summary_title" 412 android:background="@drawable/bg_hy_summary_title"
405 android:paddingStart="28dp" 413 android:paddingStart="28dp"
406 android:paddingEnd="4dp" 414 android:paddingEnd="4dp"
407 android:layout_marginTop="8dp" 415 android:layout_marginTop="8dp"
408 android:layout_gravity="center_horizontal" 416 android:layout_gravity="center_horizontal"
409 android:layout_width="wrap_content" 417 android:layout_width="wrap_content"
410 android:layout_height="wrap_content"/> 418 android:layout_height="wrap_content"/>
411 <LinearLayout 419 <LinearLayout
412 android:orientation="horizontal" 420 android:orientation="horizontal"
413 android:background="@drawable/shape_radius_5" 421 android:background="@drawable/shape_radius_5"
414 android:backgroundTint="#F4FAFF" 422 android:backgroundTint="#F4FAFF"
415 android:layout_width="match_parent" 423 android:layout_width="match_parent"
416 android:layout_height="58dp" 424 android:layout_height="58dp"
417 android:layout_marginTop="40dp"> 425 android:layout_marginTop="40dp">
418 <LinearLayout 426 <LinearLayout
419 android:orientation="vertical" 427 android:orientation="vertical"
420 android:gravity="center" 428 android:gravity="center"
421 android:layout_width="0dp" 429 android:layout_width="0dp"
422 android:layout_height="match_parent" 430 android:layout_height="match_parent"
423 android:layout_weight="1"> 431 android:layout_weight="1">
424 <LinearLayout 432 <LinearLayout
425 android:orientation="horizontal" 433 android:orientation="horizontal"
426 android:gravity="center_vertical" 434 android:gravity="center_vertical"
427 android:layout_width="wrap_content" 435 android:layout_width="wrap_content"
428 android:layout_height="wrap_content"> 436 android:layout_height="wrap_content">
429 <ImageView 437 <ImageView
430 android:src="@drawable/png_icon_statistical_accuracy" 438 android:src="@drawable/png_icon_statistical_accuracy"
431 android:layout_width="12dp" 439 android:layout_width="12dp"
432 android:layout_height="13dp"/> 440 android:layout_height="13dp"/>
433 <TextView 441 <TextView
434 android:text="作业正确率" 442 android:text="作业正确率"
435 android:textSize="11sp" 443 android:textSize="11sp"
436 android:textColor="#333" 444 android:textColor="#333"
437 android:textStyle="bold" 445 android:textStyle="bold"
438 android:layout_marginStart="5dp" 446 android:layout_marginStart="5dp"
439 android:layout_width="wrap_content" 447 android:layout_width="wrap_content"
440 android:layout_height="wrap_content"/> 448 android:layout_height="wrap_content"/>
441 </LinearLayout> 449 </LinearLayout>
442 <LinearLayout 450 <LinearLayout
443 android:orientation="horizontal" 451 android:orientation="horizontal"
444 android:layout_marginTop="8dp" 452 android:layout_marginTop="8dp"
445 android:layout_width="wrap_content" 453 android:layout_width="wrap_content"
446 android:layout_height="wrap_content"> 454 android:layout_height="wrap_content">
447 <TextView 455 <TextView
448 android:id="@+id/tvTotalRate" 456 android:id="@+id/tvTotalRate"
449 tools:text="88" 457 tools:text="88"
450 android:textSize="14sp" 458 android:textSize="14sp"
451 android:textColor="#3BC3B6" 459 android:textColor="#3BC3B6"
452 android:textStyle="bold" 460 android:textStyle="bold"
453 android:layout_width="wrap_content" 461 android:layout_width="wrap_content"
454 android:layout_height="wrap_content"/> 462 android:layout_height="wrap_content"/>
455 <TextView 463 <TextView
456 android:text="%" 464 android:text="%"
457 android:textSize="9sp" 465 android:textSize="9sp"
458 android:textColor="#3BC3B6" 466 android:textColor="#3BC3B6"
459 android:textStyle="bold" 467 android:textStyle="bold"
460 android:layout_width="wrap_content" 468 android:layout_width="wrap_content"
461 android:layout_height="wrap_content"/> 469 android:layout_height="wrap_content"/>
462 </LinearLayout> 470 </LinearLayout>
463 </LinearLayout> 471 </LinearLayout>
464 <View 472 <View
465 android:background="#9ECAFC" 473 android:background="#9ECAFC"
466 android:layout_marginVertical="8dp" 474 android:layout_marginVertical="8dp"
467 android:layout_width="1dp" 475 android:layout_width="1dp"
468 android:layout_height="match_parent"/> 476 android:layout_height="match_parent"/>
469 <LinearLayout 477 <LinearLayout
470 android:orientation="vertical" 478 android:orientation="vertical"
471 android:gravity="center" 479 android:gravity="center"
472 android:layout_width="0dp" 480 android:layout_width="0dp"
473 android:layout_height="match_parent" 481 android:layout_height="match_parent"
474 android:layout_weight="1"> 482 android:layout_weight="1">
475 <LinearLayout 483 <LinearLayout
476 android:orientation="horizontal" 484 android:orientation="horizontal"
477 android:gravity="center_vertical" 485 android:gravity="center_vertical"
478 android:layout_width="wrap_content" 486 android:layout_width="wrap_content"
479 android:layout_height="wrap_content"> 487 android:layout_height="wrap_content">
480 <ImageView 488 <ImageView
481 android:src="@drawable/png_icon_statistical_accuracy" 489 android:src="@drawable/png_icon_statistical_accuracy"
482 android:layout_width="12dp" 490 android:layout_width="12dp"
483 android:layout_height="13dp"/> 491 android:layout_height="13dp"/>
484 <TextView 492 <TextView
485 android:text="答对题数" 493 android:text="答对题数"
486 android:textSize="11sp" 494 android:textSize="11sp"
487 android:textColor="#333" 495 android:textColor="#333"
488 android:textStyle="bold" 496 android:textStyle="bold"
489 android:layout_marginStart="5dp" 497 android:layout_marginStart="5dp"
490 android:layout_width="wrap_content" 498 android:layout_width="wrap_content"
491 android:layout_height="wrap_content"/> 499 android:layout_height="wrap_content"/>
492 </LinearLayout> 500 </LinearLayout>
493 <LinearLayout 501 <LinearLayout
494 android:orientation="horizontal" 502 android:orientation="horizontal"
495 android:layout_marginTop="8dp" 503 android:layout_marginTop="8dp"
496 android:layout_width="wrap_content" 504 android:layout_width="wrap_content"
497 android:layout_height="wrap_content"> 505 android:layout_height="wrap_content">
498 <TextView 506 <TextView
499 android:id="@+id/tvTotalCorrect" 507 android:id="@+id/tvTotalCorrect"
500 tools:text="88" 508 tools:text="88"
501 android:textSize="14sp" 509 android:textSize="14sp"
502 android:textColor="#3BC3B6" 510 android:textColor="#3BC3B6"
503 android:textStyle="bold" 511 android:textStyle="bold"
504 android:layout_width="wrap_content" 512 android:layout_width="wrap_content"
505 android:layout_height="wrap_content"/> 513 android:layout_height="wrap_content"/>
506 <TextView 514 <TextView
507 android:text="道" 515 android:text="道"
508 android:textSize="9sp" 516 android:textSize="9sp"
509 android:textColor="#3BC3B6" 517 android:textColor="#3BC3B6"
510 android:textStyle="bold" 518 android:textStyle="bold"
511 android:layout_width="wrap_content" 519 android:layout_width="wrap_content"
512 android:layout_height="wrap_content"/> 520 android:layout_height="wrap_content"/>
513 </LinearLayout> 521 </LinearLayout>
514 </LinearLayout> 522 </LinearLayout>
515 <View 523 <View
516 android:background="#9ECAFC" 524 android:background="#9ECAFC"
517 android:layout_marginVertical="8dp" 525 android:layout_marginVertical="8dp"
518 android:layout_width="1dp" 526 android:layout_width="1dp"
519 android:layout_height="match_parent"/> 527 android:layout_height="match_parent"/>
520 <LinearLayout 528 <LinearLayout
521 android:orientation="vertical" 529 android:orientation="vertical"
522 android:gravity="center" 530 android:gravity="center"
523 android:layout_width="0dp" 531 android:layout_width="0dp"
524 android:layout_height="match_parent" 532 android:layout_height="match_parent"
525 android:layout_weight="1"> 533 android:layout_weight="1">
526 <LinearLayout 534 <LinearLayout
527 android:orientation="horizontal" 535 android:orientation="horizontal"
528 android:gravity="center_vertical" 536 android:gravity="center_vertical"
529 android:layout_width="wrap_content" 537 android:layout_width="wrap_content"
530 android:layout_height="wrap_content"> 538 android:layout_height="wrap_content">
531 <ImageView 539 <ImageView
532 android:src="@drawable/png_icon_statistical_accuracy" 540 android:src="@drawable/png_icon_statistical_accuracy"
533 android:layout_width="12dp" 541 android:layout_width="12dp"
534 android:layout_height="13dp"/> 542 android:layout_height="13dp"/>
535 <TextView 543 <TextView
536 android:text="答错题数" 544 android:text="答错题数"
537 android:textSize="11sp" 545 android:textSize="11sp"
538 android:textColor="#333" 546 android:textColor="#333"
539 android:textStyle="bold" 547 android:textStyle="bold"
540 android:layout_marginStart="5dp" 548 android:layout_marginStart="5dp"
541 android:layout_width="wrap_content" 549 android:layout_width="wrap_content"
542 android:layout_height="wrap_content"/> 550 android:layout_height="wrap_content"/>
543 </LinearLayout> 551 </LinearLayout>
544 <LinearLayout 552 <LinearLayout
545 android:orientation="horizontal" 553 android:orientation="horizontal"
546 android:layout_marginTop="8dp" 554 android:layout_marginTop="8dp"
547 android:layout_width="wrap_content" 555 android:layout_width="wrap_content"
548 android:layout_height="wrap_content"> 556 android:layout_height="wrap_content">
549 <TextView 557 <TextView
550 android:id="@+id/tvTotalError" 558 android:id="@+id/tvTotalError"
551 tools:text="88" 559 tools:text="88"
552 android:textSize="14sp" 560 android:textSize="14sp"
553 android:textColor="#3BC3B6" 561 android:textColor="#3BC3B6"
554 android:textStyle="bold" 562 android:textStyle="bold"
555 android:layout_width="wrap_content" 563 android:layout_width="wrap_content"
556 android:layout_height="wrap_content"/> 564 android:layout_height="wrap_content"/>
557 <TextView 565 <TextView
558 android:text="道" 566 android:text="道"
559 android:textSize="9sp" 567 android:textSize="9sp"
560 android:textColor="#3BC3B6" 568 android:textColor="#3BC3B6"
561 android:textStyle="bold" 569 android:textStyle="bold"
562 android:layout_width="wrap_content" 570 android:layout_width="wrap_content"
563 android:layout_height="wrap_content"/> 571 android:layout_height="wrap_content"/>
564 </LinearLayout> 572 </LinearLayout>
565 </LinearLayout> 573 </LinearLayout>
566 </LinearLayout> 574 </LinearLayout>
567 575
568 <TextView 576 <TextView
569 android:text="每日作业正确率" 577 android:text="每日作业正确率"
570 android:textSize="13sp" 578 android:textSize="13sp"
571 android:textColor="#333" 579 android:textColor="#333"
572 android:textStyle="bold" 580 android:textStyle="bold"
573 android:layout_gravity="center_horizontal" 581 android:layout_gravity="center_horizontal"
574 android:layout_marginTop="68dp" 582 android:layout_marginTop="68dp"
575 android:layout_width="wrap_content" 583 android:layout_width="wrap_content"
576 android:layout_height="wrap_content"/> 584 android:layout_height="wrap_content"/>
577 <com.github.mikephil.charting.charts.LineChart 585 <com.github.mikephil.charting.charts.LineChart
578 android:id="@+id/lineChart" 586 android:id="@+id/lineChart"
579 android:layout_width="match_parent" 587 android:layout_width="match_parent"
580 android:layout_height="220dp"/> 588 android:layout_height="220dp"/>
581 <Space style="@style/empty_space"/> 589 <Space style="@style/empty_space"/>
582 <FrameLayout 590 <FrameLayout
583 android:layout_width="match_parent" 591 android:layout_width="match_parent"
584 android:layout_height="wrap_content"> 592 android:layout_height="wrap_content">
585 <ImageView 593 <ImageView
586 android:src="@drawable/png_hy_summary_comment" 594 android:src="@drawable/png_hy_summary_comment"
587 android:layout_width="16dp" 595 android:layout_width="16dp"
588 android:layout_height="20dp"/> 596 android:layout_height="20dp"/>
589 <TextView 597 <TextView
590 android:id="@+id/tvRating" 598 android:id="@+id/tvRating"
591 android:textSize="14sp" 599 android:textSize="14sp"
592 android:textColor="#333" 600 android:textColor="#333"
593 android:lineSpacingMultiplier="1.3" 601 android:lineSpacingMultiplier="1.3"
594 android:layout_marginTop="2dp" 602 android:layout_marginTop="2dp"
595 android:layout_width="match_parent" 603 android:layout_width="match_parent"
596 android:layout_height="wrap_content"/> 604 android:layout_height="wrap_content"/>
597 </FrameLayout> 605 </FrameLayout>
598 </LinearLayout> 606 </LinearLayout>
599 607
600 <LinearLayout 608 <LinearLayout
601 android:orientation="vertical" 609 android:orientation="vertical"
602 android:background="@drawable/shape_radius_10" 610 android:background="@drawable/shape_radius_10"
603 android:backgroundTint="@color/white" 611 android:backgroundTint="@color/white"
604 android:padding="12dp" 612 android:padding="12dp"
605 android:layout_marginHorizontal="14dp" 613 android:layout_marginHorizontal="14dp"
606 android:layout_width="335dp" 614 android:layout_width="335dp"
607 android:layout_height="472dp"> 615 android:layout_height="472dp">
608 <TextView 616 <TextView
609 android:text="知识点掌握情况" 617 android:text="知识点掌握情况"
610 android:textSize="16sp" 618 android:textSize="16sp"
611 android:textColor="#333333" 619 android:textColor="#333333"
612 android:textStyle="bold" 620 android:textStyle="bold"
613 android:background="@drawable/bg_hy_point_title" 621 android:background="@drawable/bg_hy_point_title"
614 android:paddingStart="28dp" 622 android:paddingStart="28dp"
615 android:paddingEnd="4dp" 623 android:paddingEnd="4dp"
616 android:layout_marginTop="8dp" 624 android:layout_marginTop="8dp"
617 android:layout_gravity="center_horizontal" 625 android:layout_gravity="center_horizontal"
618 android:layout_width="wrap_content" 626 android:layout_width="wrap_content"
619 android:layout_height="wrap_content"/> 627 android:layout_height="wrap_content"/>
620 628
621 <LinearLayout 629 <LinearLayout
622 android:orientation="horizontal" 630 android:orientation="horizontal"
623 android:layout_width="match_parent" 631 android:layout_width="match_parent"
624 android:layout_height="70dp" 632 android:layout_height="70dp"
625 android:layout_marginTop="48dp"> 633 android:layout_marginTop="48dp">
626 <LinearLayout 634 <LinearLayout
627 android:orientation="vertical" 635 android:orientation="vertical"
628 android:background="@drawable/shape_radius_10" 636 android:background="@drawable/shape_radius_10"
629 android:backgroundTint="#F4FAFF" 637 android:backgroundTint="#F4FAFF"
630 android:gravity="center_horizontal" 638 android:gravity="center_horizontal"
631 android:paddingTop="8dp" 639 android:paddingTop="8dp"
632 android:layout_width="0dp" 640 android:layout_width="0dp"
633 android:layout_height="match_parent" 641 android:layout_height="match_parent"
634 android:layout_weight="1"> 642 android:layout_weight="1">
635 <ImageView 643 <ImageView
636 android:src="@drawable/png_ic_excellent" 644 android:src="@drawable/png_ic_excellent"
637 android:backgroundTint="#3BC3B6" 645 android:backgroundTint="#3BC3B6"
638 android:background="@drawable/bg_circle" 646 android:background="@drawable/bg_circle"
639 android:padding="4dp" 647 android:padding="4dp"
640 android:layout_width="20dp" 648 android:layout_width="20dp"
641 android:layout_height="20dp"/> 649 android:layout_height="20dp"/>
642 <TextView 650 <TextView
643 android:id="@+id/tvExcellent" 651 android:id="@+id/tvExcellent"
644 android:text="-" 652 android:text="-"
645 android:textColor="#3BC3B6" 653 android:textColor="#3BC3B6"
646 android:textSize="13sp" 654 android:textSize="13sp"
647 android:textStyle="bold" 655 android:textStyle="bold"
648 android:layout_marginTop="4dp" 656 android:layout_marginTop="4dp"
649 android:layout_width="wrap_content" 657 android:layout_width="wrap_content"
650 android:layout_height="wrap_content"/> 658 android:layout_height="wrap_content"/>
651 <TextView 659 <TextView
652 android:text="掌握优秀" 660 android:text="掌握优秀"
653 android:textSize="10sp" 661 android:textSize="10sp"
654 android:textColor="#333" 662 android:textColor="#333"
655 android:textStyle="bold" 663 android:textStyle="bold"
656 android:layout_width="wrap_content" 664 android:layout_width="wrap_content"
657 android:layout_height="wrap_content"/> 665 android:layout_height="wrap_content"/>
658 </LinearLayout> 666 </LinearLayout>
659 <LinearLayout 667 <LinearLayout
660 android:orientation="vertical" 668 android:orientation="vertical"
661 android:background="@drawable/shape_radius_10" 669 android:background="@drawable/shape_radius_10"
662 android:backgroundTint="#F4FAFF" 670 android:backgroundTint="#F4FAFF"
663 android:gravity="center_horizontal" 671 android:gravity="center_horizontal"
664 android:paddingTop="8dp" 672 android:paddingTop="8dp"
665 android:layout_marginStart="14dp" 673 android:layout_marginStart="14dp"
666 android:layout_width="0dp" 674 android:layout_width="0dp"
667 android:layout_height="match_parent" 675 android:layout_height="match_parent"
668 android:layout_weight="1"> 676 android:layout_weight="1">
669 <ImageView 677 <ImageView
670 android:src="@drawable/png_ic_good" 678 android:src="@drawable/png_ic_good"
671 android:backgroundTint="#489AFA" 679 android:backgroundTint="#489AFA"
672 android:background="@drawable/bg_circle" 680 android:background="@drawable/bg_circle"
673 android:padding="4dp" 681 android:padding="4dp"
674 android:layout_width="20dp" 682 android:layout_width="20dp"
675 android:layout_height="20dp"/> 683 android:layout_height="20dp"/>
676 <TextView 684 <TextView
677 android:id="@+id/tvGood" 685 android:id="@+id/tvGood"
678 android:text="-" 686 android:text="-"
679 android:textColor="#489AFA" 687 android:textColor="#489AFA"
680 android:textSize="13sp" 688 android:textSize="13sp"
681 android:textStyle="bold" 689 android:textStyle="bold"
682 android:layout_marginTop="4dp" 690 android:layout_marginTop="4dp"
683 android:layout_width="wrap_content" 691 android:layout_width="wrap_content"
684 android:layout_height="wrap_content"/> 692 android:layout_height="wrap_content"/>
685 <TextView 693 <TextView
686 android:text="掌握良好" 694 android:text="掌握良好"
687 android:textSize="10sp" 695 android:textSize="10sp"
688 android:textColor="#333" 696 android:textColor="#333"
689 android:textStyle="bold" 697 android:textStyle="bold"
690 android:layout_width="wrap_content" 698 android:layout_width="wrap_content"
691 android:layout_height="wrap_content"/> 699 android:layout_height="wrap_content"/>
692 </LinearLayout> 700 </LinearLayout>
693 <LinearLayout 701 <LinearLayout
694 android:orientation="vertical" 702 android:orientation="vertical"
695 android:background="@drawable/shape_radius_10" 703 android:background="@drawable/shape_radius_10"
696 android:backgroundTint="#F4FAFF" 704 android:backgroundTint="#F4FAFF"
697 android:gravity="center_horizontal" 705 android:gravity="center_horizontal"
698 android:paddingTop="8dp" 706 android:paddingTop="8dp"
699 android:layout_marginStart="14dp" 707 android:layout_marginStart="14dp"
700 android:layout_width="0dp" 708 android:layout_width="0dp"
701 android:layout_height="match_parent" 709 android:layout_height="match_parent"
702 android:layout_weight="1"> 710 android:layout_weight="1">
703 <ImageView 711 <ImageView
704 android:src="@drawable/png_ic_normal" 712 android:src="@drawable/png_ic_normal"
705 android:backgroundTint="#F58725" 713 android:backgroundTint="#F58725"
706 android:background="@drawable/bg_circle" 714 android:background="@drawable/bg_circle"
707 android:padding="4dp" 715 android:padding="4dp"
708 android:layout_width="20dp" 716 android:layout_width="20dp"
709 android:layout_height="20dp"/> 717 android:layout_height="20dp"/>
710 <TextView 718 <TextView
711 android:id="@+id/tvNormal" 719 android:id="@+id/tvNormal"
712 android:text="-" 720 android:text="-"
713 android:textColor="#F58725" 721 android:textColor="#F58725"
714 android:textSize="13sp" 722 android:textSize="13sp"
715 android:textStyle="bold" 723 android:textStyle="bold"
716 android:layout_marginTop="4dp" 724 android:layout_marginTop="4dp"
717 android:layout_width="wrap_content" 725 android:layout_width="wrap_content"
718 android:layout_height="wrap_content"/> 726 android:layout_height="wrap_content"/>
719 <TextView 727 <TextView
720 android:text="掌握一般" 728 android:text="掌握一般"
721 android:textSize="10sp" 729 android:textSize="10sp"
722 android:textColor="#333" 730 android:textColor="#333"
723 android:textStyle="bold" 731 android:textStyle="bold"
724 android:layout_width="wrap_content" 732 android:layout_width="wrap_content"
725 android:layout_height="wrap_content"/> 733 android:layout_height="wrap_content"/>
726 </LinearLayout> 734 </LinearLayout>
727 <LinearLayout 735 <LinearLayout
728 android:orientation="vertical" 736 android:orientation="vertical"
729 android:background="@drawable/shape_radius_10" 737 android:background="@drawable/shape_radius_10"
730 android:backgroundTint="#F4FAFF" 738 android:backgroundTint="#F4FAFF"
731 android:gravity="center_horizontal" 739 android:gravity="center_horizontal"
732 android:paddingTop="8dp" 740 android:paddingTop="8dp"
733 android:layout_marginStart="14dp" 741 android:layout_marginStart="14dp"
734 android:layout_width="0dp" 742 android:layout_width="0dp"
735 android:layout_height="match_parent" 743 android:layout_height="match_parent"
736 android:layout_weight="1"> 744 android:layout_weight="1">
737 <ImageView 745 <ImageView
738 android:src="@drawable/png_ic_weak" 746 android:src="@drawable/png_ic_weak"
739 android:backgroundTint="#EA5127" 747 android:backgroundTint="#EA5127"
740 android:background="@drawable/bg_circle" 748 android:background="@drawable/bg_circle"
741 android:padding="4dp" 749 android:padding="4dp"
742 android:layout_width="20dp" 750 android:layout_width="20dp"
743 android:layout_height="20dp"/> 751 android:layout_height="20dp"/>
744 <TextView 752 <TextView
745 android:id="@+id/tvWeak" 753 android:id="@+id/tvWeak"
746 android:text="-" 754 android:text="-"
747 android:textColor="#EA5127" 755 android:textColor="#EA5127"
748 android:textSize="13sp" 756 android:textSize="13sp"
749 android:textStyle="bold" 757 android:textStyle="bold"
750 android:layout_marginTop="4dp" 758 android:layout_marginTop="4dp"
751 android:layout_width="wrap_content" 759 android:layout_width="wrap_content"
752 android:layout_height="wrap_content"/> 760 android:layout_height="wrap_content"/>
753 <TextView 761 <TextView
754 android:text="掌握薄弱" 762 android:text="掌握薄弱"
755 android:textSize="10sp" 763 android:textSize="10sp"
756 android:textColor="#333" 764 android:textColor="#333"
757 android:textStyle="bold" 765 android:textStyle="bold"
758 android:layout_width="wrap_content" 766 android:layout_width="wrap_content"
759 android:layout_height="wrap_content"/> 767 android:layout_height="wrap_content"/>
760 </LinearLayout> 768 </LinearLayout>
761 </LinearLayout> 769 </LinearLayout>
762 770
763 <FrameLayout 771 <FrameLayout
764 android:layout_gravity="center_horizontal" 772 android:layout_gravity="center_horizontal"
765 android:layout_marginTop="36dp" 773 android:layout_marginTop="36dp"
766 android:layout_width="238dp" 774 android:layout_width="238dp"
767 android:layout_height="238dp"> 775 android:layout_height="238dp">
768 <com.littlejie.circleprogress.CircleProgress 776 <com.littlejie.circleprogress.CircleProgress
769 android:id="@+id/cpBase" 777 android:id="@+id/cpBase"
770 app:value="0" 778 app:value="0"
771 app:arcWidth="48dp" 779 app:arcWidth="48dp"
772 app:bgArcWidth="48dp" 780 app:bgArcWidth="48dp"
773 app:bgArcColor="#3BC3B6" 781 app:bgArcColor="#3BC3B6"
774 app:startAngle="0" 782 app:startAngle="0"
775 app:sweepAngle="360" 783 app:sweepAngle="360"
776 app:hintColor="@color/transparent" 784 app:hintColor="@color/transparent"
777 app:unitColor="@color/transparent" 785 app:unitColor="@color/transparent"
778 app:valueColor="@color/transparent" 786 app:valueColor="@color/transparent"
779 android:layout_width="match_parent" 787 android:layout_width="match_parent"
780 android:layout_height="match_parent"/> 788 android:layout_height="match_parent"/>
781 <com.littlejie.circleprogress.CircleProgress 789 <com.littlejie.circleprogress.CircleProgress
782 android:id="@+id/cpGood" 790 android:id="@+id/cpGood"
783 app:value="0" 791 app:value="0"
784 app:arcWidth="48dp" 792 app:arcWidth="48dp"
785 app:bgArcWidth="48dp" 793 app:bgArcWidth="48dp"
786 app:arcColors="#489AFA" 794 app:arcColors="#489AFA"
787 app:bgArcColor="@color/transparent" 795 app:bgArcColor="@color/transparent"
788 app:startAngle="0" 796 app:startAngle="0"
789 app:sweepAngle="360" 797 app:sweepAngle="360"
790 app:hintColor="@color/transparent" 798 app:hintColor="@color/transparent"
791 app:unitColor="@color/transparent" 799 app:unitColor="@color/transparent"
792 app:valueColor="@color/transparent" 800 app:valueColor="@color/transparent"
793 android:layout_width="match_parent" 801 android:layout_width="match_parent"
794 android:layout_height="match_parent"/> 802 android:layout_height="match_parent"/>
795 <com.littlejie.circleprogress.CircleProgress 803 <com.littlejie.circleprogress.CircleProgress
796 android:id="@+id/cpNormal" 804 android:id="@+id/cpNormal"
797 app:value="0" 805 app:value="0"
798 app:arcWidth="48dp" 806 app:arcWidth="48dp"
799 app:bgArcWidth="48dp" 807 app:bgArcWidth="48dp"
800 app:arcColors="#F58725" 808 app:arcColors="#F58725"
801 app:bgArcColor="@color/transparent" 809 app:bgArcColor="@color/transparent"
802 app:startAngle="0" 810 app:startAngle="0"
803 app:sweepAngle="360" 811 app:sweepAngle="360"
804 app:hintColor="@color/transparent" 812 app:hintColor="@color/transparent"
805 app:unitColor="@color/transparent" 813 app:unitColor="@color/transparent"
806 app:valueColor="@color/transparent" 814 app:valueColor="@color/transparent"
807 android:layout_width="match_parent" 815 android:layout_width="match_parent"
808 android:layout_height="match_parent"/> 816 android:layout_height="match_parent"/>
809 <com.littlejie.circleprogress.CircleProgress 817 <com.littlejie.circleprogress.CircleProgress
810 android:id="@+id/cpWeak" 818 android:id="@+id/cpWeak"
811 app:value="0" 819 app:value="0"
812 app:arcWidth="48dp" 820 app:arcWidth="48dp"
813 app:bgArcWidth="48dp" 821 app:bgArcWidth="48dp"
814 app:arcColors="#EA5127" 822 app:arcColors="#EA5127"
815 app:bgArcColor="@color/transparent" 823 app:bgArcColor="@color/transparent"
816 app:startAngle="0" 824 app:startAngle="0"
817 app:sweepAngle="360" 825 app:sweepAngle="360"
818 app:hintColor="@color/transparent" 826 app:hintColor="@color/transparent"
819 app:unitColor="@color/transparent" 827 app:unitColor="@color/transparent"
820 app:valueColor="@color/transparent" 828 app:valueColor="@color/transparent"
821 android:layout_width="match_parent" 829 android:layout_width="match_parent"
822 android:layout_height="match_parent"/> 830 android:layout_height="match_parent"/>
823 831
824 <LinearLayout 832 <LinearLayout
825 android:orientation="vertical" 833 android:orientation="vertical"
826 android:gravity="center_horizontal" 834 android:gravity="center_horizontal"
827 android:layout_gravity="center" 835 android:layout_gravity="center"
828 android:layout_width="wrap_content" 836 android:layout_width="wrap_content"
829 android:layout_height="wrap_content"> 837 android:layout_height="wrap_content">
830 <LinearLayout 838 <LinearLayout
831 android:layout_width="wrap_content" 839 android:layout_width="wrap_content"
832 android:layout_height="wrap_content"> 840 android:layout_height="wrap_content">
833 <TextView 841 <TextView
834 android:id="@+id/tvAvePoint" 842 android:id="@+id/tvAvePoint"
835 tools:text="88" 843 tools:text="88"
836 android:textSize="34sp" 844 android:textSize="34sp"
837 android:textColor="#3BC3B6" 845 android:textColor="#3BC3B6"
838 android:textStyle="bold" 846 android:textStyle="bold"
839 android:layout_width="wrap_content" 847 android:layout_width="wrap_content"
840 android:layout_height="wrap_content"/> 848 android:layout_height="wrap_content"/>
841 <TextView 849 <TextView
842 android:text="%" 850 android:text="%"
843 android:textSize="16sp" 851 android:textSize="16sp"
844 android:textColor="#3BC3B6" 852 android:textColor="#3BC3B6"
845 android:layout_width="wrap_content" 853 android:layout_width="wrap_content"
846 android:layout_height="wrap_content"/> 854 android:layout_height="wrap_content"/>
847 </LinearLayout> 855 </LinearLayout>
848 <TextView 856 <TextView
849 android:text="综合掌握程度" 857 android:text="综合掌握程度"
850 android:textSize="16sp" 858 android:textSize="16sp"
851 android:textColor="#333" 859 android:textColor="#333"
852 android:textStyle="bold" 860 android:textStyle="bold"
853 android:layout_marginTop="-2dp" 861 android:layout_marginTop="-2dp"
854 android:layout_width="wrap_content" 862 android:layout_width="wrap_content"
855 android:layout_height="wrap_content"/> 863 android:layout_height="wrap_content"/>
856 </LinearLayout> 864 </LinearLayout>
857 </FrameLayout> 865 </FrameLayout>
858 </LinearLayout> 866 </LinearLayout>
859 867
860 <LinearLayout 868 <LinearLayout
861 android:orientation="vertical" 869 android:orientation="vertical"
862 android:background="@drawable/shape_radius_10" 870 android:background="@drawable/shape_radius_10"
863 android:backgroundTint="@color/white" 871 android:backgroundTint="@color/white"
864 android:padding="16dp" 872 android:padding="16dp"
865 android:layout_marginHorizontal="14dp" 873 android:layout_marginHorizontal="14dp"
866 android:layout_width="335dp" 874 android:layout_width="335dp"
867 android:layout_height="472dp"> 875 android:layout_height="472dp">
868 <TextView 876 <TextView
869 android:text="学习效果分析" 877 android:text="学习效果分析"
870 android:textSize="16sp" 878 android:textSize="16sp"
871 android:textColor="#333333" 879 android:textColor="#333333"
872 android:textStyle="bold" 880 android:textStyle="bold"
873 android:background="@drawable/bg_hy_analyse_title" 881 android:background="@drawable/bg_hy_analyse_title"
874 android:paddingStart="24dp" 882 android:paddingStart="24dp"
875 android:paddingEnd="4dp" 883 android:paddingEnd="4dp"
876 android:layout_marginTop="4dp" 884 android:layout_marginTop="4dp"
877 android:layout_gravity="center_horizontal" 885 android:layout_gravity="center_horizontal"
878 android:layout_width="wrap_content" 886 android:layout_width="wrap_content"
879 android:layout_height="wrap_content"/> 887 android:layout_height="wrap_content"/>
880 888
881 <LinearLayout 889 <LinearLayout
882 android:id="@+id/flEmptyPoints" 890 android:id="@+id/flEmptyPoints"
883 android:visibility="gone" 891 android:visibility="gone"
884 android:orientation="vertical" 892 android:orientation="vertical"
885 android:gravity="center_horizontal" 893 android:gravity="center_horizontal"
886 android:layout_marginTop="80dp" 894 android:layout_marginTop="80dp"
887 android:layout_width="match_parent" 895 android:layout_width="match_parent"
888 android:layout_height="wrap_content"> 896 android:layout_height="wrap_content">
889 <ImageView 897 <ImageView
890 android:src="@drawable/png_huyou_points_empty" 898 android:src="@drawable/png_huyou_points_empty"
891 android:layout_width="195dp" 899 android:layout_width="195dp"
892 android:layout_height="145dp"/> 900 android:layout_height="145dp"/>
893 <TextView 901 <TextView
894 android:text="你太棒了!" 902 android:text="你太棒了!"
895 android:textSize="20sp" 903 android:textSize="20sp"
896 android:textColor="#999" 904 android:textColor="#999"
897 android:layout_marginVertical="16dp" 905 android:layout_marginVertical="16dp"
898 android:layout_width="wrap_content" 906 android:layout_width="wrap_content"
899 android:layout_height="wrap_content"/> 907 android:layout_height="wrap_content"/>
900 </LinearLayout> 908 </LinearLayout>
901 909
902 910
903 <LinearLayout 911 <LinearLayout
904 android:id="@+id/tableRoot" 912 android:id="@+id/tableRoot"
905 android:orientation="vertical" 913 android:orientation="vertical"
906 android:background="@drawable/bg_huyou_table_bg" 914 android:background="@drawable/bg_huyou_table_bg"
907 android:layout_marginTop="16dp" 915 android:layout_marginTop="16dp"
908 android:layout_width="match_parent" 916 android:layout_width="match_parent"
909 android:layout_height="wrap_content"> 917 android:layout_height="wrap_content">
910 <LinearLayout 918 <LinearLayout
911 android:orientation="horizontal" 919 android:orientation="horizontal"
912 android:background="#50CEC2" 920 android:background="#50CEC2"
913 android:layout_width="match_parent" 921 android:layout_width="match_parent"
914 android:layout_height="60dp"> 922 android:layout_height="60dp">
915 <TextView 923 <TextView
916 android:text="知识点名称" 924 android:text="知识点名称"
917 android:textSize="13sp" 925 android:textSize="13sp"
918 android:textColor="@color/white" 926 android:textColor="@color/white"
919 android:gravity="center" 927 android:gravity="center"
920 android:layout_weight="82" 928 android:layout_weight="82"
921 android:layout_width="0dp" 929 android:layout_width="0dp"
922 android:layout_height="match_parent"/> 930 android:layout_height="match_parent"/>
923 <View 931 <View
924 android:background="#38B3A7" 932 android:background="#38B3A7"
925 android:layout_width="1dp" 933 android:layout_width="1dp"
926 android:layout_height="match_parent"/> 934 android:layout_height="match_parent"/>
927 935
928 <LinearLayout 936 <LinearLayout
929 android:orientation="vertical" 937 android:orientation="vertical"
930 android:layout_weight="72" 938 android:layout_weight="72"
931 android:layout_width="0dp" 939 android:layout_width="0dp"
932 android:layout_height="match_parent"> 940 android:layout_height="match_parent">
933 <TextView 941 <TextView
934 android:text="学前" 942 android:text="学前"
935 android:textSize="13sp" 943 android:textSize="13sp"
936 android:textColor="@color/white" 944 android:textColor="@color/white"
937 android:gravity="center" 945 android:gravity="center"
938 android:layout_width="match_parent" 946 android:layout_width="match_parent"
939 android:layout_height="24dp"/> 947 android:layout_height="24dp"/>
940 <View 948 <View
941 android:background="#38B3A7" 949 android:background="#38B3A7"
942 android:layout_width="match_parent" 950 android:layout_width="match_parent"
943 android:layout_height="1dp"/> 951 android:layout_height="1dp"/>
944 <LinearLayout 952 <LinearLayout
945 android:orientation="horizontal" 953 android:orientation="horizontal"
946 android:layout_width="match_parent" 954 android:layout_width="match_parent"
947 android:layout_height="match_parent"> 955 android:layout_height="match_parent">
948 <TextView 956 <TextView
949 android:text="程\n度" 957 android:text="程\n度"
950 android:textSize="13sp" 958 android:textSize="13sp"
951 android:textColor="@color/white" 959 android:textColor="@color/white"
952 android:gravity="center" 960 android:gravity="center"
953 android:layout_weight="1" 961 android:layout_weight="1"
954 android:layout_width="0dp" 962 android:layout_width="0dp"
955 android:layout_height="wrap_content"/> 963 android:layout_height="wrap_content"/>
956 <View 964 <View
957 android:background="#38B3A7" 965 android:background="#38B3A7"
958 android:layout_width="1dp" 966 android:layout_width="1dp"
959 android:layout_height="match_parent"/> 967 android:layout_height="match_parent"/>
960 <TextView 968 <TextView
961 android:text="状\n态" 969 android:text="状\n态"
962 android:textSize="13sp" 970 android:textSize="13sp"
963 android:textColor="@color/white" 971 android:textColor="@color/white"
964 android:gravity="center" 972 android:gravity="center"
965 android:layout_weight="1" 973 android:layout_weight="1"
966 android:layout_width="0dp" 974 android:layout_width="0dp"
967 android:layout_height="wrap_content"/> 975 android:layout_height="wrap_content"/>
968 </LinearLayout> 976 </LinearLayout>
969 </LinearLayout> 977 </LinearLayout>
970 978
971 <View 979 <View
972 android:background="#38B3A7" 980 android:background="#38B3A7"
973 android:layout_width="1dp" 981 android:layout_width="1dp"
974 android:layout_height="match_parent"/> 982 android:layout_height="match_parent"/>
975 983
976 <LinearLayout 984 <LinearLayout
977 android:orientation="vertical" 985 android:orientation="vertical"
978 android:layout_weight="72" 986 android:layout_weight="72"
979 android:layout_width="0dp" 987 android:layout_width="0dp"
980 android:layout_height="match_parent"> 988 android:layout_height="match_parent">
981 <TextView 989 <TextView
982 android:text="学后" 990 android:text="学后"
983 android:textSize="13sp" 991 android:textSize="13sp"
984 android:textColor="@color/white" 992 android:textColor="@color/white"
985 android:gravity="center" 993 android:gravity="center"
986 android:layout_width="match_parent" 994 android:layout_width="match_parent"
987 android:layout_height="24dp"/> 995 android:layout_height="24dp"/>
988 <View 996 <View
989 android:background="#38B3A7" 997 android:background="#38B3A7"
990 android:layout_width="match_parent" 998 android:layout_width="match_parent"
991 android:layout_height="1dp"/> 999 android:layout_height="1dp"/>
992 <LinearLayout 1000 <LinearLayout
993 android:orientation="horizontal" 1001 android:orientation="horizontal"
994 android:layout_width="match_parent" 1002 android:layout_width="match_parent"
995 android:layout_height="match_parent"> 1003 android:layout_height="match_parent">
996 <TextView 1004 <TextView
997 android:text="程\n度" 1005 android:text="程\n度"
998 android:textSize="13sp" 1006 android:textSize="13sp"
999 android:textColor="@color/white" 1007 android:textColor="@color/white"
1000 android:gravity="center" 1008 android:gravity="center"
1001 android:layout_weight="1" 1009 android:layout_weight="1"
1002 android:layout_width="0dp" 1010 android:layout_width="0dp"
1003 android:layout_height="wrap_content"/> 1011 android:layout_height="wrap_content"/>
1004 <View 1012 <View
1005 android:background="#38B3A7" 1013 android:background="#38B3A7"
1006 android:layout_width="1dp" 1014 android:layout_width="1dp"
1007 android:layout_height="match_parent"/> 1015 android:layout_height="match_parent"/>
1008 <TextView 1016 <TextView
1009 android:text="状\n态" 1017 android:text="状\n态"
1010 android:textSize="13sp" 1018 android:textSize="13sp"
1011 android:textColor="@color/white" 1019 android:textColor="@color/white"
1012 android:gravity="center" 1020 android:gravity="center"
1013 android:layout_weight="1" 1021 android:layout_weight="1"
1014 android:layout_width="0dp" 1022 android:layout_width="0dp"
1015 android:layout_height="wrap_content"/> 1023 android:layout_height="wrap_content"/>
1016 </LinearLayout> 1024 </LinearLayout>
1017 1025
1018 </LinearLayout> 1026 </LinearLayout>
1019 1027
1020 <View 1028 <View
1021 android:background="#38B3A7" 1029 android:background="#38B3A7"
1022 android:layout_width="1dp" 1030 android:layout_width="1dp"
1023 android:layout_height="match_parent"/> 1031 android:layout_height="match_parent"/>
1024 <TextView 1032 <TextView
1025 android:text="进步\n幅度" 1033 android:text="进步\n幅度"
1026 android:textSize="13sp" 1034 android:textSize="13sp"
1027 android:textColor="@color/white" 1035 android:textColor="@color/white"
1028 android:gravity="center" 1036 android:gravity="center"
1029 android:layout_weight="50" 1037 android:layout_weight="50"
1030 android:layout_width="0dp" 1038 android:layout_width="0dp"
1031 android:layout_height="match_parent"/> 1039 android:layout_height="match_parent"/>
1032 <View 1040 <View
1033 android:background="#38B3A7" 1041 android:background="#38B3A7"
1034 android:layout_width="1dp" 1042 android:layout_width="1dp"
1035 android:layout_height="match_parent"/> 1043 android:layout_height="match_parent"/>
1036 <TextView 1044 <TextView
1037 android:text="正答\n率" 1045 android:text="正答\n率"
1038 android:textSize="13sp" 1046 android:textSize="13sp"
1039 android:textColor="@color/white" 1047 android:textColor="@color/white"
1040 android:gravity="center" 1048 android:gravity="center"
1041 android:layout_weight="38" 1049 android:layout_weight="38"
1042 android:layout_width="0dp" 1050 android:layout_width="0dp"
1043 android:layout_height="match_parent"/> 1051 android:layout_height="match_parent"/>
1044 </LinearLayout> 1052 </LinearLayout>
1045 <androidx.recyclerview.widget.RecyclerView 1053 <androidx.recyclerview.widget.RecyclerView
1046 android:id="@+id/rvPoint" 1054 android:id="@+id/rvPoint"
1047 android:orientation="vertical" 1055 android:orientation="vertical"
1048 app:layoutManager="androidx.recyclerview.widget.LinearLayoutManager" 1056 app:layoutManager="androidx.recyclerview.widget.LinearLayoutManager"
1049 app:reverseLayout="false" 1057 app:reverseLayout="false"
1050 android:layout_width="match_parent" 1058 android:layout_width="match_parent"
1051 android:layout_height="wrap_content"/> 1059 android:layout_height="wrap_content"/>
1052 </LinearLayout> 1060 </LinearLayout>
1053 1061
1054 <LinearLayout 1062 <LinearLayout
1055 android:id="@+id/flPointDesc" 1063 android:id="@+id/flPointDesc"
1056 android:alpha="0" 1064 android:alpha="0"
1057 android:orientation="horizontal" 1065 android:orientation="horizontal"
1058 android:gravity="center_vertical" 1066 android:gravity="center_vertical"
1059 android:layout_marginTop="10dp" 1067 android:layout_marginTop="10dp"
1060 android:layout_width="match_parent" 1068 android:layout_width="match_parent"
1061 android:layout_height="wrap_content"> 1069 android:layout_height="wrap_content">
1062 <ImageView 1070 <ImageView
1063 android:src="@drawable/png_up" 1071 android:src="@drawable/png_up"
1064 android:layout_width="12dp" 1072 android:layout_width="12dp"
1065 android:layout_height="12dp"/> 1073 android:layout_height="12dp"/>
1066 <TextView 1074 <TextView
1067 android:text="代表进步幅度最大的知识点" 1075 android:text="代表进步幅度最大的知识点"
1068 android:textSize="12sp" 1076 android:textSize="12sp"
1069 android:textColor="#666" 1077 android:textColor="#666"
1070 android:layout_marginStart="8dp" 1078 android:layout_marginStart="8dp"
1071 android:layout_width="wrap_content" 1079 android:layout_width="wrap_content"
1072 android:layout_height="wrap_content"/> 1080 android:layout_height="wrap_content"/>
1073 </LinearLayout> 1081 </LinearLayout>
1074 </LinearLayout> 1082 </LinearLayout>
1075 </LinearLayout> 1083 </LinearLayout>
1076 </HorizontalScrollView> 1084 </HorizontalScrollView>
1077 1085
1078 </LinearLayout> 1086 </LinearLayout>