Commit 508a582a7529efe5438613d4ee54f8c356c80d98

Authored by shixianjie
1 parent 6824327776
Exists in master

数据,文案,布局调整

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