农产品基础信息详情;使用监管列表;使用监管详情
@ -213,6 +213,21 @@
|
||||
android:configChanges="orientation|screenSize|keyboardHidden"
|
||||
android:exported="false"
|
||||
android:screenOrientation="portrait" />
|
||||
<activity
|
||||
android:name=".ui.input.InputGoodsDetailActivity"
|
||||
android:configChanges="orientation|screenSize|keyboardHidden"
|
||||
android:exported="false"
|
||||
android:screenOrientation="portrait" />
|
||||
<activity
|
||||
android:name=".ui.input.UtilizationControlActivity"
|
||||
android:configChanges="orientation|screenSize|keyboardHidden"
|
||||
android:exported="false"
|
||||
android:screenOrientation="portrait" />
|
||||
<activity
|
||||
android:name=".ui.input.UtilizationControlDetailActivity"
|
||||
android:configChanges="orientation|screenSize|keyboardHidden"
|
||||
android:exported="false"
|
||||
android:screenOrientation="portrait" />
|
||||
|
||||
<activity
|
||||
android:name=".ui.photoview.PhotoViewActivty"
|
||||
|
@ -0,0 +1,25 @@
|
||||
package com.tairui.gov_affairs_cloud.ui.input;
|
||||
|
||||
import com.tairui.gov_affairs_cloud.base.BaseActivity;
|
||||
import com.tairui.gov_affairs_cloud.databinding.ActivityInputGoodsDetailBinding;
|
||||
import com.tairui.gov_affairs_cloud.util.SingleClickListener;
|
||||
|
||||
import android.view.View;
|
||||
|
||||
public class InputGoodsDetailActivity extends BaseActivity<ActivityInputGoodsDetailBinding> {
|
||||
|
||||
@Override
|
||||
protected Class<ActivityInputGoodsDetailBinding> getBindingClass() {
|
||||
return ActivityInputGoodsDetailBinding.class;
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void onBindListener() {
|
||||
binding.btnBack.setOnClickListener(new SingleClickListener() {
|
||||
@Override
|
||||
protected void onSingleClick(View v) {
|
||||
finish();
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
@ -0,0 +1,261 @@
|
||||
package com.tairui.gov_affairs_cloud.ui.input;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
import com.bigkoo.pickerview.builder.OptionsPickerBuilder;
|
||||
import com.bigkoo.pickerview.view.OptionsPickerView;
|
||||
import com.chad.library.adapter.base.BaseQuickAdapter;
|
||||
import com.chad.library.adapter.base.BaseViewHolder;
|
||||
import com.kongzue.dialogx.dialogs.MessageDialog;
|
||||
import com.orhanobut.hawk.Hawk;
|
||||
import com.rxjava.rxlife.RxLife;
|
||||
import com.tairui.gov_affairs_cloud.R;
|
||||
import com.tairui.gov_affairs_cloud.base.BaseActivity;
|
||||
import com.tairui.gov_affairs_cloud.databinding.ActivityUtilizationControlListBinding;
|
||||
import com.tairui.gov_affairs_cloud.entity.Api;
|
||||
import com.tairui.gov_affairs_cloud.entity.Constant;
|
||||
import com.tairui.gov_affairs_cloud.http.OnError;
|
||||
import com.tairui.gov_affairs_cloud.ui.input.entity.UtilizationControlEntity;
|
||||
import com.tairui.gov_affairs_cloud.ui.land.entity.LandAreaRegionEntity;
|
||||
import com.tairui.gov_affairs_cloud.ui.land.entity.LandGridEntity;
|
||||
import com.tairui.gov_affairs_cloud.util.ArrayUtil;
|
||||
import com.tairui.gov_affairs_cloud.util.IntentUtil;
|
||||
import com.tairui.gov_affairs_cloud.util.SingleClickListener;
|
||||
|
||||
import android.graphics.Color;
|
||||
import android.os.Bundle;
|
||||
import android.view.View;
|
||||
import androidx.annotation.NonNull;
|
||||
import androidx.recyclerview.widget.LinearLayoutManager;
|
||||
import rxhttp.RxHttp;
|
||||
|
||||
public class UtilizationControlActivity extends BaseActivity<ActivityUtilizationControlListBinding> {
|
||||
|
||||
private LandAreaRegionEntity selectRegion;
|
||||
private LandGridEntity.RecordsEntity selectGrid;
|
||||
|
||||
private List<LandAreaRegionEntity> landAreaRegionData;
|
||||
private LandGridEntity landGridData;
|
||||
|
||||
private OptionsPickerView landRegionPickerView;
|
||||
private OptionsPickerView landGridPickerView;
|
||||
|
||||
private List<UtilizationControlEntity> mData;
|
||||
private UtilizationControlAdapter adapter;
|
||||
|
||||
@Override
|
||||
protected Class<ActivityUtilizationControlListBinding> getBindingClass() {
|
||||
return ActivityUtilizationControlListBinding.class;
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void onQueryArguments() {
|
||||
if (Hawk.contains(Constant.SELECT_REGION)) {
|
||||
selectRegion = Hawk.get(Constant.SELECT_REGION);
|
||||
}
|
||||
if (Hawk.contains(Constant.SELECT_GRID)) {
|
||||
selectGrid = Hawk.get(Constant.SELECT_GRID);
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void onBindListener() {
|
||||
binding.btnBack.setOnClickListener(new SingleClickListener() {
|
||||
@Override
|
||||
protected void onSingleClick(View v) {
|
||||
finish();
|
||||
}
|
||||
});
|
||||
binding.layoutRegion.setOnClickListener(new SingleClickListener() {
|
||||
@Override
|
||||
protected void onSingleClick(View v) {
|
||||
showRegionDialog();
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void onFindView(Bundle savedInstanceState) {
|
||||
setText(binding.tvRegion, selectRegion.getAreaName() + "-" + selectGrid.getGridName());
|
||||
binding.refreshRecycler.setLayoutManager(new LinearLayoutManager(mContext));
|
||||
adapter = new UtilizationControlAdapter();
|
||||
binding.refreshRecycler.setAdapter(adapter);
|
||||
binding.refreshRecycler.setEnableRefresh(false);
|
||||
binding.refreshRecycler.setNoMoreData(true);
|
||||
adapter.setOnItemClickListener((baseQuickAdapter, view, i) -> {
|
||||
IntentUtil.startActivity(mContext, UtilizationControlDetailActivity.class);
|
||||
});
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void onApplyData() {
|
||||
getRegionData();
|
||||
requestData();
|
||||
}
|
||||
|
||||
private void showRegionNoticeMsg() {
|
||||
MessageDialog.show("选择区域", "请先选择网格区域信息", "确定", "取消")
|
||||
.setOkButton((baseDialog, v1) -> {
|
||||
showRegionDialog();
|
||||
return false;
|
||||
}).setCancelButton((dialog, v) -> {
|
||||
finish();
|
||||
return false;
|
||||
});
|
||||
}
|
||||
|
||||
private void getRegionData() {
|
||||
RxHttp.get(Api.LAND_AREA_REGION)
|
||||
.add("areaCode", "530926")
|
||||
.asResponseList(LandAreaRegionEntity.class)
|
||||
.as(RxLife.asOnMain(this))
|
||||
.subscribe(data -> {
|
||||
landAreaRegionData = data;
|
||||
if (selectRegion == null || selectGrid == null) {
|
||||
showRegionNoticeMsg();
|
||||
}
|
||||
}, (OnError) error -> showToast(error.getErrorMsg()));
|
||||
}
|
||||
|
||||
private void getGridData() {
|
||||
RxHttp.get(Api.LAND_GRID_LIST)
|
||||
.add("regionCode", selectRegion.getAreaCode())
|
||||
.asResponse(LandGridEntity.class)
|
||||
.as(RxLife.asOnMain(this))
|
||||
.subscribe(data -> {
|
||||
hideLoading();
|
||||
if (ArrayUtil.isEmpty(data.getRecords())) {
|
||||
showToast("当前区域下没有网格,请重新选择");
|
||||
binding.layoutRegion.postDelayed(() -> showRegionDialog(), 500);
|
||||
} else {
|
||||
landGridData = data;
|
||||
showLandGridDialog();
|
||||
}
|
||||
}, (OnError) error -> showToast(error.getErrorMsg()));
|
||||
}
|
||||
|
||||
private void showRegionDialog() {
|
||||
if (landRegionPickerView == null) {
|
||||
List<List<LandAreaRegionEntity>> subLandData = new ArrayList<>();
|
||||
for (LandAreaRegionEntity itemData : landAreaRegionData.get(0).getAreaChildVOS()) {
|
||||
subLandData.add(itemData.getAreaChildVOS());
|
||||
}
|
||||
|
||||
landRegionPickerView = new OptionsPickerBuilder(this, (options1, options2, options3, v) -> {
|
||||
selectRegion = landAreaRegionData.get(0).getAreaChildVOS().get(options1).getAreaChildVOS().get(options2);
|
||||
Hawk.put(Constant.SELECT_REGION, selectRegion);
|
||||
selectGrid = null;
|
||||
Hawk.delete(Constant.SELECT_GRID);
|
||||
getGridData();
|
||||
}).setTitleText("土地区域选择").setContentTextSize(20)
|
||||
.setSelectOptions(0, 0)
|
||||
.setTitleBgColor(Color.WHITE)
|
||||
.isRestoreItem(true)//切换时是否还原,设置默认选中第一项。
|
||||
.isCenterLabel(false) //是否只显示中间选中项的label文字,false则每项item全部都带有label。
|
||||
.setOutSideColor(0x00000000) //设置外部遮罩颜色
|
||||
.addOnCancelClickListener(view -> {
|
||||
if (selectRegion == null) {
|
||||
finish();
|
||||
}
|
||||
})
|
||||
.build();
|
||||
|
||||
landRegionPickerView.setPicker(landAreaRegionData.get(0).getAreaChildVOS(), subLandData);//二级选择器
|
||||
}
|
||||
landRegionPickerView.show();
|
||||
}
|
||||
|
||||
private void showGridNoticeMsg() {
|
||||
MessageDialog.show("选择网格", "不继续选择网格信息了吗?", "确定", "取消")
|
||||
.setOkButton((baseDialog, v1) -> {
|
||||
finish();
|
||||
return false;
|
||||
});
|
||||
}
|
||||
|
||||
private void showLandGridDialog() {
|
||||
if (landGridPickerView == null) {
|
||||
landGridPickerView = new OptionsPickerBuilder(this, (options1, options2, options3, v) -> {
|
||||
selectGrid = landGridData.getRecords().get(options1);
|
||||
Hawk.put(Constant.SELECT_GRID, selectGrid);
|
||||
}).setTitleText("土地网格选择").setContentTextSize(20)
|
||||
.setSelectOptions(0)
|
||||
.setTitleBgColor(Color.WHITE)
|
||||
.isRestoreItem(true)
|
||||
.isCenterLabel(false)
|
||||
.setOutSideColor(0x00000000)
|
||||
.addOnCancelClickListener(view -> {
|
||||
if (selectGrid == null) {
|
||||
showGridNoticeMsg();
|
||||
}
|
||||
})
|
||||
.build();
|
||||
|
||||
landGridPickerView.setPicker(landGridData.getRecords());
|
||||
}
|
||||
landGridPickerView.show();
|
||||
}
|
||||
|
||||
private void requestData() {
|
||||
mData = new ArrayList<>();
|
||||
UtilizationControlEntity item1 = new UtilizationControlEntity();
|
||||
item1.setImg(R.mipmap.pic_utilization_control_1);
|
||||
item1.setName("生物有机肥");
|
||||
item1.setCategory("化肥");
|
||||
item1.setUserName("赵宇");
|
||||
item1.setUserPhone("13610402035");
|
||||
item1.setAddress("耿马镇新城村388号");
|
||||
item1.setDate("2025-05-13");
|
||||
mData.add(item1);
|
||||
|
||||
UtilizationControlEntity item2 = new UtilizationControlEntity();
|
||||
item2.setImg(R.mipmap.pic_utilization_control_2);
|
||||
item2.setName("精草安磷");
|
||||
item2.setCategory("农药");
|
||||
item2.setUserName("李腾峰");
|
||||
item2.setUserPhone("18454646524");
|
||||
item2.setAddress("贺派乡永平村68号");
|
||||
item2.setDate("2025-05-13");
|
||||
mData.add(item2);
|
||||
|
||||
UtilizationControlEntity item3 = new UtilizationControlEntity();
|
||||
item3.setImg(R.mipmap.pic_utilization_control_3);
|
||||
item3.setName("苯醚甲环唑");
|
||||
item3.setCategory("农药");
|
||||
item3.setUserName("胡一");
|
||||
item3.setUserPhone("19548422562");
|
||||
item3.setAddress("孟定镇河西村154号");
|
||||
item3.setDate("2025-05-13");
|
||||
mData.add(item3);
|
||||
|
||||
UtilizationControlEntity item4 = new UtilizationControlEntity();
|
||||
item4.setImg(R.mipmap.pic_utilization_control_4);
|
||||
item4.setName("通用型菌立清");
|
||||
item4.setCategory("农药");
|
||||
item4.setUserName("胡一");
|
||||
item4.setUserPhone("19548422562");
|
||||
item4.setAddress("孟定镇河西村154号");
|
||||
item4.setDate("2025-05-13");
|
||||
mData.add(item4);
|
||||
|
||||
adapter.setNewData(mData);
|
||||
binding.refreshRecycler.showContent();
|
||||
}
|
||||
|
||||
private class UtilizationControlAdapter extends BaseQuickAdapter<UtilizationControlEntity, BaseViewHolder> {
|
||||
|
||||
public UtilizationControlAdapter() {
|
||||
super(R.layout.item_list_utilization_control);
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void convert(@NonNull BaseViewHolder holder, UtilizationControlEntity entity) {
|
||||
holder.setImageResource(R.id.img, entity.getImg());
|
||||
holder.setText(R.id.title, entity.getName());
|
||||
holder.setText(R.id.user, entity.getUserName() + " " + entity.getUserPhone());
|
||||
holder.setText(R.id.address, entity.getAddress());
|
||||
holder.setText(R.id.date, entity.getDate());
|
||||
}
|
||||
}
|
||||
}
|
@ -0,0 +1,25 @@
|
||||
package com.tairui.gov_affairs_cloud.ui.input;
|
||||
|
||||
import com.tairui.gov_affairs_cloud.base.BaseActivity;
|
||||
import com.tairui.gov_affairs_cloud.databinding.ActivityUtilizationControlDetailBinding;
|
||||
import com.tairui.gov_affairs_cloud.util.SingleClickListener;
|
||||
|
||||
import android.view.View;
|
||||
|
||||
public class UtilizationControlDetailActivity extends BaseActivity<ActivityUtilizationControlDetailBinding> {
|
||||
|
||||
@Override
|
||||
protected Class<ActivityUtilizationControlDetailBinding> getBindingClass() {
|
||||
return ActivityUtilizationControlDetailBinding.class;
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void onBindListener() {
|
||||
binding.btnBack.setOnClickListener(new SingleClickListener() {
|
||||
@Override
|
||||
protected void onSingleClick(View v) {
|
||||
finish();
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
@ -0,0 +1,67 @@
|
||||
package com.tairui.gov_affairs_cloud.ui.input.entity;
|
||||
|
||||
public class UtilizationControlEntity {
|
||||
private int img;
|
||||
private String name;
|
||||
private String category;
|
||||
private String userName;
|
||||
private String userPhone;
|
||||
private String address;
|
||||
private String date;
|
||||
|
||||
public int getImg() {
|
||||
return img;
|
||||
}
|
||||
|
||||
public void setImg(int img) {
|
||||
this.img = img;
|
||||
}
|
||||
|
||||
public String getName() {
|
||||
return name;
|
||||
}
|
||||
|
||||
public void setName(String name) {
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
public String getCategory() {
|
||||
return category;
|
||||
}
|
||||
|
||||
public void setCategory(String category) {
|
||||
this.category = category;
|
||||
}
|
||||
|
||||
public String getUserName() {
|
||||
return userName;
|
||||
}
|
||||
|
||||
public void setUserName(String userName) {
|
||||
this.userName = userName;
|
||||
}
|
||||
|
||||
public String getUserPhone() {
|
||||
return userPhone;
|
||||
}
|
||||
|
||||
public void setUserPhone(String userPhone) {
|
||||
this.userPhone = userPhone;
|
||||
}
|
||||
|
||||
public String getAddress() {
|
||||
return address;
|
||||
}
|
||||
|
||||
public void setAddress(String address) {
|
||||
this.address = address;
|
||||
}
|
||||
|
||||
public String getDate() {
|
||||
return date;
|
||||
}
|
||||
|
||||
public void setDate(String date) {
|
||||
this.date = date;
|
||||
}
|
||||
}
|
@ -14,9 +14,11 @@ import com.tairui.gov_affairs_cloud.entity.Api;
|
||||
import com.tairui.gov_affairs_cloud.entity.EventConstant;
|
||||
import com.tairui.gov_affairs_cloud.entity.EventMessage;
|
||||
import com.tairui.gov_affairs_cloud.http.OnError;
|
||||
import com.tairui.gov_affairs_cloud.ui.input.InputGoodsDetailActivity;
|
||||
import com.tairui.gov_affairs_cloud.ui.input.entity.InputGoodsListEntity;
|
||||
import com.tairui.gov_affairs_cloud.util.AppUtil;
|
||||
import com.tairui.gov_affairs_cloud.util.ArrayUtil;
|
||||
import com.tairui.gov_affairs_cloud.util.IntentUtil;
|
||||
import com.tairui.gov_affairs_cloud.util.ToastUtil;
|
||||
import com.tairui.gov_affairs_cloud.util.glide.GlideLoader;
|
||||
import com.tairui.gov_affairs_cloud.widget.RefreshRecyclerView;
|
||||
@ -108,9 +110,7 @@ public class InputGoodsFragment extends BaseFragment<FragmentLandResourceInfoBin
|
||||
}
|
||||
});
|
||||
adapter.setOnItemClickListener((baseQuickAdapter, view, i) -> {
|
||||
// Bundle bundle = new Bundle();
|
||||
// bundle.putSerializable("data", (Serializable) adapter.getItem(i));
|
||||
// IntentUtil.startActivity(mContext, LandInfoDetailActivity.class, bundle);
|
||||
IntentUtil.startActivity(mContext, InputGoodsDetailActivity.class);
|
||||
});
|
||||
}
|
||||
|
||||
|
@ -9,6 +9,7 @@ import com.tairui.gov_affairs_cloud.R;
|
||||
import com.tairui.gov_affairs_cloud.base.BaseFragment;
|
||||
import com.tairui.gov_affairs_cloud.databinding.FragmentWorkspaceBinding;
|
||||
import com.tairui.gov_affairs_cloud.ui.input.InputGoodsListActivity;
|
||||
import com.tairui.gov_affairs_cloud.ui.input.UtilizationControlActivity;
|
||||
import com.tairui.gov_affairs_cloud.ui.land.GridInfoActivity;
|
||||
import com.tairui.gov_affairs_cloud.ui.land.IllegalListActivity;
|
||||
import com.tairui.gov_affairs_cloud.ui.land.InspectionListActivity;
|
||||
@ -78,6 +79,8 @@ public class WorkSpaceFragment extends BaseFragment<FragmentWorkspaceBinding> {
|
||||
IntentUtil.startActivity(mContext, IllegalListActivity.class);
|
||||
} else if (_id == 9) {
|
||||
IntentUtil.startActivity(mContext, InputGoodsListActivity.class);
|
||||
} else if (_id == 11) {
|
||||
IntentUtil.startActivity(mContext, UtilizationControlActivity.class);
|
||||
}
|
||||
});
|
||||
}
|
||||
@ -141,7 +144,7 @@ public class WorkSpaceFragment extends BaseFragment<FragmentWorkspaceBinding> {
|
||||
workSpaceEntities.add(item);
|
||||
|
||||
item = new WorkSpaceEntity();
|
||||
item.setName("投入品管理");
|
||||
item.setName("农产品种植管理");
|
||||
funcs = new ArrayList<>();
|
||||
|
||||
itemFunc = new WorkSpaceEntity.FuncsEntity();
|
||||
@ -174,11 +177,11 @@ public class WorkSpaceFragment extends BaseFragment<FragmentWorkspaceBinding> {
|
||||
// itemFunc.setIcon(R.mipmap.ic_workspace_func_13);
|
||||
// funcs.add(itemFunc);
|
||||
|
||||
itemFunc = new WorkSpaceEntity.FuncsEntity();
|
||||
itemFunc.setId(14);
|
||||
itemFunc.setName("知识库");
|
||||
itemFunc.setIcon(R.mipmap.ic_workspace_func_14);
|
||||
funcs.add(itemFunc);
|
||||
// itemFunc = new WorkSpaceEntity.FuncsEntity();
|
||||
// itemFunc.setId(14);
|
||||
// itemFunc.setName("知识库");
|
||||
// itemFunc.setIcon(R.mipmap.ic_workspace_func_14);
|
||||
// funcs.add(itemFunc);
|
||||
|
||||
itemFunc = new WorkSpaceEntity.FuncsEntity();
|
||||
itemFunc.setId(3);
|
||||
|
418
app/src/main/res/layout/activity_input_goods_detail.xml
Normal file
@ -0,0 +1,418 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:background="@color/white"
|
||||
android:orientation="vertical">
|
||||
|
||||
<androidx.appcompat.widget.Toolbar
|
||||
android:id="@+id/toolbar"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="?attr/actionBarSize"
|
||||
android:background="@color/white"
|
||||
app:contentInsetLeft="0dp"
|
||||
app:contentInsetStart="0dp"
|
||||
app:contentInsetStartWithNavigation="0dp"
|
||||
app:layout_collapseMode="pin">
|
||||
|
||||
<FrameLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:paddingLeft="8dp"
|
||||
android:paddingRight="8dp">
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/btnBack"
|
||||
android:layout_width="30dp"
|
||||
android:layout_height="30dp"
|
||||
android:layout_gravity="left|center_vertical"
|
||||
android:padding="5dp"
|
||||
android:src="@mipmap/ic_back_black" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/toolbar_title"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="center"
|
||||
android:text="详情"
|
||||
android:textColor="@color/color_txt_black"
|
||||
android:textSize="18sp"
|
||||
android:textStyle="bold" />
|
||||
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/btnDelete"
|
||||
android:layout_width="30dp"
|
||||
android:layout_height="30dp"
|
||||
android:layout_gravity="right|center_vertical"
|
||||
android:padding="5dp"
|
||||
android:src="@mipmap/ic_cancel" />
|
||||
</FrameLayout>
|
||||
</androidx.appcompat.widget.Toolbar>
|
||||
|
||||
<androidx.core.widget.NestedScrollView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:scrollbars="none">
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="vertical"
|
||||
android:padding="16dp">
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="12dp"
|
||||
android:text="大白菜种子"
|
||||
android:textColor="@color/color_txt_black"
|
||||
android:textSize="20sp"
|
||||
android:textStyle="bold" />
|
||||
|
||||
<ImageView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="340dp"
|
||||
android:layout_gravity="center_horizontal"
|
||||
android:layout_marginTop="30dp"
|
||||
android:src="@mipmap/pic_input_1" />
|
||||
|
||||
<FrameLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="50dp"
|
||||
android:layout_marginTop="12dp">
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="left|center_vertical"
|
||||
android:text="生产厂商"
|
||||
android:textColor="@color/color_tv_content"
|
||||
android:textSize="15sp"
|
||||
android:textStyle="bold" />
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="right|center_vertical"
|
||||
android:text="星耀苗圃培育基地"
|
||||
android:textColor="@color/color_txt_black"
|
||||
android:textSize="15sp"
|
||||
android:textStyle="bold" />
|
||||
|
||||
<View
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="1dp"
|
||||
android:layout_gravity="bottom"
|
||||
android:background="@color/color_divider" />
|
||||
|
||||
</FrameLayout>
|
||||
|
||||
<FrameLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="50dp">
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="left|center_vertical"
|
||||
android:text="经销商"
|
||||
android:textColor="@color/color_tv_content"
|
||||
android:textSize="15sp"
|
||||
android:textStyle="bold" />
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="right|center_vertical"
|
||||
android:text="种源臻选阁"
|
||||
android:textColor="@color/color_txt_black"
|
||||
android:textSize="15sp"
|
||||
android:textStyle="bold" />
|
||||
|
||||
<View
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="1dp"
|
||||
android:layout_gravity="bottom"
|
||||
android:background="@color/color_divider" />
|
||||
|
||||
</FrameLayout>
|
||||
|
||||
<FrameLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="50dp">
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="left|center_vertical"
|
||||
android:text="质检报告"
|
||||
android:textColor="@color/color_tv_content"
|
||||
android:textSize="15sp"
|
||||
android:textStyle="bold" />
|
||||
|
||||
</FrameLayout>
|
||||
|
||||
<ImageView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="590dp"
|
||||
android:src="@mipmap/pic_input_2" />
|
||||
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="20dp"
|
||||
android:text="详细信息"
|
||||
android:textColor="@color/color_txt_black"
|
||||
android:textSize="20sp"
|
||||
android:textStyle="bold" />
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="20dp"
|
||||
android:gravity="center_vertical|top"
|
||||
android:orientation="horizontal">
|
||||
|
||||
<TextView
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="2"
|
||||
android:text="品种名称"
|
||||
android:textColor="@color/color_txt_label"
|
||||
android:textSize="15sp"
|
||||
android:textStyle="bold" />
|
||||
|
||||
<TextView
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="3"
|
||||
android:text="红果一号"
|
||||
android:textColor="@color/color_txt_black"
|
||||
android:textSize="15sp"
|
||||
android:textStyle="bold" />
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="12dp"
|
||||
android:gravity="center_vertical|top"
|
||||
android:orientation="horizontal">
|
||||
|
||||
<TextView
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="2"
|
||||
android:text="分类"
|
||||
android:textColor="@color/color_txt_label"
|
||||
android:textSize="15sp"
|
||||
android:textStyle="bold" />
|
||||
|
||||
<TextView
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="3"
|
||||
android:text="蔬菜种苗"
|
||||
android:textColor="@color/color_txt_black"
|
||||
android:textSize="15sp"
|
||||
android:textStyle="bold" />
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="12dp"
|
||||
android:gravity="center_vertical|top"
|
||||
android:orientation="horizontal">
|
||||
|
||||
<TextView
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="2"
|
||||
android:text="播种时间"
|
||||
android:textColor="@color/color_txt_label"
|
||||
android:textSize="15sp"
|
||||
android:textStyle="bold" />
|
||||
|
||||
<TextView
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="3"
|
||||
android:text="据当地气候条件,一般在春季或秋季播种"
|
||||
android:textColor="@color/color_txt_black"
|
||||
android:textSize="15sp"
|
||||
android:textStyle="bold" />
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="12dp"
|
||||
android:gravity="center_vertical|top"
|
||||
android:orientation="horizontal">
|
||||
|
||||
<TextView
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="2"
|
||||
android:text="种植密度"
|
||||
android:textColor="@color/color_txt_label"
|
||||
android:textSize="15sp"
|
||||
android:textStyle="bold" />
|
||||
|
||||
<TextView
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="3"
|
||||
android:text="每亩种植 2000 - 2500 株"
|
||||
android:textColor="@color/color_txt_black"
|
||||
android:textSize="15sp"
|
||||
android:textStyle="bold" />
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="12dp"
|
||||
android:gravity="center_vertical|top"
|
||||
android:orientation="horizontal">
|
||||
|
||||
<TextView
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="2"
|
||||
android:text="施肥管理"
|
||||
android:textColor="@color/color_txt_label"
|
||||
android:textSize="15sp"
|
||||
android:textStyle="bold" />
|
||||
|
||||
<TextView
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="3"
|
||||
android:text="基肥以有机肥为主,配合适量的复合肥;生长期间根据植株生长情况适时追肥"
|
||||
android:textColor="@color/color_txt_black"
|
||||
android:textSize="15sp"
|
||||
android:textStyle="bold" />
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="12dp"
|
||||
android:gravity="center_vertical|top"
|
||||
android:orientation="horizontal">
|
||||
|
||||
<TextView
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="2"
|
||||
android:text="水分管理"
|
||||
android:textColor="@color/color_txt_label"
|
||||
android:textSize="15sp"
|
||||
android:textStyle="bold" />
|
||||
|
||||
<TextView
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="3"
|
||||
android:text="保持土壤湿润,但避免积水,根据天气情况和植株生长阶段合理浇水"
|
||||
android:textColor="@color/color_txt_black"
|
||||
android:textSize="15sp"
|
||||
android:textStyle="bold" />
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="12dp"
|
||||
android:gravity="center_vertical|top"
|
||||
android:orientation="horizontal">
|
||||
|
||||
<TextView
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="2"
|
||||
android:text="水分管理"
|
||||
android:textColor="@color/color_txt_label"
|
||||
android:textSize="15sp"
|
||||
android:textStyle="bold" />
|
||||
|
||||
<TextView
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="3"
|
||||
android:text="保持土壤湿润,但避免积水,根据天气情况和植株生长阶段合理浇水"
|
||||
android:textColor="@color/color_txt_black"
|
||||
android:textSize="15sp"
|
||||
android:textStyle="bold" />
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="12dp"
|
||||
android:gravity="center_vertical|top"
|
||||
android:orientation="horizontal">
|
||||
|
||||
<TextView
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="2"
|
||||
android:text="病虫害防治"
|
||||
android:textColor="@color/color_txt_label"
|
||||
android:textSize="15sp"
|
||||
android:textStyle="bold" />
|
||||
|
||||
<TextView
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="3"
|
||||
android:text="保持土壤湿润,但避免积水,根据天气情况和植株生长阶段合理浇水"
|
||||
android:textColor="@color/color_txt_black"
|
||||
android:textSize="15sp"
|
||||
android:textStyle="bold" />
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="12dp"
|
||||
android:gravity="center_vertical|top"
|
||||
android:orientation="horizontal">
|
||||
|
||||
<TextView
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="2"
|
||||
android:text="注意事项"
|
||||
android:textColor="@color/color_txt_label"
|
||||
android:textSize="15sp"
|
||||
android:textStyle="bold" />
|
||||
|
||||
<TextView
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="3"
|
||||
android:text="种苗应在通风、阴凉、干燥的环境中保存,避免阳光直射和高温潮湿。移栽时要小心操作,避免损伤根系。按照栽培要点进行管理,以确保种苗的正常生长和发育。"
|
||||
android:textColor="@color/color_txt_black"
|
||||
android:textSize="15sp"
|
||||
android:textStyle="bold" />
|
||||
|
||||
</LinearLayout>
|
||||
</LinearLayout>
|
||||
|
||||
</androidx.core.widget.NestedScrollView>
|
||||
|
||||
</LinearLayout>
|
@ -26,7 +26,7 @@
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="年度种植计划"
|
||||
android:text="农产品种植进度管理"
|
||||
android:textColor="@color/color_txt_black"
|
||||
android:textSize="18sp"
|
||||
android:textStyle="bold"
|
||||
|
390
app/src/main/res/layout/activity_utilization_control_detail.xml
Normal file
@ -0,0 +1,390 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:background="@color/white"
|
||||
android:orientation="vertical">
|
||||
|
||||
<androidx.appcompat.widget.Toolbar
|
||||
android:id="@+id/toolbar"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="?attr/actionBarSize"
|
||||
android:background="@color/white"
|
||||
app:contentInsetLeft="0dp"
|
||||
app:contentInsetStart="0dp"
|
||||
app:contentInsetStartWithNavigation="0dp"
|
||||
app:layout_collapseMode="pin">
|
||||
|
||||
<FrameLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:paddingLeft="8dp"
|
||||
android:paddingRight="8dp">
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/btnBack"
|
||||
android:layout_width="30dp"
|
||||
android:layout_height="30dp"
|
||||
android:layout_gravity="left|center_vertical"
|
||||
android:padding="5dp"
|
||||
android:src="@mipmap/ic_back_black" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/toolbar_title"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="center"
|
||||
android:text="详情"
|
||||
android:textColor="@color/color_txt_black"
|
||||
android:textSize="18sp"
|
||||
android:textStyle="bold" />
|
||||
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/btnDelete"
|
||||
android:layout_width="30dp"
|
||||
android:layout_height="30dp"
|
||||
android:layout_gravity="right|center_vertical"
|
||||
android:padding="5dp"
|
||||
android:src="@mipmap/ic_cancel" />
|
||||
</FrameLayout>
|
||||
</androidx.appcompat.widget.Toolbar>
|
||||
|
||||
<androidx.core.widget.NestedScrollView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:scrollbars="none">
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:paddingTop="16dp"
|
||||
android:paddingLeft="24dp"
|
||||
android:paddingRight="24dp"
|
||||
android:paddingBottom="16dp"
|
||||
android:orientation="vertical">
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="20dp"
|
||||
android:gravity="center_vertical|top"
|
||||
android:orientation="horizontal">
|
||||
|
||||
<TextView
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="2"
|
||||
android:text="姓名"
|
||||
android:textColor="@color/color_txt_label"
|
||||
android:textSize="15sp"
|
||||
android:textStyle="bold" />
|
||||
|
||||
<TextView
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="3"
|
||||
android:text="赵宇"
|
||||
android:textColor="@color/color_txt_black"
|
||||
android:textSize="15sp"
|
||||
android:textStyle="bold" />
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="20dp"
|
||||
android:gravity="center_vertical|top"
|
||||
android:orientation="horizontal">
|
||||
|
||||
<TextView
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="2"
|
||||
android:text="联系方式"
|
||||
android:textColor="@color/color_txt_label"
|
||||
android:textSize="15sp"
|
||||
android:textStyle="bold" />
|
||||
|
||||
<TextView
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="3"
|
||||
android:text="136 1040 2035"
|
||||
android:textColor="@color/color_txt_black"
|
||||
android:textSize="15sp"
|
||||
android:textStyle="bold" />
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="20dp"
|
||||
android:gravity="center_vertical|top"
|
||||
android:orientation="horizontal">
|
||||
|
||||
<TextView
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="2"
|
||||
android:text="分类"
|
||||
android:textColor="@color/color_txt_label"
|
||||
android:textSize="15sp"
|
||||
android:textStyle="bold" />
|
||||
|
||||
<TextView
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="3"
|
||||
android:text="肥料"
|
||||
android:textColor="@color/color_txt_black"
|
||||
android:textSize="15sp"
|
||||
android:textStyle="bold" />
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="20dp"
|
||||
android:gravity="center_vertical|top"
|
||||
android:orientation="horizontal">
|
||||
|
||||
<TextView
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="2"
|
||||
android:text="图片"
|
||||
android:textColor="@color/color_txt_label"
|
||||
android:textSize="15sp"
|
||||
android:textStyle="bold" />
|
||||
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
<ImageView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="340dp"
|
||||
android:layout_gravity="center_horizontal"
|
||||
android:layout_marginTop="12dp"
|
||||
android:src="@mipmap/pic_utilization_control_5" />
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="20dp"
|
||||
android:gravity="center_vertical|top"
|
||||
android:orientation="horizontal">
|
||||
|
||||
<TextView
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="2"
|
||||
android:text="购买量"
|
||||
android:textColor="@color/color_txt_label"
|
||||
android:textSize="15sp"
|
||||
android:textStyle="bold" />
|
||||
|
||||
<TextView
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="3"
|
||||
android:text="50kg"
|
||||
android:textColor="@color/color_txt_black"
|
||||
android:textSize="15sp"
|
||||
android:textStyle="bold" />
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="20dp"
|
||||
android:gravity="center_vertical|top"
|
||||
android:orientation="horizontal">
|
||||
|
||||
<TextView
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="2"
|
||||
android:text="购买时间"
|
||||
android:textColor="@color/color_txt_label"
|
||||
android:textSize="15sp"
|
||||
android:textStyle="bold" />
|
||||
|
||||
<TextView
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="3"
|
||||
android:text="2024-10-15"
|
||||
android:textColor="@color/color_txt_black"
|
||||
android:textSize="15sp"
|
||||
android:textStyle="bold" />
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="20dp"
|
||||
android:gravity="center_vertical|top"
|
||||
android:orientation="horizontal">
|
||||
|
||||
<TextView
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="2"
|
||||
android:text="使用量:"
|
||||
android:textColor="@color/color_txt_label"
|
||||
android:textSize="15sp"
|
||||
android:textStyle="bold" />
|
||||
|
||||
<TextView
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="3"
|
||||
android:text="20kg"
|
||||
android:textColor="@color/color_txt_black"
|
||||
android:textSize="15sp"
|
||||
android:textStyle="bold" />
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="20dp"
|
||||
android:gravity="center_vertical|top"
|
||||
android:orientation="horizontal">
|
||||
|
||||
<TextView
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="2"
|
||||
android:text="使用时间"
|
||||
android:textColor="@color/color_txt_label"
|
||||
android:textSize="15sp"
|
||||
android:textStyle="bold" />
|
||||
|
||||
<TextView
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="3"
|
||||
android:text="2024-10-15"
|
||||
android:textColor="@color/color_txt_black"
|
||||
android:textSize="15sp"
|
||||
android:textStyle="bold" />
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="20dp"
|
||||
android:gravity="center_vertical|top"
|
||||
android:orientation="horizontal">
|
||||
|
||||
<TextView
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="2"
|
||||
android:text="关联土地"
|
||||
android:textColor="@color/color_txt_label"
|
||||
android:textSize="15sp"
|
||||
android:textStyle="bold" />
|
||||
|
||||
<TextView
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="3"
|
||||
android:text="碧泉湖87号地块"
|
||||
android:textColor="@color/color_txt_black"
|
||||
android:textSize="15sp"
|
||||
android:textStyle="bold" />
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="20dp"
|
||||
android:gravity="center_vertical|top"
|
||||
android:orientation="horizontal">
|
||||
|
||||
<TextView
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="2"
|
||||
android:text="土地检测报告"
|
||||
android:textColor="@color/color_txt_label"
|
||||
android:textSize="15sp"
|
||||
android:textStyle="bold" />
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="20dp"
|
||||
android:background="@drawable/bg_container_white_raduis_5_border"
|
||||
android:orientation="vertical"
|
||||
android:paddingLeft="24dp"
|
||||
android:paddingTop="16dp"
|
||||
android:paddingRight="24dp"
|
||||
android:paddingBottom="16dp">
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="星辰土地环境检测站"
|
||||
android:textColor="@color/color_txt_black"
|
||||
android:textSize="16sp"
|
||||
android:textStyle="bold" />
|
||||
|
||||
<FrameLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="12dp">
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="left|center_vertical"
|
||||
android:text="检测时间:2022-11-22"
|
||||
android:textColor="@color/color_txt_label"
|
||||
android:textSize="12sp" />
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="right|center_vertical"
|
||||
android:text="合格"
|
||||
android:textColor="@color/color_txt_blue"
|
||||
android:textSize="12sp"
|
||||
android:textStyle="bold" />
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="right|center_vertical"
|
||||
android:layout_marginRight="24dp"
|
||||
android:text="检测结果:"
|
||||
android:textColor="@color/color_txt_label"
|
||||
android:textSize="12sp" />
|
||||
</FrameLayout>
|
||||
|
||||
<ImageView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="450dp"
|
||||
android:layout_marginTop="12dp"
|
||||
android:src="@mipmap/pic_utilization_control_6" />
|
||||
|
||||
</LinearLayout>
|
||||
</LinearLayout>
|
||||
|
||||
</androidx.core.widget.NestedScrollView>
|
||||
|
||||
</LinearLayout>
|
@ -0,0 +1,99 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:background="@color/white"
|
||||
android:orientation="vertical">
|
||||
|
||||
<androidx.appcompat.widget.Toolbar
|
||||
android:id="@+id/toolbar"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="?attr/actionBarSize"
|
||||
android:background="@color/white"
|
||||
app:contentInsetLeft="0dp"
|
||||
app:contentInsetStart="0dp"
|
||||
app:contentInsetStartWithNavigation="0dp"
|
||||
app:layout_collapseMode="pin">
|
||||
|
||||
<FrameLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:paddingLeft="8dp"
|
||||
android:paddingRight="8dp">
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/btnBack"
|
||||
android:layout_width="30dp"
|
||||
android:layout_height="30dp"
|
||||
android:layout_gravity="left|center_vertical"
|
||||
android:padding="5dp"
|
||||
android:src="@mipmap/ic_back_black" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/toolbar_title"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="center"
|
||||
android:text="使用监管"
|
||||
android:textColor="@color/color_txt_black"
|
||||
android:textSize="18sp"
|
||||
android:textStyle="bold" />
|
||||
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/btnSearch"
|
||||
android:layout_width="30dp"
|
||||
android:layout_height="30dp"
|
||||
android:layout_gravity="right|center_vertical"
|
||||
android:padding="5dp"
|
||||
android:src="@mipmap/ic_search" />
|
||||
</FrameLayout>
|
||||
</androidx.appcompat.widget.Toolbar>
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/layoutRegion"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:gravity="left|center_vertical"
|
||||
android:paddingLeft="16dp"
|
||||
android:paddingTop="12dp"
|
||||
android:paddingRight="16dp"
|
||||
android:paddingBottom="12dp">
|
||||
|
||||
<ImageView
|
||||
android:layout_width="16dp"
|
||||
android:layout_height="16dp"
|
||||
android:src="@mipmap/ic_location" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tvRegion"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginLeft="4dp"
|
||||
android:layout_weight="1"
|
||||
android:ellipsize="end"
|
||||
android:maxLines="1"
|
||||
android:textColor="@color/color_txt_black"
|
||||
android:textSize="14sp"
|
||||
tools:text="耿马镇白马社区耿马镇白马社区耿马镇白马社区耿马镇白马社区" />
|
||||
|
||||
<ImageView
|
||||
android:layout_width="14dp"
|
||||
android:layout_height="14dp"
|
||||
android:layout_marginLeft="2dp"
|
||||
android:src="@mipmap/ic_arrow_down" />
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
|
||||
<com.tairui.gov_affairs_cloud.widget.RefreshRecyclerView
|
||||
android:id="@+id/refreshRecycler"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:paddingLeft="16dp"
|
||||
android:paddingRight="16dp" />
|
||||
|
||||
|
||||
</LinearLayout>
|
156
app/src/main/res/layout/item_list_utilization_control.xml
Normal file
@ -0,0 +1,156 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content">
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/img"
|
||||
android:layout_width="80dp"
|
||||
android:layout_height="80dp"
|
||||
android:layout_marginLeft="16dp"
|
||||
app:layout_constraintBottom_toBottomOf="parent"
|
||||
app:layout_constraintLeft_toLeftOf="parent"
|
||||
app:layout_constraintTop_toTopOf="parent" />
|
||||
|
||||
|
||||
<TextView
|
||||
android:id="@+id/title"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginLeft="24dp"
|
||||
android:layout_marginTop="16dp"
|
||||
android:text="生物有机肥"
|
||||
android:textColor="@color/color_txt_black"
|
||||
android:textSize="16sp"
|
||||
android:textStyle="bold"
|
||||
app:layout_constraintLeft_toRightOf="@id/img"
|
||||
app:layout_constraintTop_toTopOf="parent" />
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/labelLayout"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="12dp"
|
||||
android:layout_marginRight="16dp"
|
||||
android:layout_marginBottom="16dp"
|
||||
android:orientation="vertical"
|
||||
app:layout_constraintBottom_toBottomOf="parent"
|
||||
app:layout_constraintLeft_toLeftOf="@id/title"
|
||||
app:layout_constraintRight_toRightOf="parent"
|
||||
app:layout_constraintTop_toBottomOf="@id/title">
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:gravity="bottom"
|
||||
android:orientation="horizontal">
|
||||
|
||||
<TextView
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="1"
|
||||
android:text="品类"
|
||||
android:textColor="@color/color_tv_content"
|
||||
android:textSize="14sp" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/category"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="3"
|
||||
android:text="生产厂商"
|
||||
android:textColor="@color/color_txt_black"
|
||||
android:textSize="15sp" />
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="8dp"
|
||||
android:gravity="bottom"
|
||||
android:orientation="horizontal">
|
||||
|
||||
<TextView
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="1"
|
||||
android:text="联系人"
|
||||
android:textColor="@color/color_tv_content"
|
||||
android:textSize="14sp" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/user"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="3"
|
||||
android:text="经销商"
|
||||
android:textColor="@color/color_txt_black"
|
||||
android:textSize="15sp" />
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="8dp"
|
||||
android:gravity="bottom"
|
||||
android:orientation="horizontal">
|
||||
|
||||
<TextView
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="1"
|
||||
android:text="地址"
|
||||
android:textColor="@color/color_tv_content"
|
||||
android:textSize="14sp" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/address"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="3"
|
||||
android:text="分类"
|
||||
android:textColor="@color/color_txt_black"
|
||||
android:textSize="15sp" />
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="8dp"
|
||||
android:gravity="bottom"
|
||||
android:orientation="horizontal">
|
||||
|
||||
<TextView
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="1"
|
||||
android:text="日期"
|
||||
android:textColor="@color/color_tv_content"
|
||||
android:textSize="14sp" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/date"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="3"
|
||||
android:text="保质期"
|
||||
android:textColor="@color/color_txt_black"
|
||||
android:textSize="15sp" />
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
<View
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="1dp"
|
||||
android:layout_marginLeft="16dp"
|
||||
android:layout_marginRight="16dp"
|
||||
android:background="@color/color_divider"
|
||||
app:layout_constraintBottom_toBottomOf="parent" />
|
||||
|
||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
BIN
app/src/main/res/mipmap-xxhdpi/pic_input_1.png
Normal file
After Width: | Height: | Size: 755 KiB |
BIN
app/src/main/res/mipmap-xxhdpi/pic_input_2.png
Normal file
After Width: | Height: | Size: 1.2 MiB |
BIN
app/src/main/res/mipmap-xxhdpi/pic_utilization_control_1.png
Normal file
After Width: | Height: | Size: 83 KiB |
BIN
app/src/main/res/mipmap-xxhdpi/pic_utilization_control_2.png
Normal file
After Width: | Height: | Size: 44 KiB |
BIN
app/src/main/res/mipmap-xxhdpi/pic_utilization_control_3.png
Normal file
After Width: | Height: | Size: 75 KiB |
BIN
app/src/main/res/mipmap-xxhdpi/pic_utilization_control_4.png
Normal file
After Width: | Height: | Size: 106 KiB |
BIN
app/src/main/res/mipmap-xxhdpi/pic_utilization_control_5.png
Normal file
After Width: | Height: | Size: 708 KiB |
BIN
app/src/main/res/mipmap-xxhdpi/pic_utilization_control_6.png
Normal file
After Width: | Height: | Size: 1.2 MiB |