溯源管理模块UI基本完成
This commit is contained in:
parent
a8bb70bba2
commit
9fae92ac22
@ -82,6 +82,24 @@
|
|||||||
android:launchMode="singleTop"
|
android:launchMode="singleTop"
|
||||||
android:screenOrientation="portrait" />
|
android:screenOrientation="portrait" />
|
||||||
|
|
||||||
|
<!-- 溯源报告 -->
|
||||||
|
<activity
|
||||||
|
android:name=".ui.traceabilityManage.TraceabilityReportActivity"
|
||||||
|
android:launchMode="singleTop"
|
||||||
|
android:screenOrientation="portrait" />
|
||||||
|
|
||||||
|
<!-- 溯源查询 -->
|
||||||
|
<activity
|
||||||
|
android:name=".ui.traceabilityManage.TraceabilityInquiryActivity"
|
||||||
|
android:launchMode="singleTop"
|
||||||
|
android:screenOrientation="portrait" />
|
||||||
|
|
||||||
|
<!-- 检测机构详情 -->
|
||||||
|
<activity
|
||||||
|
android:name=".ui.traceabilityManage.InstitutionDetailActivity"
|
||||||
|
android:launchMode="singleTop"
|
||||||
|
android:screenOrientation="portrait" />
|
||||||
|
|
||||||
<!-- 检测机构 -->
|
<!-- 检测机构 -->
|
||||||
<activity
|
<activity
|
||||||
android:name=".ui.traceabilityManage.TestingOrganizationActivity"
|
android:name=".ui.traceabilityManage.TestingOrganizationActivity"
|
||||||
|
@ -19,6 +19,7 @@ import com.yinhetairui.digitalagriculture.R;
|
|||||||
import com.yinhetairui.digitalagriculture.app.TitleBarFragment;
|
import com.yinhetairui.digitalagriculture.app.TitleBarFragment;
|
||||||
import com.yinhetairui.digitalagriculture.ui.HomeActivity;
|
import com.yinhetairui.digitalagriculture.ui.HomeActivity;
|
||||||
import com.yinhetairui.digitalagriculture.ui.dto.CommonFuncDto;
|
import com.yinhetairui.digitalagriculture.ui.dto.CommonFuncDto;
|
||||||
|
import com.yinhetairui.digitalagriculture.ui.landManage.LandManageActivity;
|
||||||
import com.yinhetairui.digitalagriculture.ui.traceabilityManage.TraceabilityManageActivity;
|
import com.yinhetairui.digitalagriculture.ui.traceabilityManage.TraceabilityManageActivity;
|
||||||
import com.yinhetairui.digitalagriculture.widget.CircleImageView;
|
import com.yinhetairui.digitalagriculture.widget.CircleImageView;
|
||||||
|
|
||||||
@ -106,6 +107,9 @@ public final class HomeFragment extends TitleBarFragment<HomeActivity> {
|
|||||||
case 0:
|
case 0:
|
||||||
startActivity(TraceabilityManageActivity.class);
|
startActivity(TraceabilityManageActivity.class);
|
||||||
break;
|
break;
|
||||||
|
case 1:
|
||||||
|
startActivity(LandManageActivity.class);
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
@ -1,7 +1,20 @@
|
|||||||
package com.yinhetairui.digitalagriculture.ui.landManage;
|
package com.yinhetairui.digitalagriculture.ui.landManage;
|
||||||
|
|
||||||
|
import androidx.appcompat.widget.AppCompatTextView;
|
||||||
|
import androidx.recyclerview.widget.GridLayoutManager;
|
||||||
|
import androidx.recyclerview.widget.RecyclerView;
|
||||||
|
|
||||||
|
import com.chad.library.adapter.base.BaseQuickAdapter;
|
||||||
|
import com.chad.library.adapter.base.viewholder.BaseViewHolder;
|
||||||
|
import com.hjq.bar.TitleBar;
|
||||||
import com.yinhetairui.digitalagriculture.R;
|
import com.yinhetairui.digitalagriculture.R;
|
||||||
import com.yinhetairui.digitalagriculture.app.AppActivity;
|
import com.yinhetairui.digitalagriculture.app.AppActivity;
|
||||||
|
import com.yinhetairui.digitalagriculture.ui.dto.CommonFuncDto;
|
||||||
|
|
||||||
|
import org.jetbrains.annotations.NotNull;
|
||||||
|
|
||||||
|
import java.util.ArrayList;
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 创建日期:2025/4/21
|
* 创建日期:2025/4/21
|
||||||
@ -10,6 +23,16 @@ import com.yinhetairui.digitalagriculture.app.AppActivity;
|
|||||||
*/
|
*/
|
||||||
public final class LandManageActivity extends AppActivity {
|
public final class LandManageActivity extends AppActivity {
|
||||||
|
|
||||||
|
private TitleBar title;
|
||||||
|
private RecyclerView rvManage;
|
||||||
|
private AppCompatTextView tvMore;
|
||||||
|
private RecyclerView rvResourceManage;
|
||||||
|
|
||||||
|
private List<CommonFuncDto> mManageList;
|
||||||
|
private BaseQuickAdapter mManageAdapter;
|
||||||
|
private List<String> mResourceManageList;
|
||||||
|
private BaseQuickAdapter mResourceManageAdapter;
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected int getLayoutId() {
|
protected int getLayoutId() {
|
||||||
return R.layout.activity_land_manage;
|
return R.layout.activity_land_manage;
|
||||||
@ -17,11 +40,32 @@ public final class LandManageActivity extends AppActivity {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected void initView() {
|
protected void initView() {
|
||||||
|
title = (TitleBar) findViewById(R.id.title);
|
||||||
|
rvManage = (RecyclerView) findViewById(R.id.rv_manage);
|
||||||
|
tvMore = (AppCompatTextView) findViewById(R.id.tv_more);
|
||||||
|
rvResourceManage = (RecyclerView) findViewById(R.id.rv_resource_manage);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected void initData() {
|
protected void initData() {
|
||||||
|
mManageList = new ArrayList<>();
|
||||||
|
mManageList.add(new CommonFuncDto(R.drawable.logo_big_ic, "土地资源"));
|
||||||
|
mManageList.add(new CommonFuncDto(R.drawable.logo_big_ic, "产权信息"));
|
||||||
|
mManageList.add(new CommonFuncDto(R.drawable.logo_big_ic, "土地流转"));
|
||||||
|
mManageList.add(new CommonFuncDto(R.drawable.logo_big_ic, "土地巡查"));
|
||||||
|
mManageList.add(new CommonFuncDto(R.drawable.logo_big_ic, "土地违规"));
|
||||||
|
|
||||||
|
mManageAdapter = new BaseQuickAdapter<CommonFuncDto, BaseViewHolder>(R.layout.item_common_function, mManageList) {
|
||||||
|
@Override
|
||||||
|
protected void convert(@NotNull BaseViewHolder holder, CommonFuncDto item) {
|
||||||
|
holder.setImageResource(R.id.iv_icon, item.getResId());
|
||||||
|
holder.setText(R.id.tv_name, item.getName());
|
||||||
|
}
|
||||||
|
};
|
||||||
|
GridLayoutManager layoutManager = new GridLayoutManager(getActivity(), 5);
|
||||||
|
rvManage.setLayoutManager(layoutManager);
|
||||||
|
rvManage.setNestedScrollingEnabled(false);
|
||||||
|
rvManage.setAdapter(mManageAdapter);
|
||||||
|
mManageAdapter.setList(mManageList);
|
||||||
}
|
}
|
||||||
}
|
}
|
@ -0,0 +1,27 @@
|
|||||||
|
package com.yinhetairui.digitalagriculture.ui.traceabilityManage;
|
||||||
|
|
||||||
|
import com.yinhetairui.digitalagriculture.R;
|
||||||
|
import com.yinhetairui.digitalagriculture.app.AppActivity;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 创建日期:2025/4/22
|
||||||
|
* 作者:November
|
||||||
|
* 描述:检测机构
|
||||||
|
*/
|
||||||
|
public final class InstitutionDetailActivity extends AppActivity {
|
||||||
|
|
||||||
|
@Override
|
||||||
|
protected int getLayoutId() {
|
||||||
|
return R.layout.activity_institution_detail;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
protected void initView() {
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
protected void initData() {
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
@ -1,13 +1,16 @@
|
|||||||
package com.yinhetairui.digitalagriculture.ui.traceabilityManage;
|
package com.yinhetairui.digitalagriculture.ui.traceabilityManage;
|
||||||
|
|
||||||
|
import android.view.View;
|
||||||
import android.widget.EditText;
|
import android.widget.EditText;
|
||||||
|
|
||||||
|
import androidx.annotation.NonNull;
|
||||||
import androidx.appcompat.widget.AppCompatImageView;
|
import androidx.appcompat.widget.AppCompatImageView;
|
||||||
import androidx.appcompat.widget.AppCompatTextView;
|
import androidx.appcompat.widget.AppCompatTextView;
|
||||||
import androidx.recyclerview.widget.LinearLayoutManager;
|
import androidx.recyclerview.widget.LinearLayoutManager;
|
||||||
import androidx.recyclerview.widget.RecyclerView;
|
import androidx.recyclerview.widget.RecyclerView;
|
||||||
|
|
||||||
import com.chad.library.adapter.base.BaseQuickAdapter;
|
import com.chad.library.adapter.base.BaseQuickAdapter;
|
||||||
|
import com.chad.library.adapter.base.listener.OnItemClickListener;
|
||||||
import com.chad.library.adapter.base.viewholder.BaseViewHolder;
|
import com.chad.library.adapter.base.viewholder.BaseViewHolder;
|
||||||
import com.hjq.bar.TitleBar;
|
import com.hjq.bar.TitleBar;
|
||||||
import com.hjq.shape.layout.ShapeLinearLayout;
|
import com.hjq.shape.layout.ShapeLinearLayout;
|
||||||
@ -80,5 +83,12 @@ public final class TestingOrganizationActivity extends AppActivity {
|
|||||||
};
|
};
|
||||||
rvInstitution.setLayoutManager(new LinearLayoutManager(getContext()));
|
rvInstitution.setLayoutManager(new LinearLayoutManager(getContext()));
|
||||||
rvInstitution.setAdapter(mInstitutionAdapter);
|
rvInstitution.setAdapter(mInstitutionAdapter);
|
||||||
|
|
||||||
|
mInstitutionAdapter.setOnItemClickListener(new OnItemClickListener() {
|
||||||
|
@Override
|
||||||
|
public void onItemClick(@NonNull @NotNull BaseQuickAdapter<?, ?> adapter, @NonNull @NotNull View view, int position) {
|
||||||
|
startActivity(InstitutionDetailActivity.class);
|
||||||
|
}
|
||||||
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
@ -0,0 +1,27 @@
|
|||||||
|
package com.yinhetairui.digitalagriculture.ui.traceabilityManage;
|
||||||
|
|
||||||
|
import com.yinhetairui.digitalagriculture.R;
|
||||||
|
import com.yinhetairui.digitalagriculture.app.AppActivity;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 创建日期:2025/4/22
|
||||||
|
* 作者:November
|
||||||
|
* 描述:溯源查询
|
||||||
|
*/
|
||||||
|
public final class TraceabilityInquiryActivity extends AppActivity {
|
||||||
|
|
||||||
|
@Override
|
||||||
|
protected int getLayoutId() {
|
||||||
|
return R.layout.activity_traceability_inquiry;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
protected void initView() {
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
protected void initData() {
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
@ -91,13 +91,13 @@ public final class TraceabilityManageActivity extends AppActivity {
|
|||||||
startActivity(TraceabilityTestingActivity.class);
|
startActivity(TraceabilityTestingActivity.class);
|
||||||
break;
|
break;
|
||||||
case 2: //溯源报告
|
case 2: //溯源报告
|
||||||
|
startActivity(TraceabilityReportActivity.class);
|
||||||
break;
|
break;
|
||||||
case 3: //检测机构
|
case 3: //检测机构
|
||||||
startActivity(TestingOrganizationActivity.class);
|
startActivity(TestingOrganizationActivity.class);
|
||||||
break;
|
break;
|
||||||
case 4: //溯源查询
|
case 4: //溯源查询
|
||||||
|
startActivity(TraceabilityInquiryActivity.class);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -0,0 +1,81 @@
|
|||||||
|
package com.yinhetairui.digitalagriculture.ui.traceabilityManage;
|
||||||
|
|
||||||
|
import android.widget.EditText;
|
||||||
|
|
||||||
|
import androidx.appcompat.widget.AppCompatImageView;
|
||||||
|
import androidx.appcompat.widget.AppCompatTextView;
|
||||||
|
import androidx.recyclerview.widget.LinearLayoutManager;
|
||||||
|
import androidx.recyclerview.widget.RecyclerView;
|
||||||
|
|
||||||
|
import com.chad.library.adapter.base.BaseQuickAdapter;
|
||||||
|
import com.chad.library.adapter.base.viewholder.BaseViewHolder;
|
||||||
|
import com.hjq.bar.TitleBar;
|
||||||
|
import com.hjq.shape.layout.ShapeLinearLayout;
|
||||||
|
import com.scwang.smart.refresh.layout.SmartRefreshLayout;
|
||||||
|
import com.yinhetairui.digitalagriculture.R;
|
||||||
|
import com.yinhetairui.digitalagriculture.app.AppActivity;
|
||||||
|
|
||||||
|
import org.jetbrains.annotations.NotNull;
|
||||||
|
|
||||||
|
import java.util.ArrayList;
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 创建日期:2025/4/22
|
||||||
|
* 作者:November
|
||||||
|
* 描述:溯源报告
|
||||||
|
*/
|
||||||
|
public final class TraceabilityReportActivity extends AppActivity {
|
||||||
|
|
||||||
|
private TitleBar title;
|
||||||
|
private ShapeLinearLayout llCounty;
|
||||||
|
private AppCompatTextView tvCounty;
|
||||||
|
private ShapeLinearLayout llTown;
|
||||||
|
private AppCompatTextView tvTown;
|
||||||
|
private ShapeLinearLayout llVillage;
|
||||||
|
private AppCompatTextView tvVillage;
|
||||||
|
private EditText etKeyword;
|
||||||
|
private AppCompatImageView ivSearch;
|
||||||
|
private SmartRefreshLayout refreshLayout;
|
||||||
|
private RecyclerView rvReport;
|
||||||
|
|
||||||
|
private List<String> mList;
|
||||||
|
private BaseQuickAdapter mAdapter;
|
||||||
|
|
||||||
|
@Override
|
||||||
|
protected int getLayoutId() {
|
||||||
|
return R.layout.activity_traceability_report;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
protected void initView() {
|
||||||
|
title = (TitleBar) findViewById(R.id.title);
|
||||||
|
llCounty = (ShapeLinearLayout) findViewById(R.id.ll_county);
|
||||||
|
tvCounty = (AppCompatTextView) findViewById(R.id.tv_county);
|
||||||
|
llTown = (ShapeLinearLayout) findViewById(R.id.ll_town);
|
||||||
|
tvTown = (AppCompatTextView) findViewById(R.id.tv_town);
|
||||||
|
llVillage = (ShapeLinearLayout) findViewById(R.id.ll_village);
|
||||||
|
tvVillage = (AppCompatTextView) findViewById(R.id.tv_village);
|
||||||
|
etKeyword = (EditText) findViewById(R.id.et_keyword);
|
||||||
|
ivSearch = (AppCompatImageView) findViewById(R.id.iv_search);
|
||||||
|
refreshLayout = (SmartRefreshLayout) findViewById(R.id.refreshLayout);
|
||||||
|
rvReport = (RecyclerView) findViewById(R.id.rv_report);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
protected void initData() {
|
||||||
|
mList = new ArrayList<>();
|
||||||
|
mList.add("");
|
||||||
|
mList.add("");
|
||||||
|
mList.add("");
|
||||||
|
|
||||||
|
mAdapter = new BaseQuickAdapter<String, BaseViewHolder>(R.layout.item_traceability_report, mList) {
|
||||||
|
@Override
|
||||||
|
protected void convert(@NotNull BaseViewHolder holder, String item) {
|
||||||
|
|
||||||
|
}
|
||||||
|
};
|
||||||
|
rvReport.setLayoutManager(new LinearLayoutManager(getContext()));
|
||||||
|
rvReport.setAdapter(mAdapter);
|
||||||
|
}
|
||||||
|
}
|
108
app/src/main/res/layout/activity_institution_detail.xml
Normal file
108
app/src/main/res/layout/activity_institution_detail.xml
Normal file
@ -0,0 +1,108 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<RelativeLayout 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"
|
||||||
|
tools:context=".ui.traceabilityManage.InstitutionDetailActivity">
|
||||||
|
|
||||||
|
<com.hjq.bar.TitleBar
|
||||||
|
android:id="@+id/title"
|
||||||
|
style="@style/MyTitleBarStyle"
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
app:title="检测机构" />
|
||||||
|
|
||||||
|
<androidx.core.widget.NestedScrollView
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="match_parent"
|
||||||
|
android:layout_below="@id/title">
|
||||||
|
|
||||||
|
<LinearLayout
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="match_parent"
|
||||||
|
android:orientation="vertical">
|
||||||
|
|
||||||
|
<androidx.appcompat.widget.AppCompatTextView
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_marginHorizontal="@dimen/dp_10"
|
||||||
|
android:layout_marginTop="@dimen/dp_10"
|
||||||
|
android:text="基础信息>>"
|
||||||
|
android:textColor="@color/common_text_color"
|
||||||
|
android:textSize="@dimen/sp_14" />
|
||||||
|
|
||||||
|
<androidx.appcompat.widget.AppCompatImageView
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="@dimen/dp_100"
|
||||||
|
android:layout_marginHorizontal="@dimen/dp_20"
|
||||||
|
android:src="@drawable/logo_big_ic" />
|
||||||
|
|
||||||
|
<androidx.appcompat.widget.AppCompatTextView
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_marginHorizontal="@dimen/dp_40"
|
||||||
|
android:layout_marginTop="@dimen/dp_10"
|
||||||
|
android:text="中科农残检测公司"
|
||||||
|
android:textColor="@color/common_text_color"
|
||||||
|
android:textSize="@dimen/sp_14" />
|
||||||
|
|
||||||
|
<androidx.appcompat.widget.AppCompatTextView
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_marginHorizontal="@dimen/dp_40"
|
||||||
|
android:layout_marginTop="@dimen/dp_10"
|
||||||
|
android:text="耿马县耿马镇耿马村154号"
|
||||||
|
android:textColor="@color/common_text_color"
|
||||||
|
android:textSize="@dimen/sp_14" />
|
||||||
|
|
||||||
|
<androidx.appcompat.widget.AppCompatTextView
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_marginHorizontal="@dimen/dp_40"
|
||||||
|
android:layout_marginTop="@dimen/dp_10"
|
||||||
|
android:text="联系人:周乐心"
|
||||||
|
android:textColor="@color/common_text_color"
|
||||||
|
android:textSize="@dimen/sp_14" />
|
||||||
|
|
||||||
|
<androidx.appcompat.widget.AppCompatTextView
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_marginHorizontal="@dimen/dp_40"
|
||||||
|
android:layout_marginTop="@dimen/dp_10"
|
||||||
|
android:text="联系电话:19578012123"
|
||||||
|
android:textColor="@color/common_text_color"
|
||||||
|
android:textSize="@dimen/sp_14" />
|
||||||
|
|
||||||
|
<androidx.appcompat.widget.AppCompatTextView
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_marginHorizontal="@dimen/dp_10"
|
||||||
|
android:layout_marginTop="@dimen/dp_10"
|
||||||
|
android:text="资质证书>>"
|
||||||
|
android:textColor="@color/common_text_color"
|
||||||
|
android:textSize="@dimen/sp_14" />
|
||||||
|
|
||||||
|
<androidx.appcompat.widget.AppCompatImageView
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="@dimen/dp_100"
|
||||||
|
android:layout_marginHorizontal="@dimen/dp_10"
|
||||||
|
android:src="@drawable/logo_big_ic" />
|
||||||
|
|
||||||
|
<androidx.appcompat.widget.AppCompatImageView
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="@dimen/dp_100"
|
||||||
|
android:layout_marginHorizontal="@dimen/dp_10"
|
||||||
|
android:src="@drawable/logo_big_ic" />
|
||||||
|
|
||||||
|
<androidx.appcompat.widget.AppCompatImageView
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="@dimen/dp_100"
|
||||||
|
android:layout_marginHorizontal="@dimen/dp_10"
|
||||||
|
android:src="@drawable/logo_big_ic" />
|
||||||
|
|
||||||
|
</LinearLayout>
|
||||||
|
|
||||||
|
</androidx.core.widget.NestedScrollView>
|
||||||
|
|
||||||
|
</RelativeLayout>
|
@ -78,9 +78,17 @@
|
|||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:orientation="vertical">
|
android:orientation="vertical">
|
||||||
|
|
||||||
|
<androidx.appcompat.widget.AppCompatTextView
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:text="土地总面积"
|
||||||
|
android:textColor="@color/common_text_color"
|
||||||
|
android:textSize="@dimen/sp_14" />
|
||||||
|
|
||||||
<LinearLayout
|
<LinearLayout
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_marginTop="@dimen/dp_8"
|
||||||
android:orientation="horizontal">
|
android:orientation="horizontal">
|
||||||
|
|
||||||
<androidx.appcompat.widget.AppCompatTextView
|
<androidx.appcompat.widget.AppCompatTextView
|
||||||
@ -93,20 +101,12 @@
|
|||||||
<androidx.appcompat.widget.AppCompatTextView
|
<androidx.appcompat.widget.AppCompatTextView
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:text="家"
|
android:text="km²"
|
||||||
android:textSize="@dimen/sp_16"
|
android:textSize="@dimen/sp_16"
|
||||||
android:textStyle="bold" />
|
android:textStyle="bold" />
|
||||||
|
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
|
|
||||||
<androidx.appcompat.widget.AppCompatTextView
|
|
||||||
android:layout_width="wrap_content"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:layout_marginTop="@dimen/dp_8"
|
|
||||||
android:text="追溯主题数"
|
|
||||||
android:textColor="@color/common_text_color"
|
|
||||||
android:textSize="@dimen/sp_14" />
|
|
||||||
|
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
|
|
||||||
</com.hjq.shape.layout.ShapeLinearLayout>
|
</com.hjq.shape.layout.ShapeLinearLayout>
|
||||||
@ -131,35 +131,35 @@
|
|||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:orientation="vertical">
|
android:orientation="vertical">
|
||||||
|
|
||||||
|
<androidx.appcompat.widget.AppCompatTextView
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:text="农用地面积"
|
||||||
|
android:textColor="@color/common_text_color"
|
||||||
|
android:textSize="@dimen/sp_14" />
|
||||||
|
|
||||||
<LinearLayout
|
<LinearLayout
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_marginTop="@dimen/dp_8"
|
||||||
android:orientation="horizontal">
|
android:orientation="horizontal">
|
||||||
|
|
||||||
<androidx.appcompat.widget.AppCompatTextView
|
<androidx.appcompat.widget.AppCompatTextView
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:text="4579"
|
android:text="2892"
|
||||||
android:textSize="@dimen/sp_24"
|
android:textSize="@dimen/sp_24"
|
||||||
android:textStyle="bold" />
|
android:textStyle="bold" />
|
||||||
|
|
||||||
<androidx.appcompat.widget.AppCompatTextView
|
<androidx.appcompat.widget.AppCompatTextView
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:text="次"
|
android:text="km²"
|
||||||
android:textSize="@dimen/sp_16"
|
android:textSize="@dimen/sp_16"
|
||||||
android:textStyle="bold" />
|
android:textStyle="bold" />
|
||||||
|
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
|
|
||||||
<androidx.appcompat.widget.AppCompatTextView
|
|
||||||
android:layout_width="wrap_content"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:layout_marginTop="@dimen/dp_8"
|
|
||||||
android:text="产品溯源次数"
|
|
||||||
android:textColor="@color/common_text_color"
|
|
||||||
android:textSize="@dimen/sp_14" />
|
|
||||||
|
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
|
|
||||||
</com.hjq.shape.layout.ShapeLinearLayout>
|
</com.hjq.shape.layout.ShapeLinearLayout>
|
||||||
@ -195,18 +195,32 @@
|
|||||||
<androidx.appcompat.widget.AppCompatTextView
|
<androidx.appcompat.widget.AppCompatTextView
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:text="859"
|
android:text="建筑用地面积"
|
||||||
android:textSize="@dimen/sp_24"
|
|
||||||
android:textStyle="bold" />
|
|
||||||
|
|
||||||
<androidx.appcompat.widget.AppCompatTextView
|
|
||||||
android:layout_width="wrap_content"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:layout_marginTop="@dimen/dp_8"
|
|
||||||
android:text="发放溯源码"
|
|
||||||
android:textColor="@color/common_text_color"
|
android:textColor="@color/common_text_color"
|
||||||
android:textSize="@dimen/sp_14" />
|
android:textSize="@dimen/sp_14" />
|
||||||
|
|
||||||
|
<LinearLayout
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_marginTop="@dimen/dp_8"
|
||||||
|
android:orientation="horizontal">
|
||||||
|
|
||||||
|
<androidx.appcompat.widget.AppCompatTextView
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:text="806"
|
||||||
|
android:textSize="@dimen/sp_24"
|
||||||
|
android:textStyle="bold" />
|
||||||
|
|
||||||
|
<androidx.appcompat.widget.AppCompatTextView
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:text="km²"
|
||||||
|
android:textSize="@dimen/sp_16"
|
||||||
|
android:textStyle="bold" />
|
||||||
|
|
||||||
|
</LinearLayout>
|
||||||
|
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
|
|
||||||
</com.hjq.shape.layout.ShapeLinearLayout>
|
</com.hjq.shape.layout.ShapeLinearLayout>
|
||||||
@ -234,18 +248,32 @@
|
|||||||
<androidx.appcompat.widget.AppCompatTextView
|
<androidx.appcompat.widget.AppCompatTextView
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:text="754"
|
|
||||||
android:textSize="@dimen/sp_24"
|
|
||||||
android:textStyle="bold" />
|
|
||||||
|
|
||||||
<androidx.appcompat.widget.AppCompatTextView
|
|
||||||
android:layout_width="wrap_content"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:layout_marginTop="@dimen/dp_8"
|
|
||||||
android:text="有效期内溯源码"
|
android:text="有效期内溯源码"
|
||||||
android:textColor="@color/common_text_color"
|
android:textColor="@color/common_text_color"
|
||||||
android:textSize="@dimen/sp_14" />
|
android:textSize="@dimen/sp_14" />
|
||||||
|
|
||||||
|
<LinearLayout
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_marginTop="@dimen/dp_8"
|
||||||
|
android:orientation="horizontal">
|
||||||
|
|
||||||
|
<androidx.appcompat.widget.AppCompatTextView
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:text="154"
|
||||||
|
android:textSize="@dimen/sp_24"
|
||||||
|
android:textStyle="bold" />
|
||||||
|
|
||||||
|
<androidx.appcompat.widget.AppCompatTextView
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:text="km²"
|
||||||
|
android:textSize="@dimen/sp_16"
|
||||||
|
android:textStyle="bold" />
|
||||||
|
|
||||||
|
</LinearLayout>
|
||||||
|
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
|
|
||||||
</com.hjq.shape.layout.ShapeLinearLayout>
|
</com.hjq.shape.layout.ShapeLinearLayout>
|
||||||
@ -329,7 +357,7 @@
|
|||||||
android:background="@color/common_line_color" />
|
android:background="@color/common_line_color" />
|
||||||
|
|
||||||
<androidx.recyclerview.widget.RecyclerView
|
<androidx.recyclerview.widget.RecyclerView
|
||||||
android:id="@+id/rv_institution"
|
android:id="@+id/rv_resource_manage"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content" />
|
android:layout_height="wrap_content" />
|
||||||
|
|
||||||
|
83
app/src/main/res/layout/activity_traceability_inquiry.xml
Normal file
83
app/src/main/res/layout/activity_traceability_inquiry.xml
Normal file
@ -0,0 +1,83 @@
|
|||||||
|
<?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:orientation="vertical"
|
||||||
|
tools:context=".ui.traceabilityManage.TraceabilityInquiryActivity">
|
||||||
|
|
||||||
|
<com.hjq.bar.TitleBar
|
||||||
|
android:id="@+id/title"
|
||||||
|
style="@style/MyTitleBarStyle"
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
app:title="溯源查询" />
|
||||||
|
|
||||||
|
<androidx.appcompat.widget.AppCompatImageView
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="@dimen/dp_150"
|
||||||
|
android:background="@color/common_line_color" />
|
||||||
|
|
||||||
|
<com.hjq.shape.layout.ShapeLinearLayout
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="@dimen/dp_40"
|
||||||
|
android:layout_marginHorizontal="@dimen/dp_14"
|
||||||
|
android:layout_marginTop="@dimen/dp_20"
|
||||||
|
android:gravity="center_vertical"
|
||||||
|
app:shape_radius="@dimen/dp_5"
|
||||||
|
app:shape_solidColor="@color/white"
|
||||||
|
app:shape_strokeColor="@color/common_line_color"
|
||||||
|
app:shape_strokeSize="@dimen/dp_1">
|
||||||
|
|
||||||
|
<EditText
|
||||||
|
android:layout_width="0px"
|
||||||
|
android:layout_height="@dimen/dp_36"
|
||||||
|
android:layout_marginHorizontal="@dimen/dp_10"
|
||||||
|
android:layout_weight="1"
|
||||||
|
android:background="@null"
|
||||||
|
android:gravity="center_vertical"
|
||||||
|
android:hint="请输入溯源码进行查询"
|
||||||
|
android:textColor="@color/common_text_color"
|
||||||
|
android:textSize="@dimen/sp_12" />
|
||||||
|
|
||||||
|
<androidx.appcompat.widget.AppCompatImageView
|
||||||
|
android:layout_width="@dimen/dp_24"
|
||||||
|
android:layout_height="@dimen/dp_24"
|
||||||
|
android:layout_marginEnd="@dimen/dp_10"
|
||||||
|
android:src="@drawable/logo_big_ic" />
|
||||||
|
|
||||||
|
</com.hjq.shape.layout.ShapeLinearLayout>
|
||||||
|
|
||||||
|
<androidx.appcompat.widget.AppCompatTextView
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_gravity="center_horizontal"
|
||||||
|
android:layout_marginTop="@dimen/dp_30"
|
||||||
|
android:text="温馨提示"
|
||||||
|
android:textColor="@color/theme_color"
|
||||||
|
android:textSize="@dimen/sp_18" />
|
||||||
|
|
||||||
|
<androidx.appcompat.widget.AppCompatTextView
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_marginHorizontal="@dimen/dp_30"
|
||||||
|
android:layout_marginTop="@dimen/dp_20"
|
||||||
|
android:gravity="center"
|
||||||
|
android:text="在产品外包装上查看追溯标签,标签上16位明码,对照输入查询框,点击查询进行追溯" />
|
||||||
|
|
||||||
|
<com.hjq.shape.view.ShapeButton
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="@dimen/dp_40"
|
||||||
|
android:layout_gravity="center_horizontal"
|
||||||
|
android:layout_marginTop="@dimen/dp_30"
|
||||||
|
android:gravity="center"
|
||||||
|
android:paddingHorizontal="@dimen/dp_10"
|
||||||
|
android:text="扫一扫查询"
|
||||||
|
android:textColor="@color/white"
|
||||||
|
android:textSize="@dimen/sp_18"
|
||||||
|
android:textStyle="bold"
|
||||||
|
app:shape_radius="@dimen/dp_5"
|
||||||
|
app:shape_solidColor="@color/theme_color" />
|
||||||
|
|
||||||
|
</LinearLayout>
|
166
app/src/main/res/layout/activity_traceability_report.xml
Normal file
166
app/src/main/res/layout/activity_traceability_report.xml
Normal file
@ -0,0 +1,166 @@
|
|||||||
|
<?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:orientation="vertical"
|
||||||
|
tools:context=".ui.traceabilityManage.TraceabilityReportActivity">
|
||||||
|
|
||||||
|
<com.hjq.bar.TitleBar
|
||||||
|
android:id="@+id/title"
|
||||||
|
style="@style/MyTitleBarStyle"
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
app:title="溯源报告" />
|
||||||
|
|
||||||
|
<LinearLayout
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_marginHorizontal="@dimen/dp_10"
|
||||||
|
android:layout_marginTop="@dimen/dp_10"
|
||||||
|
android:orientation="horizontal">
|
||||||
|
|
||||||
|
<com.hjq.shape.layout.ShapeLinearLayout
|
||||||
|
android:id="@+id/ll_county"
|
||||||
|
android:layout_width="0px"
|
||||||
|
android:layout_height="@dimen/dp_30"
|
||||||
|
android:layout_marginEnd="@dimen/dp_2"
|
||||||
|
android:layout_weight="1"
|
||||||
|
android:gravity="center_vertical"
|
||||||
|
android:orientation="horizontal"
|
||||||
|
android:paddingHorizontal="@dimen/dp_2"
|
||||||
|
app:shape_radius="@dimen/dp_4"
|
||||||
|
app:shape_solidColor="@color/white"
|
||||||
|
app:shape_strokeColor="@color/common_line_color"
|
||||||
|
app:shape_strokeSize="@dimen/dp_1">
|
||||||
|
|
||||||
|
<androidx.appcompat.widget.AppCompatTextView
|
||||||
|
android:id="@+id/tv_county"
|
||||||
|
android:layout_width="0px"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_weight="1"
|
||||||
|
android:text="县"
|
||||||
|
android:textColor="@color/common_text_color"
|
||||||
|
android:textSize="@dimen/sp_12" />
|
||||||
|
|
||||||
|
<androidx.appcompat.widget.AppCompatImageView
|
||||||
|
android:layout_width="@dimen/dp_18"
|
||||||
|
android:layout_height="@dimen/dp_18"
|
||||||
|
android:src="@drawable/logo_big_ic" />
|
||||||
|
|
||||||
|
</com.hjq.shape.layout.ShapeLinearLayout>
|
||||||
|
|
||||||
|
<com.hjq.shape.layout.ShapeLinearLayout
|
||||||
|
android:id="@+id/ll_town"
|
||||||
|
android:layout_width="0px"
|
||||||
|
android:layout_height="@dimen/dp_30"
|
||||||
|
android:layout_marginHorizontal="@dimen/dp_2"
|
||||||
|
android:layout_weight="1"
|
||||||
|
android:gravity="center_vertical"
|
||||||
|
android:orientation="horizontal"
|
||||||
|
android:paddingHorizontal="@dimen/dp_2"
|
||||||
|
app:shape_radius="@dimen/dp_4"
|
||||||
|
app:shape_solidColor="@color/white"
|
||||||
|
app:shape_strokeColor="@color/common_line_color"
|
||||||
|
app:shape_strokeSize="@dimen/dp_1">
|
||||||
|
|
||||||
|
<androidx.appcompat.widget.AppCompatTextView
|
||||||
|
android:id="@+id/tv_town"
|
||||||
|
android:layout_width="0px"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_weight="1"
|
||||||
|
android:text="乡镇"
|
||||||
|
android:textColor="@color/common_text_color"
|
||||||
|
android:textSize="@dimen/sp_12" />
|
||||||
|
|
||||||
|
<androidx.appcompat.widget.AppCompatImageView
|
||||||
|
android:layout_width="@dimen/dp_18"
|
||||||
|
android:layout_height="@dimen/dp_18"
|
||||||
|
android:src="@drawable/logo_big_ic" />
|
||||||
|
|
||||||
|
</com.hjq.shape.layout.ShapeLinearLayout>
|
||||||
|
|
||||||
|
<com.hjq.shape.layout.ShapeLinearLayout
|
||||||
|
android:id="@+id/ll_village"
|
||||||
|
android:layout_width="0px"
|
||||||
|
android:layout_height="@dimen/dp_30"
|
||||||
|
android:layout_marginStart="@dimen/dp_2"
|
||||||
|
android:layout_weight="1"
|
||||||
|
android:gravity="center_vertical"
|
||||||
|
android:orientation="horizontal"
|
||||||
|
android:paddingHorizontal="@dimen/dp_2"
|
||||||
|
app:shape_radius="@dimen/dp_4"
|
||||||
|
app:shape_solidColor="@color/white"
|
||||||
|
app:shape_strokeColor="@color/common_line_color"
|
||||||
|
app:shape_strokeSize="@dimen/dp_1">
|
||||||
|
|
||||||
|
<androidx.appcompat.widget.AppCompatTextView
|
||||||
|
android:id="@+id/tv_village"
|
||||||
|
android:layout_width="0px"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_weight="1"
|
||||||
|
android:text="村"
|
||||||
|
android:textColor="@color/common_text_color"
|
||||||
|
android:textSize="@dimen/sp_12" />
|
||||||
|
|
||||||
|
<androidx.appcompat.widget.AppCompatImageView
|
||||||
|
android:layout_width="@dimen/dp_18"
|
||||||
|
android:layout_height="@dimen/dp_18"
|
||||||
|
android:src="@drawable/logo_big_ic" />
|
||||||
|
|
||||||
|
</com.hjq.shape.layout.ShapeLinearLayout>
|
||||||
|
|
||||||
|
</LinearLayout>
|
||||||
|
|
||||||
|
<com.hjq.shape.layout.ShapeLinearLayout
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="@dimen/dp_34"
|
||||||
|
android:layout_marginHorizontal="@dimen/dp_10"
|
||||||
|
android:layout_marginTop="@dimen/dp_10"
|
||||||
|
android:gravity="center_vertical"
|
||||||
|
android:orientation="horizontal"
|
||||||
|
android:paddingHorizontal="@dimen/dp_10"
|
||||||
|
app:shape_radius="@dimen/dp_99"
|
||||||
|
app:shape_solidColor="@color/white"
|
||||||
|
app:shape_strokeColor="@color/common_line_color"
|
||||||
|
app:shape_strokeSize="@dimen/dp_1">
|
||||||
|
|
||||||
|
<EditText
|
||||||
|
android:id="@+id/et_keyword"
|
||||||
|
android:layout_width="0px"
|
||||||
|
android:layout_height="@dimen/dp_30"
|
||||||
|
android:layout_weight="1"
|
||||||
|
android:background="@null"
|
||||||
|
android:hint="检测机构信息"
|
||||||
|
android:textColor="@color/common_text_color"
|
||||||
|
android:textSize="@dimen/sp_12" />
|
||||||
|
|
||||||
|
<androidx.appcompat.widget.AppCompatImageView
|
||||||
|
android:id="@+id/iv_search"
|
||||||
|
android:layout_width="@dimen/dp_30"
|
||||||
|
android:layout_height="@dimen/dp_30"
|
||||||
|
android:src="@drawable/logo_big_ic" />
|
||||||
|
|
||||||
|
</com.hjq.shape.layout.ShapeLinearLayout>
|
||||||
|
|
||||||
|
<com.yinhetairui.digitalagriculture.widget.StatusLayout
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="match_parent"
|
||||||
|
android:layout_marginTop="@dimen/dp_5">
|
||||||
|
|
||||||
|
<com.scwang.smart.refresh.layout.SmartRefreshLayout
|
||||||
|
android:id="@+id/refreshLayout"
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="match_parent">
|
||||||
|
|
||||||
|
<androidx.recyclerview.widget.RecyclerView
|
||||||
|
android:id="@+id/rv_report"
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="match_parent" />
|
||||||
|
|
||||||
|
</com.scwang.smart.refresh.layout.SmartRefreshLayout>
|
||||||
|
|
||||||
|
</com.yinhetairui.digitalagriculture.widget.StatusLayout>
|
||||||
|
|
||||||
|
</LinearLayout>
|
151
app/src/main/res/layout/item_traceability_report.xml
Normal file
151
app/src/main/res/layout/item_traceability_report.xml
Normal file
@ -0,0 +1,151 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<com.hjq.shape.layout.ShapeLinearLayout 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"
|
||||||
|
android:layout_marginHorizontal="@dimen/dp_10"
|
||||||
|
android:layout_marginVertical="@dimen/dp_4"
|
||||||
|
android:orientation="vertical"
|
||||||
|
android:padding="@dimen/dp_10"
|
||||||
|
app:shape_radius="@dimen/dp_5"
|
||||||
|
app:shape_solidColor="@color/white"
|
||||||
|
app:shape_strokeColor="@color/common_line_color"
|
||||||
|
app:shape_strokeSize="@dimen/dp_1">
|
||||||
|
|
||||||
|
<LinearLayout
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:gravity="center_vertical"
|
||||||
|
android:orientation="horizontal">
|
||||||
|
|
||||||
|
<com.hjq.shape.view.ShapeTextView
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:text="种地好企业"
|
||||||
|
android:textColor="@color/white"
|
||||||
|
android:textSize="@dimen/sp_12"
|
||||||
|
app:shape_radius="@dimen/dp_4"
|
||||||
|
app:shape_solidColor="@color/common_text_color6" />
|
||||||
|
|
||||||
|
<com.hjq.shape.view.ShapeTextView
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_marginStart="@dimen/dp_4"
|
||||||
|
android:text="一号基地"
|
||||||
|
android:textColor="@color/white"
|
||||||
|
android:textSize="@dimen/sp_12"
|
||||||
|
app:shape_radius="@dimen/dp_4"
|
||||||
|
app:shape_solidColor="@color/theme_color" />
|
||||||
|
|
||||||
|
<com.hjq.shape.view.ShapeTextView
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_marginStart="@dimen/dp_4"
|
||||||
|
android:text="一号青菜"
|
||||||
|
android:textColor="@color/white"
|
||||||
|
android:textSize="@dimen/sp_12"
|
||||||
|
app:shape_radius="@dimen/dp_4"
|
||||||
|
app:shape_solidColor="@color/theme_color" />
|
||||||
|
|
||||||
|
<Space
|
||||||
|
android:layout_width="0px"
|
||||||
|
android:layout_height="match_parent"
|
||||||
|
android:layout_weight="1" />
|
||||||
|
|
||||||
|
<com.hjq.widget.view.DrawableTextView
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:drawableStart="@drawable/logo_big_ic"
|
||||||
|
android:gravity="center_vertical"
|
||||||
|
android:text="操作人"
|
||||||
|
android:textColor="@color/common_text_color"
|
||||||
|
android:textSize="@dimen/sp_12"
|
||||||
|
app:drawableHeight="@dimen/dp_14"
|
||||||
|
app:drawableWidth="@dimen/dp_14" />
|
||||||
|
|
||||||
|
</LinearLayout>
|
||||||
|
|
||||||
|
<LinearLayout
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_marginTop="@dimen/dp_10"
|
||||||
|
android:orientation="horizontal">
|
||||||
|
|
||||||
|
<androidx.appcompat.widget.AppCompatTextView
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:text="采摘时间:2021.02.03"
|
||||||
|
android:textColor="@color/common_text_color"
|
||||||
|
android:textSize="@dimen/sp_10" />
|
||||||
|
|
||||||
|
<androidx.appcompat.widget.AppCompatTextView
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_marginStart="@dimen/dp_4"
|
||||||
|
android:text="检测时间:2021.02.03"
|
||||||
|
android:textColor="@color/common_text_color"
|
||||||
|
android:textSize="@dimen/sp_10" />
|
||||||
|
|
||||||
|
<androidx.appcompat.widget.AppCompatTextView
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_marginStart="@dimen/dp_4"
|
||||||
|
android:text="重量:100kg"
|
||||||
|
android:textColor="@color/common_text_color"
|
||||||
|
android:textSize="@dimen/sp_10" />
|
||||||
|
|
||||||
|
</LinearLayout>
|
||||||
|
|
||||||
|
<LinearLayout
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_marginTop="@dimen/dp_8"
|
||||||
|
android:orientation="horizontal">
|
||||||
|
|
||||||
|
<androidx.appcompat.widget.AppCompatImageView
|
||||||
|
android:layout_width="@dimen/dp_90"
|
||||||
|
android:layout_height="@dimen/dp_62"
|
||||||
|
android:src="@drawable/logo_big_ic" />
|
||||||
|
|
||||||
|
<LinearLayout
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_marginStart="@dimen/dp_10"
|
||||||
|
android:orientation="vertical">
|
||||||
|
|
||||||
|
<androidx.appcompat.widget.AppCompatTextView
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:text="农产品名称:金丝凤梨"
|
||||||
|
android:textColor="@color/common_text_color"
|
||||||
|
android:textSize="@dimen/sp_12" />
|
||||||
|
|
||||||
|
<androidx.appcompat.widget.AppCompatTextView
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_marginTop="@dimen/dp_4"
|
||||||
|
android:text="合格证编号:5302255555"
|
||||||
|
android:textColor="@color/common_text_color"
|
||||||
|
android:textSize="@dimen/sp_10" />
|
||||||
|
|
||||||
|
<androidx.appcompat.widget.AppCompatTextView
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_marginTop="@dimen/dp_4"
|
||||||
|
android:text="开具日期:2021.06.09"
|
||||||
|
android:textColor="@color/common_text_color"
|
||||||
|
android:textSize="@dimen/sp_10" />
|
||||||
|
|
||||||
|
<androidx.appcompat.widget.AppCompatTextView
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_marginTop="@dimen/dp_4"
|
||||||
|
android:text="溯源编码:NMR5302255555"
|
||||||
|
android:textColor="@color/common_text_color"
|
||||||
|
android:textSize="@dimen/sp_10" />
|
||||||
|
|
||||||
|
</LinearLayout>
|
||||||
|
|
||||||
|
</LinearLayout>
|
||||||
|
|
||||||
|
</com.hjq.shape.layout.ShapeLinearLayout>
|
Loading…
x
Reference in New Issue
Block a user