...
|
...
|
@@ -5,6 +5,7 @@ import android.content.Context; |
|
|
import android.content.Intent;
|
|
|
import android.os.Build;
|
|
|
import android.os.Bundle;
|
|
|
import android.os.CountDownTimer;
|
|
|
import android.support.annotation.RequiresApi;
|
|
|
import android.util.Log;
|
|
|
import android.view.Gravity;
|
...
|
...
|
@@ -72,14 +73,22 @@ public class AnswerActivity extends BaseMvpActivity<CommonPresenter, ExerciseMod |
|
|
LinearLayout linTab;
|
|
|
@BindView(R.id.rl_card)
|
|
|
RelativeLayout rlCard;
|
|
|
@BindView(R.id.tv_show_card)
|
|
|
TextView tvShowCard;
|
|
|
@BindView(R.id.tv_hour)
|
|
|
TextView tvHour;
|
|
|
@BindView(R.id.tv_minute)
|
|
|
TextView tvMinute;
|
|
|
@BindView(R.id.tv_second)
|
|
|
TextView tvSecond;
|
|
|
|
|
|
private ListAnswerAdapter optionsAdapter;
|
|
|
private List<AnswerBean.QuestionLstBean> questionList = new ArrayList<>();
|
|
|
private List<Integer> sheetCard = new ArrayList<>();
|
|
|
private String catalogOid;
|
|
|
private PopupWindow popupWindow;
|
|
|
private int maxTopic=0; //题目总数量
|
|
|
private int unDone; //未完成题目数量
|
|
|
private int maxTopic = 0; //题目总数量
|
|
|
private int unDone = 0; //未完成题目数量
|
|
|
private double danxuan; //单选题分数 单个
|
|
|
private double duoxuan; //多选题分数 单个
|
|
|
private double panduan; //判断题分数 单个
|
...
|
...
|
@@ -99,6 +108,12 @@ public class AnswerActivity extends BaseMvpActivity<CommonPresenter, ExerciseMod |
|
|
private int panduanWrong;//判断做错的数量
|
|
|
private AnswerSheetGridAdapter sheetGridAdapter;
|
|
|
private String resumeOid;
|
|
|
private List<String> answer = new ArrayList<>();//存放多选题选择答案
|
|
|
private boolean isRight = false; //判断多选题是否选对
|
|
|
private int longTime;
|
|
|
private int thisTime;
|
|
|
private CountDownTimer timer;
|
|
|
private List<Integer> integerList = new ArrayList<>();
|
|
|
|
|
|
|
|
|
// R.layout.pop_answer
|
...
|
...
|
@@ -113,6 +128,7 @@ public class AnswerActivity extends BaseMvpActivity<CommonPresenter, ExerciseMod |
|
|
commit.setOnClickListener(this);
|
|
|
linTab.setOnClickListener(this);
|
|
|
rlCard.setOnClickListener(this);
|
|
|
tvShowCard.setOnClickListener(this);
|
|
|
|
|
|
listAnswer.setOnItemClickListener(new AdapterView.OnItemClickListener() {
|
|
|
@Override
|
...
|
...
|
@@ -120,7 +136,7 @@ public class AnswerActivity extends BaseMvpActivity<CommonPresenter, ExerciseMod |
|
|
ImageView wrong = (ImageView) view.findViewById(R.id.img_wrong);
|
|
|
ImageView right = (ImageView) view.findViewById(R.id.img_right);
|
|
|
TextView option = (TextView) view.findViewById(R.id.option);
|
|
|
|
|
|
TextView text = (TextView) view.findViewById(R.id.text);
|
|
|
if (markType.contains("单选") || markType.contains("判断")) {
|
|
|
if (isClickOnce) {
|
|
|
isClickOnce = false;
|
...
|
...
|
@@ -144,79 +160,131 @@ public class AnswerActivity extends BaseMvpActivity<CommonPresenter, ExerciseMod |
|
|
} else {
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
if (rightAnswer.contains(selectAnswer)) {
|
|
|
/* right.setVisibility(View.VISIBLE);
|
|
|
wrong.setVisibility(View.GONE);
|
|
|
option.setVisibility(View.GONE);*/
|
|
|
text.setTextColor(getResources().getColor(R.color.color_ff5400));
|
|
|
option.setTextColor(getResources().getColor(R.color.color_ff5400));
|
|
|
//答题成功 加分
|
|
|
if (markType.contains("单选")) {
|
|
|
totalScore += danxuan;
|
|
|
} else if (markType.contains("多选")) {
|
|
|
totalScore += duoxuan;
|
|
|
} else if (markType.contains("判断")) {
|
|
|
totalScore += panduan;
|
|
|
}
|
|
|
|
|
|
rightCount++;
|
|
|
tvRightNum.setText(String.valueOf(rightCount));
|
|
|
|
|
|
sheetCard.set(currentIndex, 1);
|
|
|
sheetGridAdapter.notifyDataSetChanged();
|
|
|
|
|
|
} else {
|
|
|
if (markType.contains("单选")) {
|
|
|
danxuanWrong++;
|
|
|
} else if (markType.contains("判断")) {
|
|
|
panduanWrong++;
|
|
|
}
|
|
|
|
|
|
//答题失败
|
|
|
/*right.setVisibility(View.GONE);
|
|
|
wrong.setVisibility(View.VISIBLE);
|
|
|
option.setVisibility(View.GONE);*/
|
|
|
text.setTextColor(getResources().getColor(R.color.color_ff5400));
|
|
|
option.setTextColor(getResources().getColor(R.color.color_ff5400));
|
|
|
String questionOid = questionList.get(position).getQuestionOid();
|
|
|
mPresenter.getPresenter(4, 2, resumeOid, questionOid, String.valueOf(1), catalogOid);
|
|
|
|
|
|
wrongCount++;
|
|
|
tvWrongNum.setText(String.valueOf(wrongCount));
|
|
|
|
|
|
|
|
|
sheetCard.set(currentIndex, 2);
|
|
|
sheetGridAdapter.notifyDataSetChanged();
|
|
|
}
|
|
|
|
|
|
|
|
|
} else if (markType.contains("多选")) {
|
|
|
try {
|
|
|
//选择答案
|
|
|
if (position == 0)
|
|
|
selectAnswer += "A";
|
|
|
answer.add("A");
|
|
|
if (position == 1)
|
|
|
selectAnswer += "B";
|
|
|
answer.add("B");
|
|
|
if (position == 2)
|
|
|
selectAnswer += "C";
|
|
|
answer.add("C");
|
|
|
if (position == 3)
|
|
|
selectAnswer += "D";
|
|
|
answer.add("D");
|
|
|
if (position == 4)
|
|
|
selectAnswer += "E";
|
|
|
answer.add("E");
|
|
|
if (position == 5)
|
|
|
selectAnswer += "F";
|
|
|
answer.add("F");
|
|
|
} catch (Exception e) {
|
|
|
Log.e("Exception:", e.toString());
|
|
|
}
|
|
|
}
|
|
|
|
|
|
Log.e("zhangtao:rightAnswer", rightAnswer + "");
|
|
|
Log.e("zhangtao:selectAnswer", selectAnswer + "");
|
|
|
|
|
|
if (rightAnswer.contains(selectAnswer)) {
|
|
|
right.setVisibility(View.VISIBLE);
|
|
|
wrong.setVisibility(View.GONE);
|
|
|
option.setVisibility(View.GONE);
|
|
|
for (int i = 0; i < answer.size(); i++) {
|
|
|
if (rightAnswer.contains(answer.get(i))) {
|
|
|
integerList.add(1);
|
|
|
/*right.setVisibility(View.VISIBLE);
|
|
|
wrong.setVisibility(View.GONE);
|
|
|
option.setVisibility(View.GONE);*/
|
|
|
text.setTextColor(getResources().getColor(R.color.color_ff5400));
|
|
|
option.setTextColor(getResources().getColor(R.color.color_ff5400));
|
|
|
} else {
|
|
|
integerList.add(2);
|
|
|
/* right.setVisibility(View.GONE);
|
|
|
wrong.setVisibility(View.VISIBLE);
|
|
|
option.setVisibility(View.GONE);*/
|
|
|
text.setTextColor(getResources().getColor(R.color.color_ff5400));
|
|
|
option.setTextColor(getResources().getColor(R.color.color_ff5400));
|
|
|
}
|
|
|
|
|
|
//答题成功 加分
|
|
|
if (markType.contains("单选")) {
|
|
|
totalScore += danxuan;
|
|
|
} else if (markType.contains("多选")) {
|
|
|
totalScore += duoxuan;
|
|
|
} else if (markType.contains("判断")) {
|
|
|
totalScore += panduan;
|
|
|
}
|
|
|
|
|
|
rightCount++;
|
|
|
tvRightNum.setText(String.valueOf(rightCount));
|
|
|
for (int i = 0; i < integerList.size(); i++) {
|
|
|
if (integerList.get(i) == 2) {
|
|
|
isRight = false;
|
|
|
} else {
|
|
|
isRight = true;
|
|
|
}
|
|
|
|
|
|
sheetCard.set(currentIndex, 1);
|
|
|
sheetGridAdapter.notifyDataSetChanged();
|
|
|
}
|
|
|
|
|
|
if (!isRight) {
|
|
|
//答题失败
|
|
|
String questionOid = questionList.get(position).getQuestionOid();
|
|
|
mPresenter.getPresenter(4, 2, resumeOid, questionOid, String.valueOf(1), catalogOid);
|
|
|
|
|
|
} else {
|
|
|
if (markType.contains("单选")) {
|
|
|
danxuanWrong++;
|
|
|
} else if (markType.contains("多选")) {
|
|
|
duoxuanWrong++;
|
|
|
} else if (markType.contains("判断")) {
|
|
|
panduanWrong++;
|
|
|
}
|
|
|
wrongCount++;
|
|
|
tvWrongNum.setText(String.valueOf(wrongCount));
|
|
|
|
|
|
//答题失败
|
|
|
right.setVisibility(View.GONE);
|
|
|
wrong.setVisibility(View.VISIBLE);
|
|
|
option.setVisibility(View.GONE);
|
|
|
|
|
|
String questionOid = questionList.get(position).getQuestionOid();
|
|
|
mPresenter.getPresenter(4, 2, resumeOid, questionOid, String.valueOf(1));
|
|
|
sheetCard.set(currentIndex, 2);
|
|
|
sheetGridAdapter.notifyDataSetChanged();
|
|
|
} else if (isRight && rightAnswer.length() == answer.size()) {
|
|
|
|
|
|
wrongCount++;
|
|
|
tvWrongNum.setText(String.valueOf(wrongCount));
|
|
|
rightCount++;
|
|
|
tvRightNum.setText(String.valueOf(rightCount));
|
|
|
|
|
|
sheetCard.set(currentIndex, 1);
|
|
|
sheetGridAdapter.notifyDataSetChanged();
|
|
|
|
|
|
sheetCard.set(currentIndex, 2);
|
|
|
sheetGridAdapter.notifyDataSetChanged();
|
|
|
totalScore += duoxuan;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
}
|
|
|
});
|
|
|
}
|
|
|
|
|
|
private void doRefresh() {
|
|
|
|
|
|
isRight = false;
|
|
|
answer.clear();
|
|
|
rightAnswer = questionList.get(currentIndex).getAnswer();
|
|
|
tvCurrent.setText(String.valueOf(currentIndex + 1));
|
|
|
tvRadio.setText(questionList.get(currentIndex).getQuestionTypeName());
|
...
|
...
|
@@ -231,6 +299,8 @@ public class AnswerActivity extends BaseMvpActivity<CommonPresenter, ExerciseMod |
|
|
optionsAdapter = new ListAnswerAdapter(questionList.get(currentIndex).getOptionsLst(), this);
|
|
|
listAnswer.setAdapter(optionsAdapter);
|
|
|
optionsAdapter.notifyDataSetChanged();
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
@Override
|
...
|
...
|
@@ -241,7 +311,7 @@ public class AnswerActivity extends BaseMvpActivity<CommonPresenter, ExerciseMod |
|
|
@Override
|
|
|
public void initData() {
|
|
|
// mPresenter.getPresenter(4, 1, catalogOid, "3E0E2A6B-6616-4CEE-B498-1F06A6F8D482");
|
|
|
mPresenter.getPresenter(4, 1, catalogOid,resumeOid);
|
|
|
mPresenter.getPresenter(4, 1, catalogOid, resumeOid);
|
|
|
}
|
|
|
|
|
|
@Override
|
...
|
...
|
@@ -258,44 +328,95 @@ public class AnswerActivity extends BaseMvpActivity<CommonPresenter, ExerciseMod |
|
|
public void getData(Object o, int api, int intent) {
|
|
|
if (api == 4 && intent == 1) {
|
|
|
AnswerBean bean = (AnswerBean) o;
|
|
|
if (bean.isIsSuccess()) {
|
|
|
maxTopic = bean.getRadioCount() + bean.getMultipleCount() + bean.getJudgeCount();
|
|
|
danxuanCount = bean.getRadioCount();
|
|
|
duoxuanCount = bean.getMultipleCount();
|
|
|
panduanCount = bean.getJudgeCount();
|
|
|
|
|
|
all.setText(String.valueOf(maxTopic));
|
|
|
for (int i = 0; i < maxTopic; i++) {
|
|
|
sheetCard.add(0);
|
|
|
}
|
|
|
sheetGridAdapter = new AnswerSheetGridAdapter(sheetCard, this);
|
|
|
|
|
|
maxTopic = bean.getRadioCount() + bean.getMultipleCount() + bean.getJudgeCount();
|
|
|
danxuanCount = bean.getRadioCount();
|
|
|
duoxuanCount = bean.getMultipleCount();
|
|
|
panduanCount = bean.getJudgeCount();
|
|
|
questionList.addAll(bean.getQuestionLst());
|
|
|
|
|
|
all.setText(String.valueOf(maxTopic));
|
|
|
for (int i = 0; i < maxTopic; i++) {
|
|
|
sheetCard.add(0);
|
|
|
danxuan = bean.getRadioScore();
|
|
|
duoxuan = bean.getMultipleScore();
|
|
|
panduan = bean.getJudgeScore();
|
|
|
rightAnswer = bean.getQuestionLst().get(0).getAnswer();
|
|
|
|
|
|
optionsAdapter = new ListAnswerAdapter(questionList.get(0).getOptionsLst(), this);
|
|
|
listAnswer.setAdapter(optionsAdapter);
|
|
|
|
|
|
tvCurrent.setText(String.valueOf(currentIndex + 1));
|
|
|
tvMax.setText(String.valueOf(maxTopic));
|
|
|
if (questionList.get(currentIndex).getQuestionTypeName() != null)
|
|
|
tvRadio.setText(questionList.get(currentIndex).getQuestionTypeName());
|
|
|
markType = questionList.get(currentIndex).getQuestionTypeName();
|
|
|
if (markType.contains("单选") || markType.contains("判断")) {
|
|
|
isClickOnce = true;
|
|
|
} else {
|
|
|
isClickOnce = false;
|
|
|
}
|
|
|
if (questionList.get(currentIndex).getQuestionTitle() != null)
|
|
|
tvTopic.setText(questionList.get(currentIndex).getQuestionTitle());
|
|
|
}
|
|
|
sheetGridAdapter = new AnswerSheetGridAdapter(sheetCard, this);
|
|
|
|
|
|
questionList.addAll(bean.getQuestionLst());
|
|
|
longTime = bean.getExamMinute() * 60;
|
|
|
|
|
|
danxuan = bean.getRadioScore();
|
|
|
duoxuan = bean.getMultipleScore();
|
|
|
panduan = bean.getJudgeScore();
|
|
|
rightAnswer = bean.getQuestionLst().get(0).getAnswer();
|
|
|
thisTime = longTime;
|
|
|
timer = new CountDownTimer(thisTime * 1000, 1000) {
|
|
|
|
|
|
if (bean.getExamType() != null) {
|
|
|
tvTitle.setText(bean.getExamType());
|
|
|
}
|
|
|
private Intent intent;
|
|
|
|
|
|
optionsAdapter = new ListAnswerAdapter(questionList.get(0).getOptionsLst(), this);
|
|
|
listAnswer.setAdapter(optionsAdapter);
|
|
|
|
|
|
tvCurrent.setText(String.valueOf(currentIndex + 1));
|
|
|
tvMax.setText(String.valueOf(maxTopic));
|
|
|
if (questionList.get(currentIndex).getQuestionTypeName() != null)
|
|
|
tvRadio.setText(questionList.get(currentIndex).getQuestionTypeName());
|
|
|
markType = questionList.get(currentIndex).getQuestionTypeName();
|
|
|
if (markType.contains("单选") || markType.contains("判断")) {
|
|
|
isClickOnce = true;
|
|
|
} else {
|
|
|
isClickOnce = false;
|
|
|
}
|
|
|
if (questionList.get(currentIndex).getQuestionTitle() != null)
|
|
|
tvTopic.setText(questionList.get(currentIndex).getQuestionTitle());
|
|
|
@Override
|
|
|
public void onTick(long millisUntilFinished) {
|
|
|
thisTime--;
|
|
|
tvSecond.setText(String.valueOf(thisTime));
|
|
|
}
|
|
|
|
|
|
@Override
|
|
|
public void onFinish() {
|
|
|
if (currentIndex == 0) {
|
|
|
intent = new Intent(AnswerActivity.this, TestScoreActivity.class);
|
|
|
intent.putExtra("catalogOid", catalogOid);
|
|
|
intent.putExtra("danxuanCount", danxuanCount);
|
|
|
intent.putExtra("duoxuanCount", duoxuanCount);
|
|
|
intent.putExtra("panduanCount", panduanCount);
|
|
|
intent.putExtra("danxuanWrong", danxuanCount);
|
|
|
intent.putExtra("panduanWrong", panduanCount);
|
|
|
intent.putExtra("duoxuanWrong", duoxuanCount);
|
|
|
intent.putExtra("totalScore", totalScore);
|
|
|
startActivity(intent);
|
|
|
AnswerActivity.this.finish();
|
|
|
} else {
|
|
|
|
|
|
for (int i = currentIndex + 1; i < questionList.size(); i++) {
|
|
|
if (questionList.get(i).getQuestionTypeName().contains("单选")) {
|
|
|
danxuanWrong++;
|
|
|
} else if (questionList.get(i).getQuestionTypeName().contains("多选")) {
|
|
|
duoxuanWrong++;
|
|
|
} else if (questionList.get(i).getQuestionTypeName().contains("判断")) {
|
|
|
panduanWrong++;
|
|
|
}
|
|
|
|
|
|
}
|
|
|
intent = new Intent(AnswerActivity.this, TestScoreActivity.class);
|
|
|
intent.putExtra("catalogOid", catalogOid);
|
|
|
intent.putExtra("danxuanCount", danxuanCount);
|
|
|
intent.putExtra("duoxuanCount", duoxuanCount);
|
|
|
intent.putExtra("panduanCount", panduanCount);
|
|
|
intent.putExtra("danxuanWrong", danxuanWrong);
|
|
|
intent.putExtra("panduanWrong", panduanWrong);
|
|
|
intent.putExtra("duoxuanWrong", duoxuanWrong);
|
|
|
intent.putExtra("totalScore", totalScore);
|
|
|
startActivity(intent);
|
|
|
AnswerActivity.this.finish();
|
|
|
}
|
|
|
}
|
|
|
}.start();
|
|
|
}
|
|
|
}
|
|
|
|
...
|
...
|
@@ -310,6 +431,12 @@ public class AnswerActivity extends BaseMvpActivity<CommonPresenter, ExerciseMod |
|
|
}
|
|
|
|
|
|
@Override
|
|
|
protected void onDestroy() {
|
|
|
super.onDestroy();
|
|
|
timer.cancel();
|
|
|
}
|
|
|
|
|
|
@Override
|
|
|
protected void onCreate(Bundle savedInstanceState) {
|
|
|
super.onCreate(savedInstanceState);
|
|
|
// TODO: add setContentView(...) invocation
|
...
|
...
|
@@ -333,6 +460,7 @@ public class AnswerActivity extends BaseMvpActivity<CommonPresenter, ExerciseMod |
|
|
case R.id.rl_next:
|
|
|
if (currentIndex < maxTopic - 1) {
|
|
|
if (selectAnswer == "" || selectAnswer == null) {
|
|
|
|
|
|
sheetCard.set(currentIndex, 0);
|
|
|
sheetGridAdapter.notifyDataSetChanged();
|
|
|
unDone++;
|
...
|
...
|
@@ -346,23 +474,44 @@ public class AnswerActivity extends BaseMvpActivity<CommonPresenter, ExerciseMod |
|
|
}
|
|
|
|
|
|
String questionOid = questionList.get(currentIndex).getQuestionOid();
|
|
|
mPresenter.getPresenter(4, 2, resumeOid, questionOid, String.valueOf(1));
|
|
|
mPresenter.getPresenter(4, 2, resumeOid, questionOid, String.valueOf(1), catalogOid);
|
|
|
}
|
|
|
currentIndex++;
|
|
|
index.setText(String.valueOf(currentIndex + 1));
|
|
|
doRefresh();
|
|
|
|
|
|
selectAnswer = "";
|
|
|
if (currentIndex == maxTopic - 1) {
|
|
|
tvShowCard.setVisibility(View.GONE);
|
|
|
commit.setVisibility(View.VISIBLE);
|
|
|
|
|
|
if (markType.contains("单选")) {
|
|
|
danxuanWrong++;
|
|
|
} else if (markType.contains("多选")) {
|
|
|
duoxuanWrong++;
|
|
|
} else if (markType.contains("判断")) {
|
|
|
panduanWrong++;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
} else {
|
|
|
/* Intent intent = new Intent(this, AnswerMarkActivity.class);
|
|
|
intent.putExtra("catalogOid", catalogOid);
|
|
|
startActivity(intent);
|
|
|
Log.e("zhangtao:totalScore", totalScore + "");*/
|
|
|
Toast.makeText(this, "当前已是最后一题", Toast.LENGTH_SHORT).show();
|
|
|
}
|
|
|
break;
|
|
|
case R.id.commit:
|
|
|
showCommitCard(this, maxTopic - currentIndex - 1);
|
|
|
if (selectAnswer == "" || selectAnswer == null) {
|
|
|
unDone++;
|
|
|
|
|
|
if (questionList.get(questionList.size() - 1).getQuestionTypeName().equals("多选")) {
|
|
|
duoxuanWrong++;
|
|
|
} else if (questionList.get(questionList.size() - 1).getQuestionTypeName().equals("单选")) {
|
|
|
danxuanWrong++;
|
|
|
} else if (questionList.get(questionList.size() - 1).getQuestionTypeName().equals("判断")) {
|
|
|
panduanWrong++;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
showCommitCard(this, unDone);
|
|
|
chageAlpha(0.5f);
|
|
|
break;
|
|
|
case R.id.lin_tab:
|
...
|
...
|
@@ -371,6 +520,9 @@ public class AnswerActivity extends BaseMvpActivity<CommonPresenter, ExerciseMod |
|
|
case R.id.rl_card:
|
|
|
showAnswerCard(sheetCard, rightCount, wrongCount, currentIndex, maxTopic);
|
|
|
break;
|
|
|
case R.id.tv_show_card:
|
|
|
showAnswerCard(sheetCard, rightCount, wrongCount, currentIndex, maxTopic);
|
|
|
break;
|
|
|
}
|
|
|
}
|
|
|
|
...
|
...
|
@@ -410,8 +562,9 @@ public class AnswerActivity extends BaseMvpActivity<CommonPresenter, ExerciseMod |
|
|
intent.putExtra("panduanWrong", panduanWrong);
|
|
|
intent.putExtra("duoxuanWrong", duoxuanWrong);
|
|
|
intent.putExtra("totalScore", totalScore);
|
|
|
Log.e("zhangtao",totalScore+"分");
|
|
|
Log.e("zhangtao", totalScore + "分");
|
|
|
startActivity(intent);
|
|
|
AnswerActivity.this.finish();
|
|
|
}
|
|
|
});
|
|
|
|
...
|
...
|
@@ -423,7 +576,8 @@ public class AnswerActivity extends BaseMvpActivity<CommonPresenter, ExerciseMod |
|
|
});
|
|
|
}
|
|
|
|
|
|
private void showAnswerCard(List<Integer> sheetCard, int rightCount, int wrongCount, int currentIndex, int maxTopic) {
|
|
|
private void showAnswerCard(List<Integer> sheetCard, int rightCount, int wrongCount,
|
|
|
int currentIndex, int maxTopic) {
|
|
|
View contentView = LayoutInflater.from(this).inflate(R.layout.pop_answer_sheet, null);
|
|
|
View view = LayoutInflater.from(this).inflate(R.layout.activity_answer, null);
|
|
|
|
...
|
...
|
@@ -436,7 +590,7 @@ public class AnswerActivity extends BaseMvpActivity<CommonPresenter, ExerciseMod |
|
|
|
|
|
right.setText(String.valueOf(rightCount));
|
|
|
wrong.setText(String.valueOf(wrongCount));
|
|
|
index.setText(String.valueOf(currentIndex+1));
|
|
|
index.setText(String.valueOf(currentIndex + 1));
|
|
|
total.setText(String.valueOf(maxTopic));
|
|
|
|
|
|
// sheetGridAdapter = new AnswerSheetGridAdapter(sheetCard, this);
|
...
|
...
|
|