Browse Source

no message

master
lh 7 years ago
parent
commit
a2762251ee
2 changed files with 2 additions and 10 deletions
  1. +0
    -8
      app/src/main/java/com/qhclh/ytzh/work/Hatchery/HatcheryReportActivity.java
  2. +2
    -2
      app/src/main/res/layout/act_hatchery_report.xml

+ 0
- 8
app/src/main/java/com/qhclh/ytzh/work/Hatchery/HatcheryReportActivity.java View File

@ -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<ReportString> buildhouseList;
private List<HatcheryReportBean> 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);
}


+ 2
- 2
app/src/main/res/layout/act_hatchery_report.xml View File

@ -17,7 +17,7 @@
<TextView
android:id="@+id/tv_name"
android:layout_width="1dp"
android:layout_width="@dimen/dp_0.1"
android:layout_height="wrap_content"
android:layout_gravity="center_horizontal"
android:background="@color/white"
@ -135,7 +135,7 @@
<ListView
android:id="@+id/lv_left"
android:layout_width="1dp"
android:layout_width="@dimen/dp_0.1"
android:layout_height="match_parent"
android:layout_below="@id/tv_name"
android:scrollbars="none"></ListView>


Loading…
Cancel
Save