| @ -0,0 +1,232 @@ | |||||
| package com.qhclh.ytzh.work.Poultrydailyreport; | |||||
| import android.content.Intent; | |||||
| import android.support.v7.widget.Toolbar; | |||||
| import android.view.View; | |||||
| import android.widget.AbsListView; | |||||
| import android.widget.AdapterView; | |||||
| import android.widget.HorizontalScrollView; | |||||
| 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.home.RpcUrl; | |||||
| import com.qhclh.ytzh.tasks.ViewOnClickTask; | |||||
| import com.qhclh.ytzh.ui.LinkedHorizontalScrollView; | |||||
| import com.qhclh.ytzh.ui.NoScrollHorizontalScrollView; | |||||
| import com.qhclh.ytzh.work.tablepoultry.LvBuildhousenaneAdapter; | |||||
| import org.forks.jsonrpc.JsonRpcResult; | |||||
| import org.forks.jsonrpc.RpcFacade; | |||||
| import org.forks.jsonrpc.RpcObject; | |||||
| import java.math.BigDecimal; | |||||
| import java.util.ArrayList; | |||||
| import java.util.List; | |||||
| import butterknife.BindView; | |||||
| /** | |||||
| * Created by 青花瓷 on 2018/3/23. | |||||
| */ | |||||
| public class PoultryReportChandanActvity extends BaseActivity { | |||||
| @BindView(R.id.toolbar) | |||||
| Toolbar mToolbar; | |||||
| @BindView(R.id.sv_title_chandan) | |||||
| NoScrollHorizontalScrollView sv_title;//不可滑动的顶部左侧的ScrollView | |||||
| @BindView(R.id.sv_report_detail_chandan) | |||||
| LinkedHorizontalScrollView sv_report_detail;//底部左侧的ScrollView | |||||
| @BindView(R.id.lv_buildhousename_chandan) | |||||
| ListView lv_buildhousename;//底部左侧的ListView | |||||
| @BindView(R.id.lv_report_info_chandan) | |||||
| ListView lv_report_info;//底部右侧的ListView | |||||
| private boolean isLeftListEnabled = false; | |||||
| private boolean isRightListEnabled = false; | |||||
| private LvBuildhousenaneAdapter lvBuildhousenaneAdapter; | |||||
| private PoultryReportChandanInfoAdapter poultryReportInfoAdapter; | |||||
| private List<ReportString> buildhouseList; | |||||
| private List<PoultryReportBean> reportBeanList; | |||||
| private long BreedFactory_ID; | |||||
| @Override | |||||
| protected int setLayoutId() { | |||||
| return R.layout.act_poultry_chandan_report; | |||||
| } | |||||
| @Override | |||||
| protected void initView() { | |||||
| initToolbar(mToolbar, "报表指数", new View.OnClickListener() { | |||||
| @Override | |||||
| public void onClick(View view) { | |||||
| finish(); | |||||
| } | |||||
| }); | |||||
| combination(lv_buildhousename, lv_report_info, sv_title, sv_report_detail); | |||||
| } | |||||
| @Override | |||||
| protected void initData() { | |||||
| BreedFactory_ID = getIntent().getLongExtra("BreedFactory_ID",-1); | |||||
| buildhouseList = new ArrayList<>(); | |||||
| reportBeanList = new ArrayList<>(); | |||||
| } | |||||
| @Override | |||||
| protected void initOper() { | |||||
| lv_buildhousename.setOnItemClickListener(new AdapterView.OnItemClickListener() { | |||||
| @Override | |||||
| public void onItemClick(AdapterView<?> adapterView, View view, int i, long l) { | |||||
| Intent intent = new Intent(PoultryReportChandanActvity.this,PoultryDataChartActivity.class); | |||||
| intent.putExtra("House_ID",l); | |||||
| intent.putExtra("House_Name",reportBeanList.get(i).getHouse_Name()); | |||||
| intent.putExtra("TYPE",2); | |||||
| startActivity(intent); | |||||
| } | |||||
| }); | |||||
| lv_report_info.setOnItemClickListener(new AdapterView.OnItemClickListener() { | |||||
| @Override | |||||
| public void onItemClick(AdapterView<?> adapterView, View view, int i, long l) { | |||||
| Intent intent = new Intent(PoultryReportChandanActvity.this,PoultryDataChartActivity.class); | |||||
| intent.putExtra("House_ID",l); | |||||
| intent.putExtra("House_Name",reportBeanList.get(i).getHouse_Name()); | |||||
| intent.putExtra("TYPE",2); | |||||
| startActivity(intent); | |||||
| } | |||||
| }); | |||||
| } | |||||
| @Override | |||||
| protected void onResume() { | |||||
| super.onResume(); | |||||
| HouseTotalInfoCount2(); | |||||
| } | |||||
| private void HouseTotalInfoCount2() { | |||||
| ViewOnClickTask HouseTotalInfoCount2Task = new ViewOnClickTask(this,"加载中...") { | |||||
| List<RpcObject> rpcList; | |||||
| @Override | |||||
| protected void successUI() { | |||||
| buildhouseList.clear(); | |||||
| reportBeanList.clear(); | |||||
| for (int i = 0;i<rpcList.size();i++){ | |||||
| buildhouseList.add(new ReportString(rpcList.get(i).getLong("House_ID"),""+(i+1))); | |||||
| String House_Name="",Week="",FemaleSiTaoNumber="",MaleSiTaoNumber="" | |||||
| ,danzhong="",chandanlv="",chandanlvfudong="",FemalePerFeedNumber="",FemaleEatTime=""; | |||||
| if (rpcList.get(i).getString("House_Name")!=null){ | |||||
| House_Name = rpcList.get(i).getString("House_Name"); | |||||
| } | |||||
| if (rpcList.get(i).getInt("Week")!=null){ | |||||
| Week = rpcList.get(i).getInt("Week")+""; | |||||
| } | |||||
| if (rpcList.get(i).getInt("FemaleSiTaoNumber")!=null){ | |||||
| FemaleSiTaoNumber = rpcList.get(i).getInt("FemaleSiTaoNumber")+""; | |||||
| } | |||||
| if (rpcList.get(i).getInt("MaleSiTaoNumber")!=null){ | |||||
| MaleSiTaoNumber = rpcList.get(i).getInt("MaleSiTaoNumber")+""; | |||||
| } | |||||
| if (rpcList.get(i).getDecimal("FemaleSurvivalRate")!=null){ | |||||
| danzhong = rpcList.get(i).getDecimal("FemaleSurvivalRate").multiply(new BigDecimal("100")).stripTrailingZeros().toPlainString()+"%"; | |||||
| } | |||||
| if (rpcList.get(i).getDecimal("MaleSurvivalRate")!=null){ | |||||
| chandanlv = rpcList.get(i).getDecimal("MaleSurvivalRate").multiply(new BigDecimal("100")).stripTrailingZeros().toPlainString()+"%"; | |||||
| } | |||||
| if (rpcList.get(i).getDecimal("MaleSurvivalRate")!=null){ | |||||
| chandanlvfudong = rpcList.get(i).getDecimal("MaleSurvivalRate").multiply(new BigDecimal("100")).stripTrailingZeros().toPlainString()+"%"; | |||||
| } | |||||
| if (rpcList.get(i).getDecimal("FemalePerFeedNumber")!=null){ | |||||
| FemalePerFeedNumber = rpcList.get(i).getDecimal("FemalePerFeedNumber")+""; | |||||
| } | |||||
| if (rpcList.get(i).getDecimal("FemaleEatTime")!=null){ | |||||
| FemaleEatTime = rpcList.get(i).getDecimal("FemaleEatTime")+""; | |||||
| } | |||||
| reportBeanList.add(new PoultryReportBean(rpcList.get(i).getLong("House_ID"),House_Name,Week,FemaleSiTaoNumber | |||||
| ,MaleSiTaoNumber,FemalePerFeedNumber,FemaleEatTime,danzhong,chandanlv,chandanlvfudong)); | |||||
| lvBuildhousenaneAdapter = new LvBuildhousenaneAdapter(PoultryReportChandanActvity.this,buildhouseList); | |||||
| poultryReportInfoAdapter = new PoultryReportChandanInfoAdapter(PoultryReportChandanActvity.this,reportBeanList); | |||||
| lv_buildhousename.setAdapter(lvBuildhousenaneAdapter); | |||||
| lv_report_info.setAdapter(poultryReportInfoAdapter); | |||||
| } | |||||
| } | |||||
| @Override | |||||
| public Object call() throws Exception { | |||||
| JsonRpcResult result = RpcFacade.rpcCall(RpcUrl.HouseTotalInfoCount2,BreedFactory_ID); | |||||
| rpcList = result.getRpcObjectList(RpcUrl.HouseTotalInfoCount1_fanhui); | |||||
| return null; | |||||
| } | |||||
| }; | |||||
| HouseTotalInfoCount2Task.execute(); | |||||
| } | |||||
| private void combination(final ListView lvName, final ListView lvDetail, final HorizontalScrollView title, LinkedHorizontalScrollView content) { | |||||
| /** | |||||
| * 左右滑动同步 | |||||
| */ | |||||
| content.setMyScrollChangeListener(new LinkedHorizontalScrollView.LinkScrollChangeListener() { | |||||
| @Override | |||||
| public void onscroll(LinkedHorizontalScrollView view, int x, int y, int oldx, int oldy) { | |||||
| title.scrollTo(x, y); | |||||
| } | |||||
| }); | |||||
| /** | |||||
| * 上下滑动同步 | |||||
| */ | |||||
| // 禁止快速滑动 | |||||
| lvName.setOverScrollMode(ListView.OVER_SCROLL_NEVER); | |||||
| lvDetail.setOverScrollMode(ListView.OVER_SCROLL_NEVER); | |||||
| //左侧ListView滚动时,控制右侧ListView滚动 | |||||
| lvName.setOnScrollListener(new AbsListView.OnScrollListener() { | |||||
| @Override | |||||
| public void onScrollStateChanged(AbsListView view, int scrollState) { | |||||
| //这两个enable标志位是为了避免死循环 | |||||
| if (scrollState == SCROLL_STATE_TOUCH_SCROLL) { | |||||
| isRightListEnabled = false; | |||||
| isLeftListEnabled = true; | |||||
| } else if (scrollState == SCROLL_STATE_IDLE) { | |||||
| isRightListEnabled = true; | |||||
| } | |||||
| } | |||||
| @Override | |||||
| public void onScroll(AbsListView view, int firstVisibleItem, int visibleItemCount, | |||||
| int totalItemCount) { | |||||
| View child = view.getChildAt(0); | |||||
| if (child != null && isLeftListEnabled) { | |||||
| lvDetail.setSelectionFromTop(firstVisibleItem, child.getTop()); | |||||
| } | |||||
| } | |||||
| }); | |||||
| //右侧ListView滚动时,控制左侧ListView滚动 | |||||
| lvDetail.setOnScrollListener(new AbsListView.OnScrollListener() { | |||||
| @Override | |||||
| public void onScrollStateChanged(AbsListView view, int scrollState) { | |||||
| if (scrollState == SCROLL_STATE_TOUCH_SCROLL) { | |||||
| isLeftListEnabled = false; | |||||
| isRightListEnabled = true; | |||||
| } else if (scrollState == SCROLL_STATE_IDLE) { | |||||
| isLeftListEnabled = true; | |||||
| } | |||||
| } | |||||
| @Override | |||||
| public void onScroll(AbsListView view, int firstVisibleItem, int visibleItemCount, | |||||
| int totalItemCount) { | |||||
| View c = view.getChildAt(0); | |||||
| if (c != null && isRightListEnabled) { | |||||
| lvName.setSelectionFromTop(firstVisibleItem, c.getTop()); | |||||
| } | |||||
| } | |||||
| }); | |||||
| } | |||||
| } | |||||
| @ -0,0 +1,108 @@ | |||||
| package com.qhclh.ytzh.work.Poultrydailyreport; | |||||
| import android.content.Context; | |||||
| import android.view.LayoutInflater; | |||||
| import android.view.View; | |||||
| import android.view.ViewGroup; | |||||
| import android.widget.BaseAdapter; | |||||
| import android.widget.LinearLayout; | |||||
| import android.widget.TextView; | |||||
| import com.qhclh.ytzh.R; | |||||
| import java.util.List; | |||||
| /** | |||||
| * Created by 青花瓷 on 2017/6/29. | |||||
| */ | |||||
| ///< 具体信息 | |||||
| public class PoultryReportChandanInfoAdapter extends BaseAdapter { | |||||
| private Context context; | |||||
| private List<PoultryReportBean> list; | |||||
| public PoultryReportChandanInfoAdapter(Context context, List<PoultryReportBean> list) { | |||||
| this.context = context; | |||||
| this.list = list; | |||||
| } | |||||
| @Override | |||||
| public int getCount() { | |||||
| return list.size(); | |||||
| } | |||||
| @Override | |||||
| public Object getItem(int position) { | |||||
| return list.get(position); | |||||
| } | |||||
| @Override | |||||
| public long getItemId(int position) { | |||||
| return list.get(position).getHouse_ID(); | |||||
| } | |||||
| @Override | |||||
| public View getView(int position, View convertView, ViewGroup parent) { | |||||
| ViewHolder holder; | |||||
| PoultryReportBean message = list.get(position); | |||||
| if (convertView == null) { | |||||
| holder = new ViewHolder(); | |||||
| convertView = LayoutInflater.from(context).inflate(R.layout.item_lv_poultry_chandan_info, null); | |||||
| holder.item_zhouling = (TextView) convertView.findViewById(R.id.item_zhouling); | |||||
| holder.item_musitao = (TextView) convertView.findViewById(R.id.item_musitao); | |||||
| holder.item_gongsitao = (TextView) convertView.findViewById(R.id.item_gongsitao); | |||||
| holder.item_danzhong = (TextView) convertView.findViewById(R.id.item_danzhong); | |||||
| holder.item_chandanlv = (TextView) convertView.findViewById(R.id.item_chandanlv); | |||||
| holder.item_chandanfudonglv = (TextView) convertView.findViewById(R.id.item_chandanfudonglv); | |||||
| holder.item_muzhiliaoliang = (TextView) convertView.findViewById(R.id.item_muzhiliaoliang); | |||||
| holder.item_mucaishi = (TextView) convertView.findViewById(R.id.item_mucaishi); | |||||
| holder.ll_buildhouseinfo = convertView.findViewById(R.id.ll_buildhouseinfo); | |||||
| holder.item_dongshe = convertView.findViewById(R.id.item_dongshe); | |||||
| convertView.setTag(holder); | |||||
| } else { | |||||
| holder = (ViewHolder) convertView.getTag(); | |||||
| } | |||||
| ///< 自己看拼音吧 我也不想看了 | |||||
| holder.item_zhouling.setText(message.getWeek()); | |||||
| holder.item_musitao.setText(message.getFemaleSiTaoNumber()); | |||||
| holder.item_gongsitao.setText(message.getMaleSiTaoNumber()); | |||||
| holder.item_danzhong.setText(message.getDanzhong()); | |||||
| holder.item_chandanlv.setText(message.getChandanlv()); | |||||
| holder.item_chandanfudonglv.setText(message.getChandanfudonglv()); | |||||
| holder.item_muzhiliaoliang.setText(message.getFemalePerFeedNumber()); | |||||
| holder.item_mucaishi.setText(message.getFemaleEatTime()); | |||||
| holder.item_dongshe.setText(message.getHouse_Name()); | |||||
| if (position%2==0){ | |||||
| holder.ll_buildhouseinfo.setBackgroundColor(context.getResources().getColor(R.color.greyf4f4f4)); | |||||
| }else { | |||||
| holder.ll_buildhouseinfo.setBackgroundColor(context.getResources().getColor(R.color.white)); | |||||
| } | |||||
| return convertView; | |||||
| } | |||||
| private class ViewHolder { | |||||
| TextView item_zhouling; | |||||
| TextView item_musitao; | |||||
| TextView item_gongsitao; | |||||
| TextView item_danzhong; | |||||
| TextView item_chandanlv; | |||||
| TextView item_chandanfudonglv; | |||||
| TextView item_muzhiliaoliang; | |||||
| TextView item_mucaishi; | |||||
| TextView item_dongshe; | |||||
| LinearLayout ll_buildhouseinfo; | |||||
| } | |||||
| } | |||||
| @ -0,0 +1,160 @@ | |||||
| <?xml version="1.0" encoding="utf-8"?> | |||||
| <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" | |||||
| android:layout_width="match_parent" | |||||
| android:layout_height="match_parent" | |||||
| android:orientation="vertical"> | |||||
| <include layout="@layout/include_tool_bar" /> | |||||
| <RelativeLayout | |||||
| android:layout_width="match_parent" | |||||
| android:layout_height="match_parent"> | |||||
| <View | |||||
| android:layout_width="match_parent" | |||||
| android:layout_height="1px" | |||||
| android:background="@color/greydbdbdb" /> | |||||
| <TextView | |||||
| android:id="@+id/tv_name" | |||||
| android:layout_width="40dp" | |||||
| android:layout_height="wrap_content" | |||||
| android:layout_gravity="center_horizontal" | |||||
| android:background="@color/white" | |||||
| android:gravity="center" | |||||
| android:paddingBottom="@dimen/dp_10" | |||||
| android:paddingTop="@dimen/dp_10" | |||||
| android:paddingLeft="@dimen/dp_5" | |||||
| android:text="序号" | |||||
| android:textColor="@color/grey666666" | |||||
| android:textSize="16sp" /> | |||||
| <com.qhclh.ytzh.ui.NoScrollHorizontalScrollView | |||||
| android:id="@+id/sv_title_chandan" | |||||
| android:layout_width="wrap_content" | |||||
| android:layout_height="wrap_content" | |||||
| android:layout_toRightOf="@id/tv_name" | |||||
| android:background="@color/white" | |||||
| android:paddingBottom="@dimen/dp_10" | |||||
| android:paddingTop="@dimen/dp_10" | |||||
| android:scrollbars="none"> | |||||
| <LinearLayout | |||||
| android:layout_width="wrap_content" | |||||
| android:layout_height="wrap_content" | |||||
| android:orientation="horizontal"> | |||||
| <TextView | |||||
| android:layout_width="120dp" | |||||
| android:layout_height="wrap_content" | |||||
| android:layout_gravity="center_horizontal" | |||||
| android:gravity="center" | |||||
| android:text="栋舍" | |||||
| android:textColor="@color/grey666666" | |||||
| android:textSize="16sp" /> | |||||
| <TextView | |||||
| android:layout_width="80dp" | |||||
| android:layout_height="wrap_content" | |||||
| android:layout_gravity="center_horizontal" | |||||
| android:gravity="center" | |||||
| android:text="周龄" | |||||
| android:textColor="@color/grey666666" | |||||
| android:textSize="16sp" /> | |||||
| <TextView | |||||
| android:layout_width="80dp" | |||||
| android:layout_height="wrap_content" | |||||
| android:layout_gravity="center_horizontal" | |||||
| android:gravity="center" | |||||
| android:text="母死淘" | |||||
| android:textColor="@color/grey666666" | |||||
| android:textSize="16sp" /> | |||||
| <TextView | |||||
| android:layout_width="80dp" | |||||
| android:layout_height="wrap_content" | |||||
| android:layout_gravity="center_horizontal" | |||||
| android:gravity="center" | |||||
| android:text="公死淘" | |||||
| android:textColor="@color/grey666666" | |||||
| android:textSize="16sp" /> | |||||
| <TextView | |||||
| android:layout_width="80dp" | |||||
| android:layout_height="wrap_content" | |||||
| android:layout_gravity="center_horizontal" | |||||
| android:gravity="center" | |||||
| android:text="蛋重" | |||||
| android:textColor="@color/grey666666" | |||||
| android:textSize="16sp" /> | |||||
| <TextView | |||||
| android:layout_width="80dp" | |||||
| android:layout_height="wrap_content" | |||||
| android:layout_gravity="center_horizontal" | |||||
| android:gravity="center" | |||||
| android:text="产蛋率" | |||||
| android:textColor="@color/grey666666" | |||||
| android:textSize="16sp" /> | |||||
| <TextView | |||||
| android:layout_width="80dp" | |||||
| android:layout_height="wrap_content" | |||||
| android:layout_gravity="center_horizontal" | |||||
| android:gravity="center" | |||||
| android:text="产蛋率浮动" | |||||
| android:textColor="@color/grey666666" | |||||
| android:textSize="16sp" /> | |||||
| <TextView | |||||
| android:layout_width="80dp" | |||||
| android:layout_height="wrap_content" | |||||
| android:layout_gravity="center_horizontal" | |||||
| android:gravity="center" | |||||
| android:text="母只料量" | |||||
| android:textColor="@color/grey666666" | |||||
| android:textSize="16sp" /> | |||||
| <TextView | |||||
| android:layout_width="80dp" | |||||
| android:layout_height="wrap_content" | |||||
| android:layout_gravity="center_horizontal" | |||||
| android:gravity="center" | |||||
| android:text="母采食时间" | |||||
| android:textColor="@color/grey666666" | |||||
| android:textSize="16sp" /> | |||||
| </LinearLayout> | |||||
| </com.qhclh.ytzh.ui.NoScrollHorizontalScrollView> | |||||
| <View | |||||
| android:layout_width="match_parent" | |||||
| android:layout_height="1px" | |||||
| android:layout_below="@id/tv_name" | |||||
| android:background="@color/greydbdbdb" /> | |||||
| <ListView | |||||
| android:id="@+id/lv_buildhousename_chandan" | |||||
| android:layout_width="40dp" | |||||
| android:layout_height="match_parent" | |||||
| android:layout_below="@id/tv_name" | |||||
| android:paddingLeft="@dimen/dp_5" | |||||
| android:scrollbars="none"></ListView> | |||||
| <com.qhclh.ytzh.ui.LinkedHorizontalScrollView | |||||
| android:id="@+id/sv_report_detail_chandan" | |||||
| android:layout_width="wrap_content" | |||||
| android:layout_height="match_parent" | |||||
| android:layout_below="@id/tv_name" | |||||
| android:layout_toRightOf="@id/lv_buildhousename_chandan" | |||||
| android:scrollbars="none"> | |||||
| <ListView | |||||
| android:id="@+id/lv_report_info_chandan" | |||||
| android:layout_width="wrap_content" | |||||
| android:layout_height="match_parent"></ListView> | |||||
| </com.qhclh.ytzh.ui.LinkedHorizontalScrollView> | |||||
| </RelativeLayout> | |||||
| </LinearLayout> | |||||
| @ -0,0 +1,98 @@ | |||||
| <?xml version="1.0" encoding="utf-8"?> | |||||
| <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" | |||||
| android:id="@+id/ll_buildhouseinfo" | |||||
| android:layout_width="match_parent" | |||||
| android:layout_height="match_parent" | |||||
| android:orientation="horizontal" | |||||
| android:paddingBottom="@dimen/dp_10" | |||||
| android:paddingTop="@dimen/dp_10"> | |||||
| <TextView | |||||
| android:id="@+id/item_dongshe" | |||||
| android:layout_width="120dp" | |||||
| android:layout_height="wrap_content" | |||||
| android:layout_gravity="center_horizontal" | |||||
| android:gravity="center" | |||||
| android:textColor="@color/black303030" | |||||
| android:textSize="@dimen/text_size_14" /> | |||||
| <TextView | |||||
| android:id="@+id/item_zhouling" | |||||
| android:layout_width="80dp" | |||||
| android:layout_height="wrap_content" | |||||
| android:layout_gravity="center_horizontal" | |||||
| android:gravity="center" | |||||
| android:text="" | |||||
| android:textColor="@color/black303030" | |||||
| android:textSize="@dimen/text_size_14" /> | |||||
| <TextView | |||||
| android:id="@+id/item_musitao" | |||||
| android:layout_width="80dp" | |||||
| android:layout_height="wrap_content" | |||||
| android:layout_gravity="center_horizontal" | |||||
| android:gravity="center" | |||||
| android:text="母死淘" | |||||
| android:textColor="@color/black303030" | |||||
| android:textSize="@dimen/text_size_14" /> | |||||
| <TextView | |||||
| android:id="@+id/item_gongsitao" | |||||
| android:layout_width="80dp" | |||||
| android:layout_height="wrap_content" | |||||
| android:layout_gravity="center_horizontal" | |||||
| android:gravity="center" | |||||
| android:text="公死淘" | |||||
| android:textColor="@color/black303030" | |||||
| android:textSize="@dimen/text_size_14" /> | |||||
| <TextView | |||||
| android:id="@+id/item_danzhong" | |||||
| android:layout_width="80dp" | |||||
| android:layout_height="wrap_content" | |||||
| android:layout_gravity="center_horizontal" | |||||
| android:gravity="center" | |||||
| android:text="蛋重" | |||||
| android:textColor="@color/black303030" | |||||
| android:textSize="@dimen/text_size_14" /> | |||||
| <TextView | |||||
| android:id="@+id/item_chandanlv" | |||||
| android:layout_width="80dp" | |||||
| android:layout_height="wrap_content" | |||||
| android:layout_gravity="center_horizontal" | |||||
| android:gravity="center" | |||||
| android:text="产蛋率" | |||||
| android:textColor="@color/black303030" | |||||
| android:textSize="@dimen/text_size_14" /> | |||||
| <TextView | |||||
| android:id="@+id/item_chandanfudonglv" | |||||
| android:layout_width="80dp" | |||||
| android:layout_height="wrap_content" | |||||
| android:layout_gravity="center_horizontal" | |||||
| android:gravity="center" | |||||
| android:text="产蛋率浮动" | |||||
| android:textColor="@color/black303030" | |||||
| android:textSize="@dimen/text_size_14" /> | |||||
| <TextView | |||||
| android:id="@+id/item_muzhiliaoliang" | |||||
| android:layout_width="80dp" | |||||
| android:layout_height="wrap_content" | |||||
| android:layout_gravity="center_horizontal" | |||||
| android:gravity="center" | |||||
| android:text="母只料量" | |||||
| android:textColor="@color/black303030" | |||||
| android:textSize="@dimen/text_size_14" /> | |||||
| <TextView | |||||
| android:id="@+id/item_mucaishi" | |||||
| android:layout_width="80dp" | |||||
| android:layout_height="wrap_content" | |||||
| android:layout_gravity="center_horizontal" | |||||
| android:gravity="center" | |||||
| android:text="母采食时间" | |||||
| android:textColor="@color/black303030" | |||||
| android:textSize="@dimen/text_size_14" /> | |||||
| </LinearLayout> | |||||