diff --git a/app/src/main/java/com/qhclh/ytzh/work/Hatchery/HatcheryReportActivity.java b/app/src/main/java/com/qhclh/ytzh/work/Hatchery/HatcheryReportActivity.java index 05acff7..25dd96f 100644 --- a/app/src/main/java/com/qhclh/ytzh/work/Hatchery/HatcheryReportActivity.java +++ b/app/src/main/java/com/qhclh/ytzh/work/Hatchery/HatcheryReportActivity.java @@ -8,10 +8,8 @@ import android.widget.ListView; import com.qhclh.ytzh.R; import com.qhclh.ytzh.base.BaseActivity; -import com.qhclh.ytzh.bean.ReportString; import com.qhclh.ytzh.ui.LinkedHorizontalScrollView; import com.qhclh.ytzh.ui.NoScrollHorizontalScrollView; -import com.qhclh.ytzh.work.tablepoultry.LvBuildhousenaneAdapter; import java.util.ArrayList; import java.util.List; @@ -37,10 +35,8 @@ public class HatcheryReportActivity extends BaseActivity { private boolean isLeftListEnabled = false; private boolean isRightListEnabled = false; - private LvBuildhousenaneAdapter lvBuildhousenaneAdapter; private HatcheryReportInfoAdapter adapter; - private List buildhouseList; private List reportBeanList; private long hatchingStoreID; @@ -64,16 +60,12 @@ public class HatcheryReportActivity extends BaseActivity { @Override protected void initData() { hatchingStoreID= getIntent().getLongExtra("hatchingStoreID",0); - buildhouseList = new ArrayList<>(); reportBeanList = new ArrayList<>(); for (int i =0;i<20;i++){ - buildhouseList.add(new ReportString(i,"")); reportBeanList.add(new HatcheryReportBean(i,i+1+"",i+2+"",i+3+"",i+4+"",i+5+"",i+6+"",i+7+"",i+8+"",i+9+"")); } - lvBuildhousenaneAdapter = new LvBuildhousenaneAdapter(HatcheryReportActivity.this,buildhouseList); adapter = new HatcheryReportInfoAdapter(HatcheryReportActivity.this,reportBeanList); - lv_buildhousename.setAdapter(lvBuildhousenaneAdapter); lv_report_info.setAdapter(adapter); } diff --git a/app/src/main/res/layout/act_hatchery_report.xml b/app/src/main/res/layout/act_hatchery_report.xml index bd6618d..23ba919 100644 --- a/app/src/main/res/layout/act_hatchery_report.xml +++ b/app/src/main/res/layout/act_hatchery_report.xml @@ -17,7 +17,7 @@