Commit e9d1aeb5 by chengxiuhong

test main

parent c3361d9f
......@@ -130,6 +130,10 @@ public class SinglePeopleTestActivity extends BaseActivity {
List<GradeBean> gradeBeans = mSchoolBean.getGradeList();
if (!CheckUtil.isEmpty(gradeBeans)) {
List<PopuBean> popuBeans = new ArrayList<>();
PopuBean all = new PopuBean();
all.setName("全部学校");
all.setChick(true);
popuBeans.add(all);
for (GradeBean gradeBean : gradeBeans) {
PopuBean popuBean = new PopuBean();
popuBean.setName(gradeBean.getName());
......@@ -170,6 +174,7 @@ public class SinglePeopleTestActivity extends BaseActivity {
mPopuAdapter.notifyDataSetChanged();
mSearchParamBean.setGrade(popuBean.getName());
mSearchParamBean.setStudentId("");
mSeleteAreaTv.setText(popuBean.getName());
search();
}
});
......@@ -190,6 +195,7 @@ public class SinglePeopleTestActivity extends BaseActivity {
protected void onSuccess(OldResponseImpl<List<StudentBean>> listOldResponse) {
if (listOldResponse != null && listOldResponse.getData() != null) {
mProgress.setVisibility(View.GONE);
mPeopleAdapter.clear();
mPeopleAdapter.appendToListAndNotify(listOldResponse.getData());
} else {
ToastUtil.showMessage("暂无数据");
......
......@@ -62,4 +62,7 @@ public class PopuAdapter extends BaseAdapter {
textView.setText(bean.getName());
return view;
}
public List<PopuBean> getBeanList(){
return mBeanList;
}
}
......@@ -2,6 +2,8 @@ package com.oo.eye.bean;
import com.app.baselibrary.bean.BaseBean;
import java.util.List;
/**
* Date : 2018/9/4.
* Author: cxh
......@@ -11,6 +13,26 @@ public class PopuBean extends BaseBean {
private String name;
private boolean isChick;
public String getClassId() {
return classId;
}
public void setClassId(String classId) {
this.classId = classId;
}
private String classId;
public List<ClassBean> getClassBeans() {
return mClassBeans;
}
public void setClassBeans(List<ClassBean> classBeans) {
mClassBeans = classBeans;
}
private List<ClassBean> mClassBeans;
public String getName() {
return name;
}
......
......@@ -59,7 +59,7 @@
android:id="@+id/selete_tv"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="未测试"
android:text="全部"
android:textColor="@color/white"
android:textSize="@dimen/sp_18" />
<ImageView
......@@ -278,5 +278,16 @@
android:layout_height="match_parent"
android:layout_above="@+id/begin_test"
android:layout_below="@+id/ddd"></android.support.v7.widget.RecyclerView>
<RelativeLayout
android:id="@+id/progress"
android:layout_below="@+id/ddd"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="#60000000">
<ProgressBar
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerInParent="true" />
</RelativeLayout>
</RelativeLayout>
\ No newline at end of file
......@@ -74,6 +74,7 @@
android:id="@+id/key_test"
android:layout_width="140dip"
android:layout_height="wrap_content"
android:textColor="@color/white"
android:layout_marginLeft="@dimen/dp_6"
android:background="@null"
android:hint="输入学员编号后4位"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment