diff --git a/app/src/main/java/com/qhclh/ytzh/work/Poultrydailyreport/ChandanFragment.java b/app/src/main/java/com/qhclh/ytzh/work/Poultrydailyreport/ChandanFragment.java index 5dfb214..598eb20 100644 --- a/app/src/main/java/com/qhclh/ytzh/work/Poultrydailyreport/ChandanFragment.java +++ b/app/src/main/java/com/qhclh/ytzh/work/Poultrydailyreport/ChandanFragment.java @@ -1,13 +1,22 @@ package com.qhclh.ytzh.work.Poultrydailyreport; +import android.view.LayoutInflater; +import android.view.View; +import android.widget.LinearLayout; +import android.widget.TextView; + import com.qhclh.ytzh.R; import com.qhclh.ytzh.base.BaseFragment; +import butterknife.BindView; + /** * Created by 青花瓷 on 2018/3/22. */ public class ChandanFragment extends BaseFragment { + @BindView(R.id.firstContent_chandan) + LinearLayout firstContent; @Override protected int setLayout() { return R.layout.frag_chandan; @@ -20,7 +29,44 @@ public class ChandanFragment extends BaseFragment { @Override protected void initData() { + firstContent.removeAllViews(); + for (int i=1;i<13;i++){ + View view = LayoutInflater.from(getActivity()).inflate(R.layout.view_first,null); + TextView name = view.findViewById(R.id.name); + + LinearLayout secondContent = view.findViewById(R.id.secondContent); + LinearLayout main_ll = view.findViewById(R.id.main_ll); + + name.setText("场:"+i); + main_ll.setTag(i); + secondContent.removeAllViews(); + for (int j=0;j - - + + - \ No newline at end of file + + + + + \ No newline at end of file