作者 qin

bug修改

... ... @@ -369,6 +369,12 @@ public class a extends BaseMvpActivity<CommonPresenter, ExerciseModel> implement
listAnswer.setAdapter(optionsAdapter);
optionsAdapter.notifyDataSetChanged();
if (listIndex == questionLst.size() - 1) {
Toast.makeText(this, "当前已是最后一题", Toast.LENGTH_SHORT).show();
tvShowCard.setVisibility(View.GONE);
commit.setVisibility(View.VISIBLE);
}
if (!historyAnswer.get(listIndex).equals("0")) {
optionsAdapter.setSelect(historyAnswer.get(listIndex));
... ... @@ -460,7 +466,9 @@ public class a extends BaseMvpActivity<CommonPresenter, ExerciseModel> implement
}
listIndex++;
doRefresh(true);
doRefresh(true);
// doRefresh(true);
} else if (listIndex == questionLst.size() - 1) {
Toast.makeText(this, "当前已是最后一题", Toast.LENGTH_SHORT).show();
... ...
... ... @@ -459,6 +459,13 @@ public class b extends BaseMvpActivity<CommonPresenter, ExerciseModel> implement
optionsAdapter.notifyDataSetChanged();
if (listIndex == questionLst.size() - 1) {
Toast.makeText(this, "当前已是最后一题", Toast.LENGTH_SHORT).show();
tvShowCard.setVisibility(View.GONE);
commit.setVisibility(View.VISIBLE);
}
if (!historyAnswer.get(listIndex).equals("0")) {
optionsAdapter.setSelect(historyAnswer.get(listIndex));
optionsAdapter.notifyDataSetInvalidated();
... ... @@ -631,6 +638,7 @@ public class b extends BaseMvpActivity<CommonPresenter, ExerciseModel> implement
listIndex++;
doRefresh(true);
} else if (listIndex == questionLst.size() - 1) {
... ...
... ... @@ -404,6 +404,10 @@ public class c extends BaseMvpActivity<CommonPresenter, ExerciseModel> implement
optionsAdapter.notifyDataSetChanged();
if (listIndex == questionLst.size() - 1) {
Toast.makeText(this, "当前已是最后一题", Toast.LENGTH_SHORT).show();
}
if (!historyAnswer.get(listIndex).equals("0")) {
optionsAdapter.setSelect(historyAnswer.get(listIndex));
optionsAdapter.notifyDataSetInvalidated();
... ... @@ -548,8 +552,8 @@ public class c extends BaseMvpActivity<CommonPresenter, ExerciseModel> implement
}
listIndex++;
doRefresh(true);
doRefresh(true);
} else if (listIndex == questionLst.size() - 1) {
Toast.makeText(this, "当前已是最后一题", Toast.LENGTH_SHORT).show();
}
... ...
... ... @@ -64,6 +64,8 @@ public class HomeCompanyAdapter extends BaseAdapter {
List<CompanyBean.CompanyListBean.IndustryListBean> industryList = list.get(position).getIndustryList();
ListLabelAdapter adapter = new ListLabelAdapter(industryList, context);
rec.setAdapter(adapter);
rec.setFocusable(false);
rec.setFocusableInTouchMode(false);
count.setText(String.valueOf(list.get(position).getJobCount()));
... ...