政务云告一段落
@ -248,6 +248,101 @@
|
||||
android:configChanges="orientation|screenSize|keyboardHidden"
|
||||
android:exported="false"
|
||||
android:screenOrientation="portrait" />
|
||||
<activity
|
||||
android:name=".ui.traceability.TraceabilityManagementActivity"
|
||||
android:configChanges="orientation|screenSize|keyboardHidden"
|
||||
android:exported="false"
|
||||
android:screenOrientation="portrait" />
|
||||
<activity
|
||||
android:name=".ui.traceability.JianceShenqingShenheActivity"
|
||||
android:configChanges="orientation|screenSize|keyboardHidden"
|
||||
android:exported="false"
|
||||
android:screenOrientation="portrait" />
|
||||
<activity
|
||||
android:name=".ui.traceability.JianceShenqingShenheDetailActivity"
|
||||
android:configChanges="orientation|screenSize|keyboardHidden"
|
||||
android:exported="false"
|
||||
android:screenOrientation="portrait" />
|
||||
<activity
|
||||
android:name=".ui.traceability.SuyuanJianceActivity"
|
||||
android:configChanges="orientation|screenSize|keyboardHidden"
|
||||
android:exported="false"
|
||||
android:screenOrientation="portrait" />
|
||||
<activity
|
||||
android:name=".ui.traceability.AddSuyuanJianceActivity"
|
||||
android:configChanges="orientation|screenSize|keyboardHidden"
|
||||
android:exported="false"
|
||||
android:screenOrientation="portrait" />
|
||||
<activity
|
||||
android:name=".ui.traceability.SuyuanJianceDetailActivity"
|
||||
android:configChanges="orientation|screenSize|keyboardHidden"
|
||||
android:exported="false"
|
||||
android:screenOrientation="portrait" />
|
||||
<activity
|
||||
android:name=".ui.traceability.SuyuanReportActivity"
|
||||
android:configChanges="orientation|screenSize|keyboardHidden"
|
||||
android:exported="false"
|
||||
android:screenOrientation="portrait" />
|
||||
<activity
|
||||
android:name=".ui.traceability.SuyuanReportDetailActivity"
|
||||
android:configChanges="orientation|screenSize|keyboardHidden"
|
||||
android:exported="false"
|
||||
android:screenOrientation="portrait" />
|
||||
<activity
|
||||
android:name=".ui.traceability.CaishouYuFumaActivity"
|
||||
android:configChanges="orientation|screenSize|keyboardHidden"
|
||||
android:exported="true"
|
||||
android:screenOrientation="portrait" />
|
||||
<activity
|
||||
android:name=".ui.traceability.CaishouYuFumaDetailActivity"
|
||||
android:configChanges="orientation|screenSize|keyboardHidden"
|
||||
android:exported="true"
|
||||
android:screenOrientation="portrait" />
|
||||
<activity
|
||||
android:name=".ui.traceability.AddCaishouYuFumaActivity"
|
||||
android:configChanges="orientation|screenSize|keyboardHidden"
|
||||
android:exported="true"
|
||||
android:screenOrientation="portrait" />
|
||||
<activity
|
||||
android:name=".ui.traceability.SuyuanSearchActivity"
|
||||
android:configChanges="orientation|screenSize|keyboardHidden"
|
||||
android:exported="true"
|
||||
android:screenOrientation="portrait" />
|
||||
<activity
|
||||
android:name=".ui.traceability.SuyuanHomeActivity"
|
||||
android:configChanges="orientation|screenSize|keyboardHidden"
|
||||
android:exported="true"
|
||||
android:screenOrientation="portrait" />
|
||||
<activity
|
||||
android:name=".ui.traceability.SuyuanResultActivity"
|
||||
android:configChanges="orientation|screenSize|keyboardHidden"
|
||||
android:exported="true"
|
||||
android:screenOrientation="portrait" />
|
||||
<activity
|
||||
android:name=".ui.traceability.SuyuanJianceReportActivity"
|
||||
android:configChanges="orientation|screenSize|keyboardHidden"
|
||||
android:exported="true"
|
||||
android:screenOrientation="portrait" />
|
||||
<activity
|
||||
android:name=".ui.traceability.SuyuanResultPersonZhutiActivity"
|
||||
android:configChanges="orientation|screenSize|keyboardHidden"
|
||||
android:exported="true"
|
||||
android:screenOrientation="portrait" />
|
||||
<activity
|
||||
android:name=".ui.traceability.SuyuanResultCompanyZhutiActivity"
|
||||
android:configChanges="orientation|screenSize|keyboardHidden"
|
||||
android:exported="true"
|
||||
android:screenOrientation="portrait" />
|
||||
<activity
|
||||
android:name=".ui.traceability.SuyuanResultNongshiHuodongActivity"
|
||||
android:configChanges="orientation|screenSize|keyboardHidden"
|
||||
android:exported="true"
|
||||
android:screenOrientation="portrait" />
|
||||
<activity
|
||||
android:name=".ui.traceability.SuyuanResultQukuailianActivity"
|
||||
android:configChanges="orientation|screenSize|keyboardHidden"
|
||||
android:exported="true"
|
||||
android:screenOrientation="portrait" />
|
||||
|
||||
<activity
|
||||
android:name=".ui.photoview.PhotoViewActivty"
|
||||
|
@ -18,6 +18,7 @@ import com.tairui.gov_affairs_cloud.ui.input.InputGoodsListActivity;
|
||||
import com.tairui.gov_affairs_cloud.ui.land.LandActivity;
|
||||
import com.tairui.gov_affairs_cloud.ui.my.entity.UserInfoEntity;
|
||||
import com.tairui.gov_affairs_cloud.ui.nyscjyzt.BusinessManagementActivity;
|
||||
import com.tairui.gov_affairs_cloud.ui.traceability.SuyuanHomeActivity;
|
||||
import com.tairui.gov_affairs_cloud.util.DensityUtils;
|
||||
import com.tairui.gov_affairs_cloud.util.IntentUtil;
|
||||
import com.tairui.gov_affairs_cloud.util.glide.GlideLoader;
|
||||
@ -88,6 +89,8 @@ public class HomeFragment extends BaseFragment<FragmentHomeBinding> {
|
||||
IntentUtil.startActivity(mContext, InputGoodsListActivity.class);
|
||||
} else if (i == 3) {
|
||||
IntentUtil.startActivity(mContext, BusinessManagementActivity.class);
|
||||
} else if (i == 0) {
|
||||
IntentUtil.startActivity(mContext, SuyuanHomeActivity.class);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
@ -0,0 +1,30 @@
|
||||
package com.tairui.gov_affairs_cloud.ui.traceability;
|
||||
|
||||
import com.tairui.gov_affairs_cloud.base.BaseActivity;
|
||||
import com.tairui.gov_affairs_cloud.databinding.ActivityCaishoufumaAddBinding;
|
||||
import com.tairui.gov_affairs_cloud.util.SingleClickListener;
|
||||
|
||||
import android.view.View;
|
||||
|
||||
public class AddCaishouYuFumaActivity extends BaseActivity<ActivityCaishoufumaAddBinding> {
|
||||
|
||||
@Override
|
||||
protected Class<ActivityCaishoufumaAddBinding> getBindingClass() {
|
||||
return ActivityCaishoufumaAddBinding.class;
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void onQueryArguments() {
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void onBindListener() {
|
||||
binding.btnBack.setOnClickListener(new SingleClickListener() {
|
||||
@Override
|
||||
protected void onSingleClick(View v) {
|
||||
finish();
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
}
|
@ -0,0 +1,33 @@
|
||||
package com.tairui.gov_affairs_cloud.ui.traceability;
|
||||
|
||||
import com.tairui.gov_affairs_cloud.base.BaseActivity;
|
||||
import com.tairui.gov_affairs_cloud.databinding.ActivitySuyuanjianceAddBinding;
|
||||
import com.tairui.gov_affairs_cloud.util.SingleClickListener;
|
||||
|
||||
import android.view.View;
|
||||
|
||||
/**
|
||||
* 企业管理
|
||||
*/
|
||||
public class AddSuyuanJianceActivity extends BaseActivity<ActivitySuyuanjianceAddBinding> {
|
||||
|
||||
@Override
|
||||
protected Class<ActivitySuyuanjianceAddBinding> getBindingClass() {
|
||||
return ActivitySuyuanjianceAddBinding.class;
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void onQueryArguments() {
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void onBindListener() {
|
||||
binding.btnBack.setOnClickListener(new SingleClickListener() {
|
||||
@Override
|
||||
protected void onSingleClick(View v) {
|
||||
finish();
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
}
|
@ -0,0 +1,82 @@
|
||||
package com.tairui.gov_affairs_cloud.ui.traceability;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
import com.chad.library.adapter.base.BaseQuickAdapter;
|
||||
import com.chad.library.adapter.base.BaseViewHolder;
|
||||
import com.tairui.gov_affairs_cloud.R;
|
||||
import com.tairui.gov_affairs_cloud.base.BaseActivity;
|
||||
import com.tairui.gov_affairs_cloud.databinding.ActivityCaishouyufumaListBinding;
|
||||
import com.tairui.gov_affairs_cloud.util.AppUtil;
|
||||
import com.tairui.gov_affairs_cloud.util.IntentUtil;
|
||||
import com.tairui.gov_affairs_cloud.util.SingleClickListener;
|
||||
|
||||
import android.os.Bundle;
|
||||
import android.view.View;
|
||||
import androidx.annotation.NonNull;
|
||||
import androidx.recyclerview.widget.LinearLayoutManager;
|
||||
|
||||
/**
|
||||
* 检测申请检查
|
||||
*/
|
||||
public class CaishouYuFumaActivity extends BaseActivity<ActivityCaishouyufumaListBinding> {
|
||||
private SuyuanJianceAdapter adapter;
|
||||
|
||||
@Override
|
||||
protected Class<ActivityCaishouyufumaListBinding> getBindingClass() {
|
||||
return ActivityCaishouyufumaListBinding.class;
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void onQueryArguments() {
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void onFindView(Bundle savedInstanceState) {
|
||||
binding.refreshRecycler.setLayoutManager(new LinearLayoutManager(mContext));
|
||||
adapter = new SuyuanJianceAdapter();
|
||||
binding.refreshRecycler.setAdapter(adapter);
|
||||
binding.refreshRecycler.setNoMoreData(true);
|
||||
binding.refreshRecycler.setEnableRefresh(false);
|
||||
binding.refreshRecycler.showContent();
|
||||
List<String> data = new ArrayList<>();
|
||||
data.add("pic_suyuan_21");
|
||||
data.add("pic_suyuan_22");
|
||||
data.add("pic_suyuan_23");
|
||||
data.add("pic_suyuan_24");
|
||||
adapter.setNewData(data);
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void onBindListener() {
|
||||
binding.btnBack.setOnClickListener(new SingleClickListener() {
|
||||
@Override
|
||||
protected void onSingleClick(View v) {
|
||||
finish();
|
||||
}
|
||||
});
|
||||
adapter.setOnItemClickListener((baseQuickAdapter, view, i) -> {
|
||||
IntentUtil.startActivity(mContext, CaishouYuFumaDetailActivity.class);
|
||||
});
|
||||
binding.btnAdd.setOnClickListener(new SingleClickListener() {
|
||||
@Override
|
||||
protected void onSingleClick(View v) {
|
||||
IntentUtil.startActivity(mContext, AddCaishouYuFumaActivity.class);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
private class SuyuanJianceAdapter extends BaseQuickAdapter<String, BaseViewHolder> {
|
||||
|
||||
public SuyuanJianceAdapter() {
|
||||
super(R.layout.item_list_caishoufuma);
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void convert(@NonNull BaseViewHolder holder, String entity) {
|
||||
holder.setImageResource(R.id.img, AppUtil.getDrawableId(entity));
|
||||
}
|
||||
|
||||
}
|
||||
}
|
@ -0,0 +1,33 @@
|
||||
package com.tairui.gov_affairs_cloud.ui.traceability;
|
||||
|
||||
import com.tairui.gov_affairs_cloud.base.BaseActivity;
|
||||
import com.tairui.gov_affairs_cloud.databinding.ActivityCaishoufumaDetailBinding;
|
||||
import com.tairui.gov_affairs_cloud.util.SingleClickListener;
|
||||
|
||||
import android.view.View;
|
||||
|
||||
/**
|
||||
* 企业管理
|
||||
*/
|
||||
public class CaishouYuFumaDetailActivity extends BaseActivity<ActivityCaishoufumaDetailBinding> {
|
||||
|
||||
@Override
|
||||
protected Class<ActivityCaishoufumaDetailBinding> getBindingClass() {
|
||||
return ActivityCaishoufumaDetailBinding.class;
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void onQueryArguments() {
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void onBindListener() {
|
||||
binding.btnBack.setOnClickListener(new SingleClickListener() {
|
||||
@Override
|
||||
protected void onSingleClick(View v) {
|
||||
finish();
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
}
|
@ -0,0 +1,76 @@
|
||||
package com.tairui.gov_affairs_cloud.ui.traceability;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
import com.chad.library.adapter.base.BaseQuickAdapter;
|
||||
import com.chad.library.adapter.base.BaseViewHolder;
|
||||
import com.tairui.gov_affairs_cloud.R;
|
||||
import com.tairui.gov_affairs_cloud.base.BaseActivity;
|
||||
import com.tairui.gov_affairs_cloud.databinding.ActivityJianceshenqingshenheListBinding;
|
||||
import com.tairui.gov_affairs_cloud.util.AppUtil;
|
||||
import com.tairui.gov_affairs_cloud.util.IntentUtil;
|
||||
import com.tairui.gov_affairs_cloud.util.SingleClickListener;
|
||||
|
||||
import android.os.Bundle;
|
||||
import android.view.View;
|
||||
import androidx.annotation.NonNull;
|
||||
import androidx.recyclerview.widget.LinearLayoutManager;
|
||||
|
||||
/**
|
||||
* 检测申请检查
|
||||
*/
|
||||
public class JianceShenqingShenheActivity extends BaseActivity<ActivityJianceshenqingshenheListBinding> {
|
||||
private JianceShenqingShenheAdapter adapter;
|
||||
|
||||
@Override
|
||||
protected Class<ActivityJianceshenqingshenheListBinding> getBindingClass() {
|
||||
return ActivityJianceshenqingshenheListBinding.class;
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void onQueryArguments() {
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void onFindView(Bundle savedInstanceState) {
|
||||
binding.refreshRecycler.setLayoutManager(new LinearLayoutManager(mContext));
|
||||
adapter = new JianceShenqingShenheAdapter();
|
||||
binding.refreshRecycler.setAdapter(adapter);
|
||||
binding.refreshRecycler.setNoMoreData(true);
|
||||
binding.refreshRecycler.setEnableRefresh(false);
|
||||
binding.refreshRecycler.showContent();
|
||||
List<String> data = new ArrayList<>();
|
||||
data.add("pic_suyuan_6");
|
||||
data.add("pic_suyuan_7");
|
||||
data.add("pic_suyuan_8");
|
||||
data.add("pic_suyuan_9");
|
||||
adapter.setNewData(data);
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void onBindListener() {
|
||||
binding.btnBack.setOnClickListener(new SingleClickListener() {
|
||||
@Override
|
||||
protected void onSingleClick(View v) {
|
||||
finish();
|
||||
}
|
||||
});
|
||||
adapter.setOnItemClickListener((baseQuickAdapter, view, i) -> {
|
||||
IntentUtil.startActivity(mContext, JianceShenqingShenheDetailActivity.class);
|
||||
});
|
||||
}
|
||||
|
||||
private class JianceShenqingShenheAdapter extends BaseQuickAdapter<String, BaseViewHolder> {
|
||||
|
||||
public JianceShenqingShenheAdapter() {
|
||||
super(R.layout.item_list_jianceshenqingshenhe);
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void convert(@NonNull BaseViewHolder holder, String entity) {
|
||||
holder.setImageResource(R.id.img, AppUtil.getDrawableId(entity));
|
||||
}
|
||||
|
||||
}
|
||||
}
|
@ -0,0 +1,33 @@
|
||||
package com.tairui.gov_affairs_cloud.ui.traceability;
|
||||
|
||||
import com.tairui.gov_affairs_cloud.base.BaseActivity;
|
||||
import com.tairui.gov_affairs_cloud.databinding.ActivityJianceshenqingshenheDetailBinding;
|
||||
import com.tairui.gov_affairs_cloud.util.SingleClickListener;
|
||||
|
||||
import android.view.View;
|
||||
|
||||
/**
|
||||
* 企业管理
|
||||
*/
|
||||
public class JianceShenqingShenheDetailActivity extends BaseActivity<ActivityJianceshenqingshenheDetailBinding> {
|
||||
|
||||
@Override
|
||||
protected Class<ActivityJianceshenqingshenheDetailBinding> getBindingClass() {
|
||||
return ActivityJianceshenqingshenheDetailBinding.class;
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void onQueryArguments() {
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void onBindListener() {
|
||||
binding.btnBack.setOnClickListener(new SingleClickListener() {
|
||||
@Override
|
||||
protected void onSingleClick(View v) {
|
||||
finish();
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
}
|
@ -0,0 +1,186 @@
|
||||
package com.tairui.gov_affairs_cloud.ui.traceability;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
import com.chad.library.adapter.base.BaseQuickAdapter;
|
||||
import com.chad.library.adapter.base.BaseViewHolder;
|
||||
import com.gyf.immersionbar.ImmersionBar;
|
||||
import com.tairui.gov_affairs_cloud.R;
|
||||
import com.tairui.gov_affairs_cloud.base.BaseActivity;
|
||||
import com.tairui.gov_affairs_cloud.databinding.ActivitySuyuanHomeBinding;
|
||||
import com.tairui.gov_affairs_cloud.ui.workspace.entity.WorkSpaceEntity;
|
||||
import com.tairui.gov_affairs_cloud.util.IntentUtil;
|
||||
import com.tairui.gov_affairs_cloud.util.SingleClickListener;
|
||||
|
||||
import android.os.Bundle;
|
||||
import android.view.View;
|
||||
import androidx.annotation.NonNull;
|
||||
import androidx.recyclerview.widget.GridLayoutManager;
|
||||
import androidx.recyclerview.widget.LinearLayoutManager;
|
||||
import androidx.recyclerview.widget.RecyclerView;
|
||||
|
||||
public class SuyuanHomeActivity extends BaseActivity<ActivitySuyuanHomeBinding> {
|
||||
|
||||
private SuyuanHomeAdapter suyuanHomeAdapter;
|
||||
|
||||
@Override
|
||||
protected Class<ActivitySuyuanHomeBinding> getBindingClass() {
|
||||
return ActivitySuyuanHomeBinding.class;
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void initStatusBar() {
|
||||
ImmersionBar.with(SuyuanHomeActivity.this).fitsSystemWindows(false).transparentStatusBar()
|
||||
.statusBarDarkFont(true).init();
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void onBindListener() {
|
||||
binding.btnBack.setOnClickListener(new SingleClickListener() {
|
||||
@Override
|
||||
protected void onSingleClick(View v) {
|
||||
finish();
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void onFindView(Bundle savedInstanceState) {
|
||||
binding.recycleView.setLayoutManager(new LinearLayoutManager(mContext));
|
||||
suyuanHomeAdapter = new SuyuanHomeAdapter();
|
||||
binding.recycleView.setAdapter(suyuanHomeAdapter);
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void onApplyData() {
|
||||
List<WorkSpaceEntity> data = mockData();
|
||||
suyuanHomeAdapter.setNewData(data);
|
||||
}
|
||||
|
||||
private class SuyuanHomeAdapter extends BaseQuickAdapter<WorkSpaceEntity, BaseViewHolder> {
|
||||
|
||||
public SuyuanHomeAdapter() {
|
||||
super(R.layout.item_workspace_layout);
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void convert(@NonNull BaseViewHolder holder, WorkSpaceEntity entity) {
|
||||
holder.setText(R.id.tvTitle, entity.getName());
|
||||
RecyclerView itemRecycler = holder.getView(R.id.itemRecycleView);
|
||||
itemRecycler.setLayoutManager(new GridLayoutManager(mContext, 4));
|
||||
FuncAdapter funcAdapter = new FuncAdapter();
|
||||
funcAdapter.setNewData(entity.getFuncs());
|
||||
itemRecycler.setAdapter(funcAdapter);
|
||||
|
||||
funcAdapter.setOnItemClickListener((baseQuickAdapter, view, i) -> {
|
||||
WorkSpaceEntity.FuncsEntity itemEntity = entity.getFuncs().get(i);
|
||||
int _id = itemEntity.getId();
|
||||
if (_id == 7) {
|
||||
IntentUtil.startActivity(mContext, CaishouYuFumaActivity.class);
|
||||
} else if (_id == 9) {
|
||||
IntentUtil.startActivity(mContext, SuyuanSearchActivity.class);
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
private class FuncAdapter extends BaseQuickAdapter<WorkSpaceEntity.FuncsEntity, BaseViewHolder> {
|
||||
|
||||
public FuncAdapter() {
|
||||
super(R.layout.item_workspace_item_layout);
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void convert(@NonNull BaseViewHolder holder, WorkSpaceEntity.FuncsEntity entity) {
|
||||
holder.setText(R.id.funcTv, entity.getName());
|
||||
holder.setImageResource(R.id.funcIv, entity.getIcon());
|
||||
}
|
||||
}
|
||||
|
||||
private List<WorkSpaceEntity> mockData() {
|
||||
List<WorkSpaceEntity> workSpaceEntities = new ArrayList<>();
|
||||
WorkSpaceEntity item = new WorkSpaceEntity();
|
||||
item.setName("种养殖档案");
|
||||
List<WorkSpaceEntity.FuncsEntity> funcs = new ArrayList<>();
|
||||
WorkSpaceEntity.FuncsEntity itemFunc = new WorkSpaceEntity.FuncsEntity();
|
||||
itemFunc.setId(1);
|
||||
itemFunc.setName("经营主体");
|
||||
itemFunc.setIcon(R.mipmap.ic_suyuan_func_1);
|
||||
funcs.add(itemFunc);
|
||||
|
||||
itemFunc = new WorkSpaceEntity.FuncsEntity();
|
||||
itemFunc.setId(2);
|
||||
itemFunc.setName("基地");
|
||||
itemFunc.setIcon(R.mipmap.ic_suyuan_func_2);
|
||||
funcs.add(itemFunc);
|
||||
|
||||
itemFunc = new WorkSpaceEntity.FuncsEntity();
|
||||
itemFunc.setId(3);
|
||||
itemFunc.setName("投入品");
|
||||
itemFunc.setIcon(R.mipmap.ic_suyuan_func_3);
|
||||
funcs.add(itemFunc);
|
||||
|
||||
itemFunc = new WorkSpaceEntity.FuncsEntity();
|
||||
itemFunc.setId(4);
|
||||
itemFunc.setName("种源");
|
||||
itemFunc.setIcon(R.mipmap.ic_suyuan_func_4);
|
||||
funcs.add(itemFunc);
|
||||
|
||||
item.setFuncs(funcs);
|
||||
workSpaceEntities.add(item);
|
||||
|
||||
item = new WorkSpaceEntity();
|
||||
item.setName("农事管理");
|
||||
funcs = new ArrayList<>();
|
||||
|
||||
itemFunc = new WorkSpaceEntity.FuncsEntity();
|
||||
itemFunc.setId(5);
|
||||
itemFunc.setName("种植批次");
|
||||
itemFunc.setIcon(R.mipmap.ic_suyuan_func_5);
|
||||
funcs.add(itemFunc);
|
||||
|
||||
itemFunc = new WorkSpaceEntity.FuncsEntity();
|
||||
itemFunc.setId(6);
|
||||
itemFunc.setName("农事活动");
|
||||
itemFunc.setIcon(R.mipmap.ic_suyuan_func_6);
|
||||
funcs.add(itemFunc);
|
||||
|
||||
itemFunc = new WorkSpaceEntity.FuncsEntity();
|
||||
itemFunc.setId(7);
|
||||
itemFunc.setName("采收与赋码");
|
||||
itemFunc.setIcon(R.mipmap.ic_suyuan_func_7);
|
||||
funcs.add(itemFunc);
|
||||
|
||||
itemFunc = new WorkSpaceEntity.FuncsEntity();
|
||||
itemFunc.setId(8);
|
||||
itemFunc.setName("产品质检");
|
||||
itemFunc.setIcon(R.mipmap.ic_suyuan_func_8);
|
||||
funcs.add(itemFunc);
|
||||
|
||||
item.setFuncs(funcs);
|
||||
workSpaceEntities.add(item);
|
||||
|
||||
item = new WorkSpaceEntity();
|
||||
item.setName("溯源查询与统计");
|
||||
funcs = new ArrayList<>();
|
||||
|
||||
itemFunc = new WorkSpaceEntity.FuncsEntity();
|
||||
itemFunc.setId(9);
|
||||
itemFunc.setName("溯源查询");
|
||||
itemFunc.setIcon(R.mipmap.ic_suyuan_func_9);
|
||||
funcs.add(itemFunc);
|
||||
|
||||
itemFunc = new WorkSpaceEntity.FuncsEntity();
|
||||
itemFunc.setId(10);
|
||||
itemFunc.setName("溯源统计");
|
||||
itemFunc.setIcon(R.mipmap.ic_suyuan_func_10);
|
||||
funcs.add(itemFunc);
|
||||
|
||||
item.setFuncs(funcs);
|
||||
workSpaceEntities.add(item);
|
||||
|
||||
return workSpaceEntities;
|
||||
}
|
||||
|
||||
}
|
@ -0,0 +1,81 @@
|
||||
package com.tairui.gov_affairs_cloud.ui.traceability;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
import com.chad.library.adapter.base.BaseQuickAdapter;
|
||||
import com.chad.library.adapter.base.BaseViewHolder;
|
||||
import com.tairui.gov_affairs_cloud.R;
|
||||
import com.tairui.gov_affairs_cloud.base.BaseActivity;
|
||||
import com.tairui.gov_affairs_cloud.databinding.ActivitySuyuanjianceListBinding;
|
||||
import com.tairui.gov_affairs_cloud.util.AppUtil;
|
||||
import com.tairui.gov_affairs_cloud.util.IntentUtil;
|
||||
import com.tairui.gov_affairs_cloud.util.SingleClickListener;
|
||||
|
||||
import android.os.Bundle;
|
||||
import android.view.View;
|
||||
import androidx.annotation.NonNull;
|
||||
import androidx.recyclerview.widget.LinearLayoutManager;
|
||||
|
||||
/**
|
||||
* 检测申请检查
|
||||
*/
|
||||
public class SuyuanJianceActivity extends BaseActivity<ActivitySuyuanjianceListBinding> {
|
||||
private SuyuanJianceAdapter adapter;
|
||||
|
||||
@Override
|
||||
protected Class<ActivitySuyuanjianceListBinding> getBindingClass() {
|
||||
return ActivitySuyuanjianceListBinding.class;
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void onQueryArguments() {
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void onFindView(Bundle savedInstanceState) {
|
||||
binding.refreshRecycler.setLayoutManager(new LinearLayoutManager(mContext));
|
||||
adapter = new SuyuanJianceAdapter();
|
||||
binding.refreshRecycler.setAdapter(adapter);
|
||||
binding.refreshRecycler.setNoMoreData(true);
|
||||
binding.refreshRecycler.setEnableRefresh(false);
|
||||
binding.refreshRecycler.showContent();
|
||||
List<String> data = new ArrayList<>();
|
||||
data.add("pic_suyuan_13");
|
||||
data.add("pic_suyuan_14");
|
||||
data.add("pic_suyuan_15");
|
||||
adapter.setNewData(data);
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void onBindListener() {
|
||||
binding.btnBack.setOnClickListener(new SingleClickListener() {
|
||||
@Override
|
||||
protected void onSingleClick(View v) {
|
||||
finish();
|
||||
}
|
||||
});
|
||||
adapter.setOnItemClickListener((baseQuickAdapter, view, i) -> {
|
||||
IntentUtil.startActivity(mContext, SuyuanJianceDetailActivity.class);
|
||||
});
|
||||
binding.btnAdd.setOnClickListener(new SingleClickListener() {
|
||||
@Override
|
||||
protected void onSingleClick(View v) {
|
||||
IntentUtil.startActivity(mContext, AddSuyuanJianceActivity.class);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
private class SuyuanJianceAdapter extends BaseQuickAdapter<String, BaseViewHolder> {
|
||||
|
||||
public SuyuanJianceAdapter() {
|
||||
super(R.layout.item_list_suyuanjiance);
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void convert(@NonNull BaseViewHolder holder, String entity) {
|
||||
holder.setImageResource(R.id.img, AppUtil.getDrawableId(entity));
|
||||
}
|
||||
|
||||
}
|
||||
}
|
@ -0,0 +1,33 @@
|
||||
package com.tairui.gov_affairs_cloud.ui.traceability;
|
||||
|
||||
import com.tairui.gov_affairs_cloud.base.BaseActivity;
|
||||
import com.tairui.gov_affairs_cloud.databinding.ActivitySuyuanjianceDetailBinding;
|
||||
import com.tairui.gov_affairs_cloud.util.SingleClickListener;
|
||||
|
||||
import android.view.View;
|
||||
|
||||
/**
|
||||
* 企业管理
|
||||
*/
|
||||
public class SuyuanJianceDetailActivity extends BaseActivity<ActivitySuyuanjianceDetailBinding> {
|
||||
|
||||
@Override
|
||||
protected Class<ActivitySuyuanjianceDetailBinding> getBindingClass() {
|
||||
return ActivitySuyuanjianceDetailBinding.class;
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void onQueryArguments() {
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void onBindListener() {
|
||||
binding.btnBack.setOnClickListener(new SingleClickListener() {
|
||||
@Override
|
||||
protected void onSingleClick(View v) {
|
||||
finish();
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
}
|
@ -0,0 +1,30 @@
|
||||
package com.tairui.gov_affairs_cloud.ui.traceability;
|
||||
|
||||
import com.tairui.gov_affairs_cloud.base.BaseActivity;
|
||||
import com.tairui.gov_affairs_cloud.databinding.ActivitySuyuanJianceReportBinding;
|
||||
import com.tairui.gov_affairs_cloud.util.SingleClickListener;
|
||||
|
||||
import android.view.View;
|
||||
|
||||
public class SuyuanJianceReportActivity extends BaseActivity<ActivitySuyuanJianceReportBinding> {
|
||||
|
||||
@Override
|
||||
protected Class<ActivitySuyuanJianceReportBinding> getBindingClass() {
|
||||
return ActivitySuyuanJianceReportBinding.class;
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void onQueryArguments() {
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void onBindListener() {
|
||||
binding.btnBack.setOnClickListener(new SingleClickListener() {
|
||||
@Override
|
||||
protected void onSingleClick(View v) {
|
||||
finish();
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
}
|
@ -0,0 +1,77 @@
|
||||
package com.tairui.gov_affairs_cloud.ui.traceability;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
import com.chad.library.adapter.base.BaseQuickAdapter;
|
||||
import com.chad.library.adapter.base.BaseViewHolder;
|
||||
import com.tairui.gov_affairs_cloud.R;
|
||||
import com.tairui.gov_affairs_cloud.base.BaseActivity;
|
||||
import com.tairui.gov_affairs_cloud.databinding.ActivitySuyuanReportListBinding;
|
||||
import com.tairui.gov_affairs_cloud.util.AppUtil;
|
||||
import com.tairui.gov_affairs_cloud.util.IntentUtil;
|
||||
import com.tairui.gov_affairs_cloud.util.SingleClickListener;
|
||||
|
||||
import android.os.Bundle;
|
||||
import android.view.View;
|
||||
import androidx.annotation.NonNull;
|
||||
import androidx.recyclerview.widget.LinearLayoutManager;
|
||||
|
||||
/**
|
||||
* 溯源报告
|
||||
*/
|
||||
public class SuyuanReportActivity extends BaseActivity<ActivitySuyuanReportListBinding> {
|
||||
private SuyuanReportAdapter adapter;
|
||||
|
||||
@Override
|
||||
protected Class<ActivitySuyuanReportListBinding> getBindingClass() {
|
||||
return ActivitySuyuanReportListBinding.class;
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void onQueryArguments() {
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void onFindView(Bundle savedInstanceState) {
|
||||
binding.refreshRecycler.setLayoutManager(new LinearLayoutManager(mContext));
|
||||
adapter = new SuyuanReportAdapter();
|
||||
binding.refreshRecycler.setAdapter(adapter);
|
||||
binding.refreshRecycler.setNoMoreData(true);
|
||||
binding.refreshRecycler.setEnableRefresh(false);
|
||||
binding.refreshRecycler.showContent();
|
||||
List<String> data = new ArrayList<>();
|
||||
data.add("pic_suyuan_19");
|
||||
data.add("pic_suyuan_19");
|
||||
data.add("pic_suyuan_19");
|
||||
data.add("pic_suyuan_19");
|
||||
data.add("pic_suyuan_19");
|
||||
adapter.setNewData(data);
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void onBindListener() {
|
||||
binding.btnBack.setOnClickListener(new SingleClickListener() {
|
||||
@Override
|
||||
protected void onSingleClick(View v) {
|
||||
finish();
|
||||
}
|
||||
});
|
||||
adapter.setOnItemClickListener((baseQuickAdapter, view, i) -> {
|
||||
IntentUtil.startActivity(mContext, SuyuanReportDetailActivity.class);
|
||||
});
|
||||
}
|
||||
|
||||
private class SuyuanReportAdapter extends BaseQuickAdapter<String, BaseViewHolder> {
|
||||
|
||||
public SuyuanReportAdapter() {
|
||||
super(R.layout.item_list_suyuan_report);
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void convert(@NonNull BaseViewHolder holder, String entity) {
|
||||
holder.setImageResource(R.id.img, AppUtil.getDrawableId(entity));
|
||||
}
|
||||
|
||||
}
|
||||
}
|
@ -0,0 +1,33 @@
|
||||
package com.tairui.gov_affairs_cloud.ui.traceability;
|
||||
|
||||
import com.tairui.gov_affairs_cloud.base.BaseActivity;
|
||||
import com.tairui.gov_affairs_cloud.databinding.ActivitySuyuanReportDetailBinding;
|
||||
import com.tairui.gov_affairs_cloud.util.SingleClickListener;
|
||||
|
||||
import android.view.View;
|
||||
|
||||
/**
|
||||
* 企业管理
|
||||
*/
|
||||
public class SuyuanReportDetailActivity extends BaseActivity<ActivitySuyuanReportDetailBinding> {
|
||||
|
||||
@Override
|
||||
protected Class<ActivitySuyuanReportDetailBinding> getBindingClass() {
|
||||
return ActivitySuyuanReportDetailBinding.class;
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void onQueryArguments() {
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void onBindListener() {
|
||||
binding.btnBack.setOnClickListener(new SingleClickListener() {
|
||||
@Override
|
||||
protected void onSingleClick(View v) {
|
||||
finish();
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
}
|
@ -0,0 +1,63 @@
|
||||
package com.tairui.gov_affairs_cloud.ui.traceability;
|
||||
|
||||
import java.util.Random;
|
||||
|
||||
import com.tairui.gov_affairs_cloud.base.BaseActivity;
|
||||
import com.tairui.gov_affairs_cloud.databinding.ActivitySuyuanResultBinding;
|
||||
import com.tairui.gov_affairs_cloud.util.IntentUtil;
|
||||
import com.tairui.gov_affairs_cloud.util.SingleClickListener;
|
||||
|
||||
import android.view.View;
|
||||
|
||||
public class SuyuanResultActivity extends BaseActivity<ActivitySuyuanResultBinding> {
|
||||
|
||||
@Override
|
||||
protected Class<ActivitySuyuanResultBinding> getBindingClass() {
|
||||
return ActivitySuyuanResultBinding.class;
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void onQueryArguments() {
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void onBindListener() {
|
||||
binding.btnBack.setOnClickListener(new SingleClickListener() {
|
||||
@Override
|
||||
protected void onSingleClick(View v) {
|
||||
finish();
|
||||
}
|
||||
});
|
||||
binding.jiancebaogao.setOnClickListener(new SingleClickListener() {
|
||||
@Override
|
||||
protected void onSingleClick(View v) {
|
||||
IntentUtil.startActivity(mContext, SuyuanJianceReportActivity.class);
|
||||
}
|
||||
});
|
||||
binding.jingyingzhuti.setOnClickListener(new SingleClickListener() {
|
||||
@Override
|
||||
protected void onSingleClick(View v) {
|
||||
Random random = new Random();
|
||||
int index = random.nextInt(10);
|
||||
if (index % 2 == 0) {
|
||||
IntentUtil.startActivity(mContext, SuyuanResultPersonZhutiActivity.class);
|
||||
} else {
|
||||
IntentUtil.startActivity(mContext, SuyuanResultCompanyZhutiActivity.class);
|
||||
}
|
||||
}
|
||||
});
|
||||
binding.nongshihuodong.setOnClickListener(new SingleClickListener() {
|
||||
@Override
|
||||
protected void onSingleClick(View v) {
|
||||
IntentUtil.startActivity(mContext, SuyuanResultNongshiHuodongActivity.class);
|
||||
}
|
||||
});
|
||||
binding.qukuailianrenzheng.setOnClickListener(new SingleClickListener() {
|
||||
@Override
|
||||
protected void onSingleClick(View v) {
|
||||
IntentUtil.startActivity(mContext, SuyuanResultQukuailianActivity.class);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
}
|
@ -0,0 +1,30 @@
|
||||
package com.tairui.gov_affairs_cloud.ui.traceability;
|
||||
|
||||
import com.tairui.gov_affairs_cloud.base.BaseActivity;
|
||||
import com.tairui.gov_affairs_cloud.databinding.ActivitySuyuanResultCompanyZhutiBinding;
|
||||
import com.tairui.gov_affairs_cloud.util.SingleClickListener;
|
||||
|
||||
import android.view.View;
|
||||
|
||||
public class SuyuanResultCompanyZhutiActivity extends BaseActivity<ActivitySuyuanResultCompanyZhutiBinding> {
|
||||
|
||||
@Override
|
||||
protected Class<ActivitySuyuanResultCompanyZhutiBinding> getBindingClass() {
|
||||
return ActivitySuyuanResultCompanyZhutiBinding.class;
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void onQueryArguments() {
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void onBindListener() {
|
||||
binding.btnBack.setOnClickListener(new SingleClickListener() {
|
||||
@Override
|
||||
protected void onSingleClick(View v) {
|
||||
finish();
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
}
|
@ -0,0 +1,30 @@
|
||||
package com.tairui.gov_affairs_cloud.ui.traceability;
|
||||
|
||||
import com.tairui.gov_affairs_cloud.base.BaseActivity;
|
||||
import com.tairui.gov_affairs_cloud.databinding.ActivitySuyuanResultNongshiHuodongBinding;
|
||||
import com.tairui.gov_affairs_cloud.util.SingleClickListener;
|
||||
|
||||
import android.view.View;
|
||||
|
||||
public class SuyuanResultNongshiHuodongActivity extends BaseActivity<ActivitySuyuanResultNongshiHuodongBinding> {
|
||||
|
||||
@Override
|
||||
protected Class<ActivitySuyuanResultNongshiHuodongBinding> getBindingClass() {
|
||||
return ActivitySuyuanResultNongshiHuodongBinding.class;
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void onQueryArguments() {
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void onBindListener() {
|
||||
binding.btnBack.setOnClickListener(new SingleClickListener() {
|
||||
@Override
|
||||
protected void onSingleClick(View v) {
|
||||
finish();
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
}
|
@ -0,0 +1,30 @@
|
||||
package com.tairui.gov_affairs_cloud.ui.traceability;
|
||||
|
||||
import com.tairui.gov_affairs_cloud.base.BaseActivity;
|
||||
import com.tairui.gov_affairs_cloud.databinding.ActivitySuyuanResultPersonZhutiBinding;
|
||||
import com.tairui.gov_affairs_cloud.util.SingleClickListener;
|
||||
|
||||
import android.view.View;
|
||||
|
||||
public class SuyuanResultPersonZhutiActivity extends BaseActivity<ActivitySuyuanResultPersonZhutiBinding> {
|
||||
|
||||
@Override
|
||||
protected Class<ActivitySuyuanResultPersonZhutiBinding> getBindingClass() {
|
||||
return ActivitySuyuanResultPersonZhutiBinding.class;
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void onQueryArguments() {
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void onBindListener() {
|
||||
binding.btnBack.setOnClickListener(new SingleClickListener() {
|
||||
@Override
|
||||
protected void onSingleClick(View v) {
|
||||
finish();
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
}
|
@ -0,0 +1,30 @@
|
||||
package com.tairui.gov_affairs_cloud.ui.traceability;
|
||||
|
||||
import com.tairui.gov_affairs_cloud.base.BaseActivity;
|
||||
import com.tairui.gov_affairs_cloud.databinding.ActivitySuyuanResultQukuailianBinding;
|
||||
import com.tairui.gov_affairs_cloud.util.SingleClickListener;
|
||||
|
||||
import android.view.View;
|
||||
|
||||
public class SuyuanResultQukuailianActivity extends BaseActivity<ActivitySuyuanResultQukuailianBinding> {
|
||||
|
||||
@Override
|
||||
protected Class<ActivitySuyuanResultQukuailianBinding> getBindingClass() {
|
||||
return ActivitySuyuanResultQukuailianBinding.class;
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void onQueryArguments() {
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void onBindListener() {
|
||||
binding.btnBack.setOnClickListener(new SingleClickListener() {
|
||||
@Override
|
||||
protected void onSingleClick(View v) {
|
||||
finish();
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
}
|
@ -0,0 +1,40 @@
|
||||
package com.tairui.gov_affairs_cloud.ui.traceability;
|
||||
|
||||
import com.gyf.immersionbar.ImmersionBar;
|
||||
import com.tairui.gov_affairs_cloud.base.BaseActivity;
|
||||
import com.tairui.gov_affairs_cloud.databinding.ActivitySuyuanSearchBinding;
|
||||
import com.tairui.gov_affairs_cloud.util.IntentUtil;
|
||||
import com.tairui.gov_affairs_cloud.util.SingleClickListener;
|
||||
|
||||
import android.view.View;
|
||||
|
||||
public class SuyuanSearchActivity extends BaseActivity<ActivitySuyuanSearchBinding> {
|
||||
|
||||
@Override
|
||||
protected Class<ActivitySuyuanSearchBinding> getBindingClass() {
|
||||
return ActivitySuyuanSearchBinding.class;
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void initStatusBar() {
|
||||
ImmersionBar.with(SuyuanSearchActivity.this).fitsSystemWindows(false).transparentStatusBar()
|
||||
.statusBarDarkFont(true).init();
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void onBindListener() {
|
||||
binding.btnBack.setOnClickListener(new SingleClickListener() {
|
||||
@Override
|
||||
protected void onSingleClick(View v) {
|
||||
finish();
|
||||
}
|
||||
});
|
||||
binding.suyuanResult.setOnClickListener(new SingleClickListener() {
|
||||
@Override
|
||||
protected void onSingleClick(View v) {
|
||||
IntentUtil.startActivity(mContext, SuyuanResultActivity.class);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
}
|
@ -0,0 +1,48 @@
|
||||
package com.tairui.gov_affairs_cloud.ui.traceability;
|
||||
|
||||
import com.tairui.gov_affairs_cloud.base.BaseActivity;
|
||||
import com.tairui.gov_affairs_cloud.databinding.ActivityTraceabilityManagementBinding;
|
||||
import com.tairui.gov_affairs_cloud.util.IntentUtil;
|
||||
import com.tairui.gov_affairs_cloud.util.SingleClickListener;
|
||||
|
||||
import android.view.View;
|
||||
|
||||
/**
|
||||
* 溯源管理
|
||||
*/
|
||||
public class TraceabilityManagementActivity extends BaseActivity<ActivityTraceabilityManagementBinding> {
|
||||
|
||||
@Override
|
||||
protected Class<ActivityTraceabilityManagementBinding> getBindingClass() {
|
||||
return ActivityTraceabilityManagementBinding.class;
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void onBindListener() {
|
||||
binding.btnBack.setOnClickListener(new SingleClickListener() {
|
||||
@Override
|
||||
protected void onSingleClick(View v) {
|
||||
finish();
|
||||
}
|
||||
});
|
||||
binding.jianceshenhe.setOnClickListener(new SingleClickListener() {
|
||||
@Override
|
||||
protected void onSingleClick(View v) {
|
||||
IntentUtil.startActivity(mContext, JianceShenqingShenheActivity.class);
|
||||
}
|
||||
});
|
||||
binding.layoutSuyuanJiance.setOnClickListener(new SingleClickListener() {
|
||||
@Override
|
||||
protected void onSingleClick(View v) {
|
||||
IntentUtil.startActivity(mContext, SuyuanJianceActivity.class);
|
||||
}
|
||||
});
|
||||
binding.layoutSuyuanReport.setOnClickListener(new SingleClickListener() {
|
||||
@Override
|
||||
protected void onSingleClick(View v) {
|
||||
IntentUtil.startActivity(mContext, SuyuanReportActivity.class);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
}
|
@ -18,6 +18,8 @@ import com.tairui.gov_affairs_cloud.ui.land.LandResouceInfoActivity;
|
||||
import com.tairui.gov_affairs_cloud.ui.land.PlantPlanActivity;
|
||||
import com.tairui.gov_affairs_cloud.ui.nyscjyzt.BusinessManagementActivity;
|
||||
import com.tairui.gov_affairs_cloud.ui.nyscjyzt.FarmerManagementActivity;
|
||||
import com.tairui.gov_affairs_cloud.ui.traceability.SuyuanSearchActivity;
|
||||
import com.tairui.gov_affairs_cloud.ui.traceability.TraceabilityManagementActivity;
|
||||
import com.tairui.gov_affairs_cloud.ui.workspace.entity.WorkSpaceEntity;
|
||||
import com.tairui.gov_affairs_cloud.util.IntentUtil;
|
||||
|
||||
@ -87,6 +89,10 @@ public class WorkSpaceFragment extends BaseFragment<FragmentWorkspaceBinding> {
|
||||
IntentUtil.startActivity(mContext, BusinessManagementActivity.class);
|
||||
} else if (_id == 19) {
|
||||
IntentUtil.startActivity(mContext, FarmerManagementActivity.class);
|
||||
} else if (_id == 22) {
|
||||
IntentUtil.startActivity(mContext, TraceabilityManagementActivity.class);
|
||||
} else if (_id == 23) {
|
||||
IntentUtil.startActivity(mContext, SuyuanSearchActivity.class);
|
||||
}
|
||||
});
|
||||
}
|
||||
@ -183,11 +189,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);
|
||||
|
@ -1,8 +1,10 @@
|
||||
package com.tairui.gov_affairs_cloud.util;
|
||||
|
||||
import java.lang.reflect.Field;
|
||||
import java.util.ArrayList;
|
||||
|
||||
import com.tairui.gov_affairs_cloud.BuildConfig;
|
||||
import com.tairui.gov_affairs_cloud.R;
|
||||
import com.tairui.gov_affairs_cloud.entity.Api;
|
||||
import com.tairui.gov_affairs_cloud.ui.photoview.PhotoViewActivty;
|
||||
import com.tairui.gov_affairs_cloud.widget.loading.LoadingDialog;
|
||||
@ -74,4 +76,17 @@ public class AppUtil {
|
||||
return pInfo.versionCode; // 传统方式
|
||||
}
|
||||
}
|
||||
|
||||
// 根据图片名称获取本地资源ID
|
||||
public static int getDrawableId(String imageName) {
|
||||
try {
|
||||
// 通过反射获取资源类的字段
|
||||
Field field = R.mipmap.class.getField(imageName);
|
||||
return field.getInt(null);
|
||||
} catch (NoSuchFieldException | IllegalAccessException e) {
|
||||
e.printStackTrace();
|
||||
// 若没找到资源,返回默认图片
|
||||
return R.mipmap.ic_launcher;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
10
app/src/main/res/drawable/bg_container_gray_raduis_2.xml
Normal file
@ -0,0 +1,10 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<shape xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
|
||||
<solid android:color="#A4ADB3" />
|
||||
<corners
|
||||
android:bottomLeftRadius="2dp"
|
||||
android:bottomRightRadius="2dp"
|
||||
android:topLeftRadius="2dp"
|
||||
android:topRightRadius="2dp" />
|
||||
</shape>
|
12
app/src/main/res/drawable/bg_gradient_suyuan.xml
Normal file
@ -0,0 +1,12 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<shape xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
|
||||
|
||||
<gradient
|
||||
android:angle="270"
|
||||
android:centerColor="#EEF9FF"
|
||||
android:endColor="#FFFFFF"
|
||||
android:startColor="#FFFFFF"
|
||||
android:type="linear" />
|
||||
|
||||
</shape>
|
11
app/src/main/res/drawable/bg_gradient_suyuan_home_top.xml
Normal file
@ -0,0 +1,11 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<shape xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
|
||||
|
||||
<gradient
|
||||
android:angle="270"
|
||||
android:endColor="#FFFFFF"
|
||||
android:startColor="#E9F3FF"
|
||||
android:type="linear" />
|
||||
|
||||
</shape>
|
72
app/src/main/res/layout/activity_caishoufuma_add.xml
Normal file
@ -0,0 +1,72 @@
|
||||
<?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" />
|
||||
|
||||
|
||||
</FrameLayout>
|
||||
</androidx.appcompat.widget.Toolbar>
|
||||
|
||||
<androidx.core.widget.NestedScrollView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:scrollbars="none">
|
||||
|
||||
<androidx.constraintlayout.widget.ConstraintLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="12dp"
|
||||
android:paddingLeft="16dp"
|
||||
android:paddingRight="16dp">
|
||||
|
||||
<ImageView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="0dp"
|
||||
android:src="@mipmap/pic_suyuan_26"
|
||||
app:layout_constraintDimensionRatio="344:1059"
|
||||
app:layout_constraintTop_toTopOf="parent" />
|
||||
|
||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||
|
||||
</androidx.core.widget.NestedScrollView>
|
||||
|
||||
|
||||
</LinearLayout>
|
72
app/src/main/res/layout/activity_caishoufuma_detail.xml
Normal file
@ -0,0 +1,72 @@
|
||||
<?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" />
|
||||
|
||||
|
||||
</FrameLayout>
|
||||
</androidx.appcompat.widget.Toolbar>
|
||||
|
||||
<androidx.core.widget.NestedScrollView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:scrollbars="none">
|
||||
|
||||
<androidx.constraintlayout.widget.ConstraintLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="12dp"
|
||||
android:paddingLeft="16dp"
|
||||
android:paddingRight="16dp">
|
||||
|
||||
<ImageView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="0dp"
|
||||
android:src="@mipmap/pic_suyuan_25"
|
||||
app:layout_constraintDimensionRatio="342:1337"
|
||||
app:layout_constraintTop_toTopOf="parent" />
|
||||
|
||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||
|
||||
</androidx.core.widget.NestedScrollView>
|
||||
|
||||
|
||||
</LinearLayout>
|
137
app/src/main/res/layout/activity_caishouyufuma_list.xml
Normal file
@ -0,0 +1,137 @@
|
||||
<?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>
|
||||
|
||||
|
||||
<FrameLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:paddingLeft="16dp"
|
||||
android:paddingTop="12dp"
|
||||
android:paddingRight="16dp"
|
||||
android:paddingBottom="12dp">
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="left|center_vertical"
|
||||
android:drawableRight="@mipmap/ic_arrow_down"
|
||||
android:drawablePadding="2dp"
|
||||
android:text="蔬菜"
|
||||
android:textColor="@color/color_txt_black"
|
||||
android:textSize="14sp" />
|
||||
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="right|center_vertical"
|
||||
android:drawableRight="@mipmap/ic_arrow_down"
|
||||
android:drawablePadding="2dp"
|
||||
android:text="年/月/日"
|
||||
android:textColor="@color/color_txt_black"
|
||||
android:textSize="14sp" />
|
||||
|
||||
</FrameLayout>
|
||||
|
||||
<FrameLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent">
|
||||
|
||||
<com.tairui.gov_affairs_cloud.widget.RefreshRecyclerView
|
||||
android:id="@+id/refreshRecycler"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:background="@color/color_f8f8f8" />
|
||||
|
||||
<androidx.cardview.widget.CardView
|
||||
android:id="@+id/btnAdd"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="right|bottom"
|
||||
android:layout_marginRight="16dp"
|
||||
android:layout_marginBottom="86dp"
|
||||
android:clickable="true"
|
||||
app:cardBackgroundColor="@color/white"
|
||||
app:cardCornerRadius="8dp"
|
||||
app:cardElevation="4dp"
|
||||
app:contentPadding="6dp">
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="48dp"
|
||||
android:layout_height="56dp"
|
||||
android:gravity="center"
|
||||
android:orientation="vertical">
|
||||
|
||||
<ImageView
|
||||
android:layout_width="16dp"
|
||||
android:layout_height="16dp"
|
||||
android:src="@mipmap/ic_plus" />
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="8dp"
|
||||
android:text="新增"
|
||||
android:textColor="@color/color_blue"
|
||||
android:textSize="15sp" />
|
||||
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
</androidx.cardview.widget.CardView>
|
||||
|
||||
</FrameLayout>
|
||||
|
||||
|
||||
</LinearLayout>
|
403
app/src/main/res/layout/activity_jianceshenqingshenhe_detail.xml
Normal file
@ -0,0 +1,403 @@
|
||||
<?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" />
|
||||
|
||||
|
||||
</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:paddingLeft="16dp"
|
||||
android:paddingRight="16dp">
|
||||
|
||||
|
||||
<FrameLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="48dp"
|
||||
android:layout_marginLeft="8dp"
|
||||
android:layout_marginTop="24dp"
|
||||
android:layout_marginRight="8dp">
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="center_vertical|left"
|
||||
android:text="产品名称"
|
||||
android:textColor="@color/color_tv_content"
|
||||
android:textSize="16sp" />
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="center_vertical|right"
|
||||
android:text="金丝凤梨"
|
||||
android:textColor="@color/color_txt_black"
|
||||
android:textSize="16sp" />
|
||||
|
||||
</FrameLayout>
|
||||
|
||||
<View
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="1dp"
|
||||
android:background="@color/color_f8f8f8" />
|
||||
|
||||
<FrameLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="48dp"
|
||||
android:layout_marginLeft="8dp"
|
||||
android:layout_marginRight="8dp">
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="center_vertical|left"
|
||||
android:text="预约时间"
|
||||
android:textColor="@color/color_tv_content"
|
||||
android:textSize="16sp" />
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="center_vertical|right"
|
||||
android:text="2024-01-20"
|
||||
android:textColor="@color/color_txt_black"
|
||||
android:textSize="16sp" />
|
||||
|
||||
</FrameLayout>
|
||||
|
||||
<View
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="1dp"
|
||||
android:background="@color/color_f8f8f8" />
|
||||
|
||||
|
||||
<FrameLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="48dp"
|
||||
android:layout_marginLeft="8dp"
|
||||
android:layout_marginRight="8dp">
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="center_vertical|left"
|
||||
android:text="预约监测站"
|
||||
android:textColor="@color/color_tv_content"
|
||||
android:textSize="16sp" />
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="center_vertical|right"
|
||||
android:text="耿马检测站"
|
||||
android:textColor="@color/color_txt_black"
|
||||
android:textSize="16sp" />
|
||||
|
||||
</FrameLayout>
|
||||
|
||||
<View
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="1dp"
|
||||
android:background="@color/color_f8f8f8" />
|
||||
|
||||
|
||||
<FrameLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="48dp"
|
||||
android:layout_marginLeft="8dp"
|
||||
android:layout_marginRight="8dp">
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="center_vertical|left"
|
||||
android:text="产地"
|
||||
android:textColor="@color/color_tv_content"
|
||||
android:textSize="16sp" />
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="center_vertical|right"
|
||||
android:text="耿马镇新城村"
|
||||
android:textColor="@color/color_txt_black"
|
||||
android:textSize="16sp" />
|
||||
|
||||
</FrameLayout>
|
||||
|
||||
<View
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="1dp"
|
||||
android:background="@color/color_f8f8f8" />
|
||||
|
||||
|
||||
<FrameLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="48dp"
|
||||
android:layout_marginLeft="8dp"
|
||||
android:layout_marginRight="8dp">
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="center_vertical|left"
|
||||
android:text="批次"
|
||||
android:textColor="@color/color_tv_content"
|
||||
android:textSize="16sp" />
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="center_vertical|right"
|
||||
android:text="10月份第一批"
|
||||
android:textColor="@color/color_txt_black"
|
||||
android:textSize="16sp" />
|
||||
|
||||
</FrameLayout>
|
||||
|
||||
<View
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="1dp"
|
||||
android:background="@color/color_f8f8f8" />
|
||||
|
||||
|
||||
<FrameLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="48dp"
|
||||
android:layout_marginLeft="8dp"
|
||||
android:layout_marginRight="8dp">
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="center_vertical|left"
|
||||
android:text="组织名称"
|
||||
android:textColor="@color/color_tv_content"
|
||||
android:textSize="16sp" />
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="center_vertical|right"
|
||||
android:text="好丰收农场"
|
||||
android:textColor="@color/color_txt_black"
|
||||
android:textSize="16sp" />
|
||||
|
||||
</FrameLayout>
|
||||
|
||||
<View
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="1dp"
|
||||
android:background="@color/color_f8f8f8" />
|
||||
|
||||
|
||||
<FrameLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="48dp"
|
||||
android:layout_marginLeft="8dp"
|
||||
android:layout_marginRight="8dp">
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="center_vertical|left"
|
||||
android:text="法人"
|
||||
android:textColor="@color/color_tv_content"
|
||||
android:textSize="16sp" />
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="center_vertical|right"
|
||||
android:text="潘夏彤"
|
||||
android:textColor="@color/color_txt_black"
|
||||
android:textSize="16sp" />
|
||||
|
||||
</FrameLayout>
|
||||
|
||||
<View
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="1dp"
|
||||
android:background="@color/color_f8f8f8" />
|
||||
|
||||
|
||||
<FrameLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="48dp"
|
||||
android:layout_marginLeft="8dp"
|
||||
android:layout_marginRight="8dp">
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="center_vertical|left"
|
||||
android:text="身份证号码"
|
||||
android:textColor="@color/color_tv_content"
|
||||
android:textSize="16sp" />
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="center_vertical|right"
|
||||
android:text="510222199001012345"
|
||||
android:textColor="@color/color_txt_black"
|
||||
android:textSize="16sp" />
|
||||
|
||||
</FrameLayout>
|
||||
|
||||
<View
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="1dp"
|
||||
android:background="@color/color_f8f8f8" />
|
||||
|
||||
|
||||
<FrameLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="48dp"
|
||||
android:layout_marginLeft="8dp"
|
||||
android:layout_marginRight="8dp">
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="center_vertical|left"
|
||||
android:text="营业执照"
|
||||
android:textColor="@color/color_tv_content"
|
||||
android:textSize="16sp" />
|
||||
|
||||
|
||||
</FrameLayout>
|
||||
|
||||
<androidx.constraintlayout.widget.ConstraintLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="12dp"
|
||||
android:layout_marginBottom="12dp">
|
||||
|
||||
<ImageView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="0dp"
|
||||
android:src="@mipmap/pic_suyuan_10"
|
||||
app:layout_constraintDimensionRatio="392:193"
|
||||
app:layout_constraintTop_toTopOf="parent" />
|
||||
|
||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||
|
||||
|
||||
<FrameLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="48dp"
|
||||
android:layout_marginLeft="8dp"
|
||||
android:layout_marginRight="8dp">
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="center_vertical|left"
|
||||
android:text="身份证相片"
|
||||
android:textColor="@color/color_tv_content"
|
||||
android:textSize="16sp" />
|
||||
|
||||
|
||||
</FrameLayout>
|
||||
|
||||
|
||||
<androidx.constraintlayout.widget.ConstraintLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="12dp"
|
||||
android:layout_marginBottom="12dp">
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/img1"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="0dp"
|
||||
android:layout_marginRight="11dp"
|
||||
android:src="@mipmap/pic_suyuan_11"
|
||||
app:layout_constraintDimensionRatio="1:1"
|
||||
app:layout_constraintLeft_toLeftOf="parent"
|
||||
app:layout_constraintLeft_toRightOf="@id/img2"
|
||||
app:layout_constraintTop_toTopOf="parent" />
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/img2"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="0dp"
|
||||
android:layout_marginLeft="11dp"
|
||||
android:src="@mipmap/pic_suyuan_12"
|
||||
app:layout_constraintDimensionRatio="1:1"
|
||||
app:layout_constraintLeft_toRightOf="@id/img1"
|
||||
app:layout_constraintRight_toRightOf="parent"
|
||||
app:layout_constraintTop_toTopOf="parent" />
|
||||
|
||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="center_horizontal"
|
||||
android:layout_marginTop="24dp"
|
||||
android:layout_marginBottom="30dp"
|
||||
android:background="@drawable/bg_container_blue_raduis_2"
|
||||
android:paddingLeft="16dp"
|
||||
android:paddingTop="8dp"
|
||||
android:paddingRight="16dp"
|
||||
android:paddingBottom="8dp"
|
||||
android:text="审核"
|
||||
android:textColor="@color/white"
|
||||
android:textSize="15sp" />
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
</androidx.core.widget.NestedScrollView>
|
||||
|
||||
|
||||
</LinearLayout>
|
@ -0,0 +1,96 @@
|
||||
<?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>
|
||||
|
||||
|
||||
<FrameLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:paddingLeft="16dp"
|
||||
android:paddingTop="12dp"
|
||||
android:paddingRight="16dp"
|
||||
android:paddingBottom="12dp">
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="left|center_vertical"
|
||||
android:drawableLeft="@mipmap/ic_location_small"
|
||||
android:drawableRight="@mipmap/ic_arrow_down"
|
||||
android:drawablePadding="2dp"
|
||||
android:text="耿马镇-团结村"
|
||||
android:textColor="@color/color_txt_black"
|
||||
android:textSize="14sp" />
|
||||
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="right|center_vertical"
|
||||
android:drawableRight="@mipmap/ic_arrow_down"
|
||||
android:drawablePadding="2dp"
|
||||
android:text="全部"
|
||||
android:textColor="@color/color_txt_black"
|
||||
android:textSize="14sp" />
|
||||
|
||||
</FrameLayout>
|
||||
|
||||
|
||||
<com.tairui.gov_affairs_cloud.widget.RefreshRecyclerView
|
||||
android:id="@+id/refreshRecycler"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:background="@color/color_f8f8f8" />
|
||||
|
||||
|
||||
</LinearLayout>
|
72
app/src/main/res/layout/activity_suyuan_home.xml
Normal file
@ -0,0 +1,72 @@
|
||||
<?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">
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:background="@drawable/bg_gradient_suyuan_home_top"
|
||||
android:orientation="vertical">
|
||||
|
||||
<com.tairui.gov_affairs_cloud.widget.statusbar.StatusBarHeightView
|
||||
android:id="@+id/statusbar"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_alignParentTop="true" />
|
||||
|
||||
|
||||
<androidx.appcompat.widget.Toolbar
|
||||
android:id="@+id/toolbar"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="?attr/actionBarSize"
|
||||
android:layout_below="@id/statusbar"
|
||||
app:contentInsetLeft="0dp"
|
||||
app:contentInsetStart="0dp"
|
||||
app:contentInsetStartWithNavigation="0dp"
|
||||
app:layout_collapseMode="pin">
|
||||
|
||||
<FrameLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent">
|
||||
|
||||
<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" />
|
||||
|
||||
<View
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="1dp"
|
||||
android:layout_gravity="bottom"
|
||||
android:background="@color/color_f8f8f8" />
|
||||
</FrameLayout>
|
||||
</androidx.appcompat.widget.Toolbar>
|
||||
</LinearLayout>
|
||||
|
||||
|
||||
<androidx.recyclerview.widget.RecyclerView
|
||||
android:id="@+id/recycle_view"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:background="#F4FAFF"
|
||||
android:paddingBottom="15dp" />
|
||||
|
||||
|
||||
</LinearLayout>
|
82
app/src/main/res/layout/activity_suyuan_jiance_report.xml
Normal file
@ -0,0 +1,82 @@
|
||||
<?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" />
|
||||
|
||||
|
||||
</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:paddingLeft="16dp"
|
||||
android:paddingRight="16dp">
|
||||
|
||||
<androidx.constraintlayout.widget.ConstraintLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="16dp"
|
||||
android:layout_marginBottom="30dp">
|
||||
|
||||
|
||||
<ImageView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="0dp"
|
||||
android:src="@mipmap/pic_suyuan_29"
|
||||
app:layout_constraintDimensionRatio="343:643"
|
||||
app:layout_constraintTop_toTopOf="parent" />
|
||||
|
||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
</androidx.core.widget.NestedScrollView>
|
||||
|
||||
|
||||
</LinearLayout>
|
102
app/src/main/res/layout/activity_suyuan_report_detail.xml
Normal file
@ -0,0 +1,102 @@
|
||||
<?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/btnSubmit"
|
||||
android:layout_width="30dp"
|
||||
android:layout_height="30dp"
|
||||
android:layout_gravity="right|center_vertical"
|
||||
android:padding="5dp"
|
||||
android:src="@mipmap/ic_submit" />
|
||||
|
||||
|
||||
</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:paddingLeft="16dp"
|
||||
android:paddingRight="16dp">
|
||||
|
||||
<androidx.constraintlayout.widget.ConstraintLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="16dp">
|
||||
|
||||
|
||||
<ImageView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="0dp"
|
||||
android:src="@mipmap/pic_suyuan_20"
|
||||
app:layout_constraintDimensionRatio="342:888"
|
||||
app:layout_constraintTop_toTopOf="parent" />
|
||||
|
||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||
|
||||
<TextView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="46dp"
|
||||
android:layout_gravity="center_horizontal"
|
||||
android:layout_marginTop="24dp"
|
||||
android:layout_marginBottom="30dp"
|
||||
android:background="@drawable/bg_container_blue_raduis_30"
|
||||
android:gravity="center"
|
||||
android:text="查看报告"
|
||||
android:textColor="@color/white"
|
||||
android:textSize="15sp" />
|
||||
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
</androidx.core.widget.NestedScrollView>
|
||||
|
||||
|
||||
</LinearLayout>
|
102
app/src/main/res/layout/activity_suyuan_report_list.xml
Normal file
@ -0,0 +1,102 @@
|
||||
<?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"
|
||||
android:visibility="gone" />
|
||||
</FrameLayout>
|
||||
</androidx.appcompat.widget.Toolbar>
|
||||
|
||||
|
||||
<FrameLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:paddingLeft="16dp"
|
||||
android:paddingTop="12dp"
|
||||
android:paddingRight="16dp"
|
||||
android:paddingBottom="12dp">
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="left|center_vertical"
|
||||
android:drawableLeft="@mipmap/ic_location_small"
|
||||
android:drawableRight="@mipmap/ic_arrow_down"
|
||||
android:drawablePadding="2dp"
|
||||
android:text="耿马镇-团结村"
|
||||
android:textColor="@color/color_txt_black"
|
||||
android:textSize="14sp" />
|
||||
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="right|center_vertical"
|
||||
android:drawableRight="@mipmap/ic_arrow_down"
|
||||
android:drawablePadding="2dp"
|
||||
android:text="全部"
|
||||
android:textColor="@color/color_txt_black"
|
||||
android:textSize="14sp" />
|
||||
|
||||
</FrameLayout>
|
||||
|
||||
<FrameLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent">
|
||||
|
||||
<com.tairui.gov_affairs_cloud.widget.RefreshRecyclerView
|
||||
android:id="@+id/refreshRecycler"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:background="@color/color_f8f8f8" />
|
||||
|
||||
</FrameLayout>
|
||||
|
||||
|
||||
</LinearLayout>
|
131
app/src/main/res/layout/activity_suyuan_result.xml
Normal file
@ -0,0 +1,131 @@
|
||||
<?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:layout_width="30dp"
|
||||
android:layout_height="30dp"
|
||||
android:layout_gravity="right|center_vertical"
|
||||
android:padding="5dp"
|
||||
android:src="@mipmap/ic_submit"
|
||||
android:visibility="gone" />
|
||||
|
||||
|
||||
</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:paddingLeft="16dp"
|
||||
android:paddingRight="16dp">
|
||||
|
||||
<androidx.constraintlayout.widget.ConstraintLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="16dp">
|
||||
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/img"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="0dp"
|
||||
android:src="@mipmap/pic_suyuan_28"
|
||||
app:layout_constraintDimensionRatio="342:705"
|
||||
app:layout_constraintTop_toTopOf="parent" />
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginBottom="12dp"
|
||||
android:orientation="horizontal"
|
||||
app:layout_constraintBottom_toBottomOf="@id/img">
|
||||
|
||||
<View
|
||||
android:id="@+id/jiancebaogao"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="76dp"
|
||||
android:layout_marginRight="8dp"
|
||||
android:layout_weight="1" />
|
||||
|
||||
<View
|
||||
android:id="@+id/jingyingzhuti"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="76dp"
|
||||
android:layout_marginLeft="8dp"
|
||||
android:layout_marginRight="8dp"
|
||||
android:layout_weight="1" />
|
||||
|
||||
<View
|
||||
android:id="@+id/nongshihuodong"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="76dp"
|
||||
android:layout_marginLeft="8dp"
|
||||
android:layout_marginRight="8dp"
|
||||
android:layout_weight="1" />
|
||||
|
||||
<View
|
||||
android:id="@+id/qukuailianrenzheng"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="76dp"
|
||||
android:layout_marginLeft="8dp"
|
||||
android:layout_weight="1" />
|
||||
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
</androidx.core.widget.NestedScrollView>
|
||||
|
||||
|
||||
</LinearLayout>
|
@ -0,0 +1,82 @@
|
||||
<?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" />
|
||||
|
||||
|
||||
</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:paddingLeft="24dp"
|
||||
android:paddingRight="24dp">
|
||||
|
||||
<androidx.constraintlayout.widget.ConstraintLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="16dp"
|
||||
android:layout_marginBottom="30dp">
|
||||
|
||||
|
||||
<ImageView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="0dp"
|
||||
android:src="@mipmap/pic_suyuan_31"
|
||||
app:layout_constraintDimensionRatio="342:546"
|
||||
app:layout_constraintTop_toTopOf="parent" />
|
||||
|
||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
</androidx.core.widget.NestedScrollView>
|
||||
|
||||
|
||||
</LinearLayout>
|
@ -0,0 +1,82 @@
|
||||
<?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" />
|
||||
|
||||
|
||||
</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:paddingLeft="16dp"
|
||||
android:paddingRight="16dp">
|
||||
|
||||
<androidx.constraintlayout.widget.ConstraintLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="16dp"
|
||||
android:layout_marginBottom="30dp">
|
||||
|
||||
|
||||
<ImageView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="0dp"
|
||||
android:src="@mipmap/pic_suyuan_32"
|
||||
app:layout_constraintDimensionRatio="358:731"
|
||||
app:layout_constraintTop_toTopOf="parent" />
|
||||
|
||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
</androidx.core.widget.NestedScrollView>
|
||||
|
||||
|
||||
</LinearLayout>
|
@ -0,0 +1,82 @@
|
||||
<?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" />
|
||||
|
||||
|
||||
</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:paddingLeft="24dp"
|
||||
android:paddingRight="24dp">
|
||||
|
||||
<androidx.constraintlayout.widget.ConstraintLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="16dp"
|
||||
android:layout_marginBottom="30dp">
|
||||
|
||||
|
||||
<ImageView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="0dp"
|
||||
android:src="@mipmap/pic_suyuan_30"
|
||||
app:layout_constraintDimensionRatio="342:181"
|
||||
app:layout_constraintTop_toTopOf="parent" />
|
||||
|
||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
</androidx.core.widget.NestedScrollView>
|
||||
|
||||
|
||||
</LinearLayout>
|
@ -0,0 +1,82 @@
|
||||
<?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" />
|
||||
|
||||
|
||||
</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:paddingLeft="24dp"
|
||||
android:paddingRight="24dp">
|
||||
|
||||
<androidx.constraintlayout.widget.ConstraintLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="16dp"
|
||||
android:layout_marginBottom="30dp">
|
||||
|
||||
|
||||
<ImageView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="0dp"
|
||||
android:src="@mipmap/pic_suyuan_33"
|
||||
app:layout_constraintDimensionRatio="342:673"
|
||||
app:layout_constraintTop_toTopOf="parent" />
|
||||
|
||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
</androidx.core.widget.NestedScrollView>
|
||||
|
||||
|
||||
</LinearLayout>
|
88
app/src/main/res/layout/activity_suyuan_search.xml
Normal file
@ -0,0 +1,88 @@
|
||||
<?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="@drawable/bg_gradient_suyuan"
|
||||
android:orientation="vertical">
|
||||
|
||||
<com.tairui.gov_affairs_cloud.widget.statusbar.StatusBarHeightView
|
||||
android:id="@+id/statusbar"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_alignParentTop="true" />
|
||||
|
||||
|
||||
<androidx.appcompat.widget.Toolbar
|
||||
android:id="@+id/toolbar"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="?attr/actionBarSize"
|
||||
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/btnScan"
|
||||
android:layout_width="30dp"
|
||||
android:layout_height="30dp"
|
||||
android:layout_gravity="right|center_vertical"
|
||||
android:padding="5dp"
|
||||
android:src="@mipmap/ic_scan" />
|
||||
|
||||
</FrameLayout>
|
||||
</androidx.appcompat.widget.Toolbar>
|
||||
|
||||
<androidx.constraintlayout.widget.ConstraintLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:paddingLeft="16dp"
|
||||
android:paddingRight="16dp">
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/img"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="0dp"
|
||||
android:layout_marginBottom="100dp"
|
||||
android:src="@mipmap/pic_suyuan_27"
|
||||
app:layout_constraintBottom_toBottomOf="parent"
|
||||
app:layout_constraintDimensionRatio="350:183"
|
||||
app:layout_constraintTop_toTopOf="parent" />
|
||||
|
||||
<View
|
||||
android:id="@+id/suyuanResult"
|
||||
android:layout_width="58dp"
|
||||
android:layout_height="58dp"
|
||||
app:layout_constraintBottom_toBottomOf="@id/img"
|
||||
app:layout_constraintRight_toRightOf="@id/img" />
|
||||
|
||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||
|
||||
|
||||
</LinearLayout>
|
131
app/src/main/res/layout/activity_suyuanjiance_add.xml
Normal file
@ -0,0 +1,131 @@
|
||||
<?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/btnSubmit"
|
||||
android:layout_width="30dp"
|
||||
android:layout_height="30dp"
|
||||
android:layout_gravity="right|center_vertical"
|
||||
android:padding="5dp"
|
||||
android:src="@mipmap/ic_submit" />
|
||||
|
||||
|
||||
</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:paddingLeft="16dp"
|
||||
android:paddingRight="16dp">
|
||||
|
||||
<androidx.constraintlayout.widget.ConstraintLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="16dp">
|
||||
|
||||
|
||||
<ImageView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="0dp"
|
||||
android:src="@mipmap/pic_suyuan_17"
|
||||
app:layout_constraintDimensionRatio="353:634"
|
||||
app:layout_constraintTop_toTopOf="parent" />
|
||||
|
||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="24dp"
|
||||
android:layout_marginBottom="30dp"
|
||||
android:gravity="center"
|
||||
android:orientation="horizontal">
|
||||
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="center_horizontal"
|
||||
android:background="@drawable/bg_container_gray_raduis_2"
|
||||
android:paddingLeft="16dp"
|
||||
android:paddingTop="8dp"
|
||||
android:paddingRight="16dp"
|
||||
android:paddingBottom="8dp"
|
||||
android:text="取消"
|
||||
android:textColor="@color/white"
|
||||
android:textSize="15sp" />
|
||||
|
||||
<View
|
||||
android:layout_width="20dp"
|
||||
android:layout_height="1dp" />
|
||||
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="center_horizontal"
|
||||
android:background="@drawable/bg_container_blue_raduis_2"
|
||||
android:paddingLeft="16dp"
|
||||
android:paddingTop="8dp"
|
||||
android:paddingRight="16dp"
|
||||
android:paddingBottom="8dp"
|
||||
android:text="审核"
|
||||
android:textColor="@color/white"
|
||||
android:textSize="15sp" />
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
</androidx.core.widget.NestedScrollView>
|
||||
|
||||
|
||||
</LinearLayout>
|
131
app/src/main/res/layout/activity_suyuanjiance_detail.xml
Normal file
@ -0,0 +1,131 @@
|
||||
<?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/btnSubmit"
|
||||
android:layout_width="30dp"
|
||||
android:layout_height="30dp"
|
||||
android:layout_gravity="right|center_vertical"
|
||||
android:padding="5dp"
|
||||
android:src="@mipmap/ic_submit" />
|
||||
|
||||
|
||||
</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:paddingLeft="16dp"
|
||||
android:paddingRight="16dp">
|
||||
|
||||
<androidx.constraintlayout.widget.ConstraintLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="16dp">
|
||||
|
||||
|
||||
<ImageView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="0dp"
|
||||
android:src="@mipmap/pic_suyuan_18"
|
||||
app:layout_constraintDimensionRatio="353:684"
|
||||
app:layout_constraintTop_toTopOf="parent" />
|
||||
|
||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="24dp"
|
||||
android:layout_marginBottom="30dp"
|
||||
android:gravity="center"
|
||||
android:orientation="horizontal">
|
||||
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="center_horizontal"
|
||||
android:background="@drawable/bg_container_gray_raduis_2"
|
||||
android:paddingLeft="16dp"
|
||||
android:paddingTop="8dp"
|
||||
android:paddingRight="16dp"
|
||||
android:paddingBottom="8dp"
|
||||
android:text="取消"
|
||||
android:textColor="@color/white"
|
||||
android:textSize="15sp" />
|
||||
|
||||
<View
|
||||
android:layout_width="20dp"
|
||||
android:layout_height="1dp" />
|
||||
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="center_horizontal"
|
||||
android:background="@drawable/bg_container_blue_raduis_2"
|
||||
android:paddingLeft="16dp"
|
||||
android:paddingTop="8dp"
|
||||
android:paddingRight="16dp"
|
||||
android:paddingBottom="8dp"
|
||||
android:text="审核"
|
||||
android:textColor="@color/white"
|
||||
android:textSize="15sp" />
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
</androidx.core.widget.NestedScrollView>
|
||||
|
||||
|
||||
</LinearLayout>
|
139
app/src/main/res/layout/activity_suyuanjiance_list.xml
Normal file
@ -0,0 +1,139 @@
|
||||
<?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"
|
||||
android:visibility="gone" />
|
||||
</FrameLayout>
|
||||
</androidx.appcompat.widget.Toolbar>
|
||||
|
||||
|
||||
<FrameLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:paddingLeft="16dp"
|
||||
android:paddingTop="12dp"
|
||||
android:paddingRight="16dp"
|
||||
android:paddingBottom="12dp">
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="left|center_vertical"
|
||||
android:drawableLeft="@mipmap/ic_location_small"
|
||||
android:drawableRight="@mipmap/ic_arrow_down"
|
||||
android:drawablePadding="2dp"
|
||||
android:text="耿马镇-团结村"
|
||||
android:textColor="@color/color_txt_black"
|
||||
android:textSize="14sp" />
|
||||
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="right|center_vertical"
|
||||
android:drawableRight="@mipmap/ic_arrow_down"
|
||||
android:drawablePadding="2dp"
|
||||
android:text="全部"
|
||||
android:textColor="@color/color_txt_black"
|
||||
android:textSize="14sp" />
|
||||
|
||||
</FrameLayout>
|
||||
|
||||
<FrameLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent">
|
||||
|
||||
<com.tairui.gov_affairs_cloud.widget.RefreshRecyclerView
|
||||
android:id="@+id/refreshRecycler"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:background="@color/color_f8f8f8" />
|
||||
|
||||
<androidx.cardview.widget.CardView
|
||||
android:id="@+id/btnAdd"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="right|bottom"
|
||||
android:layout_marginRight="16dp"
|
||||
android:layout_marginBottom="86dp"
|
||||
android:clickable="true"
|
||||
app:cardBackgroundColor="@color/white"
|
||||
app:cardCornerRadius="8dp"
|
||||
app:cardElevation="4dp"
|
||||
app:contentPadding="6dp">
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="48dp"
|
||||
android:layout_height="56dp"
|
||||
android:gravity="center"
|
||||
android:orientation="vertical">
|
||||
|
||||
<ImageView
|
||||
android:layout_width="16dp"
|
||||
android:layout_height="16dp"
|
||||
android:src="@mipmap/ic_plus" />
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="8dp"
|
||||
android:text="新增"
|
||||
android:textColor="@color/color_blue"
|
||||
android:textSize="15sp" />
|
||||
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
</androidx.cardview.widget.CardView>
|
||||
|
||||
</FrameLayout>
|
||||
|
||||
|
||||
</LinearLayout>
|
417
app/src/main/res/layout/activity_traceability_management.xml
Normal file
@ -0,0 +1,417 @@
|
||||
<?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" />
|
||||
|
||||
</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:paddingLeft="16dp"
|
||||
android:paddingRight="16dp">
|
||||
|
||||
<FrameLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content">
|
||||
|
||||
<TextView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="left|center_vertical"
|
||||
android:paddingTop="12dp"
|
||||
android:paddingRight="16dp"
|
||||
android:paddingBottom="12dp"
|
||||
android:text="溯源管理"
|
||||
android:textColor="@color/color_txt_black"
|
||||
android:textSize="17sp" />
|
||||
</FrameLayout>
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="horizontal"
|
||||
android:paddingTop="12dp"
|
||||
android:paddingBottom="12dp">
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/jianceshenhe"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="1"
|
||||
android:gravity="center_horizontal"
|
||||
android:orientation="vertical">
|
||||
|
||||
<ImageView
|
||||
android:layout_width="48dp"
|
||||
android:layout_height="48dp"
|
||||
android:src="@mipmap/ic_suyuan_1" />
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="10dp"
|
||||
android:text="检测审核"
|
||||
android:textColor="@color/color_txt_black"
|
||||
android:textSize="12sp" />
|
||||
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/layoutSuyuanJiance"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="1"
|
||||
android:gravity="center_horizontal"
|
||||
android:orientation="vertical">
|
||||
|
||||
<ImageView
|
||||
android:layout_width="48dp"
|
||||
android:layout_height="48dp"
|
||||
android:src="@mipmap/ic_suyuan_2" />
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="10dp"
|
||||
android:text="溯源检测"
|
||||
android:textColor="@color/color_txt_black"
|
||||
android:textSize="12sp" />
|
||||
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/layoutSuyuanReport"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="1"
|
||||
android:gravity="center_horizontal"
|
||||
android:orientation="vertical">
|
||||
|
||||
<ImageView
|
||||
android:layout_width="48dp"
|
||||
android:layout_height="48dp"
|
||||
android:src="@mipmap/ic_suyuan_3" />
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="10dp"
|
||||
android:text="溯源报告"
|
||||
android:textColor="@color/color_txt_black"
|
||||
android:textSize="12sp" />
|
||||
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="1"
|
||||
android:gravity="center_horizontal"
|
||||
android:orientation="vertical">
|
||||
|
||||
<ImageView
|
||||
android:layout_width="48dp"
|
||||
android:layout_height="48dp"
|
||||
android:src="@mipmap/ic_suyuan_4" />
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="10dp"
|
||||
android:text="检测机构"
|
||||
android:textColor="@color/color_txt_black"
|
||||
android:textSize="12sp" />
|
||||
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="1"
|
||||
android:gravity="center_horizontal"
|
||||
android:orientation="vertical">
|
||||
|
||||
<ImageView
|
||||
android:layout_width="48dp"
|
||||
android:layout_height="48dp"
|
||||
android:src="@mipmap/ic_suyuan_5" />
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="10dp"
|
||||
android:text="溯源查询"
|
||||
android:textColor="@color/color_txt_black"
|
||||
android:textSize="12sp" />
|
||||
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
<FrameLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content">
|
||||
|
||||
<TextView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="left|center_vertical"
|
||||
android:layout_marginTop="12dp"
|
||||
android:paddingTop="12dp"
|
||||
android:paddingRight="16dp"
|
||||
android:paddingBottom="12dp"
|
||||
android:text="溯源概况"
|
||||
android:textColor="@color/color_txt_black"
|
||||
android:textSize="17sp" />
|
||||
</FrameLayout>
|
||||
|
||||
<androidx.constraintlayout.widget.ConstraintLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="12dp">
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/img1"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="0dp"
|
||||
android:layout_marginRight="4dp"
|
||||
android:src="@mipmap/pic_suyuan_1"
|
||||
app:layout_constraintDimensionRatio="175:98"
|
||||
app:layout_constraintLeft_toLeftOf="parent"
|
||||
app:layout_constraintRight_toLeftOf="@id/img2"
|
||||
app:layout_constraintTop_toTopOf="parent" />
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/img2"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="0dp"
|
||||
android:layout_marginLeft="4dp"
|
||||
android:src="@mipmap/pic_suyuan_2"
|
||||
app:layout_constraintDimensionRatio="175:98"
|
||||
app:layout_constraintLeft_toRightOf="@id/img1"
|
||||
app:layout_constraintRight_toRightOf="parent"
|
||||
app:layout_constraintTop_toTopOf="parent" />
|
||||
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/img3"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="0dp"
|
||||
android:layout_marginTop="8dp"
|
||||
android:layout_marginRight="4dp"
|
||||
android:src="@mipmap/pic_suyuan_3"
|
||||
app:layout_constraintDimensionRatio="175:98"
|
||||
app:layout_constraintLeft_toLeftOf="parent"
|
||||
app:layout_constraintRight_toLeftOf="@id/img4"
|
||||
app:layout_constraintTop_toBottomOf="@id/img1" />
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/img4"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="0dp"
|
||||
android:layout_marginLeft="4dp"
|
||||
android:layout_marginTop="8dp"
|
||||
android:src="@mipmap/pic_suyuan_4"
|
||||
app:layout_constraintDimensionRatio="175:98"
|
||||
app:layout_constraintLeft_toRightOf="@id/img3"
|
||||
app:layout_constraintRight_toRightOf="parent"
|
||||
app:layout_constraintTop_toBottomOf="@id/img2" />
|
||||
|
||||
|
||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||
|
||||
<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:paddingTop="12dp"
|
||||
android:paddingRight="16dp"
|
||||
android:paddingBottom="12dp"
|
||||
android:text="检测机构"
|
||||
android:textColor="@color/color_txt_black"
|
||||
android:textSize="17sp" />
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="right|center_vertical"
|
||||
android:paddingTop="12dp"
|
||||
android:paddingRight="16dp"
|
||||
android:paddingBottom="12dp"
|
||||
android:text="更多"
|
||||
android:textColor="@color/color_tv_content"
|
||||
android:textSize="12sp" />
|
||||
</FrameLayout>
|
||||
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:gravity="center_vertical"
|
||||
android:orientation="horizontal"
|
||||
android:padding="12dp">
|
||||
|
||||
<ImageView
|
||||
android:layout_width="80dp"
|
||||
android:layout_height="80dp"
|
||||
android:src="@mipmap/pic_suyuan_5" />
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginLeft="12dp"
|
||||
android:orientation="vertical">
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="科睿检测"
|
||||
android:textColor="@color/color_txt_black"
|
||||
android:textSize="16sp" />
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="8dp"
|
||||
android:text="耿马县耿马镇耿马村154号联系"
|
||||
android:textColor="@color/color_tv_content"
|
||||
android:textSize="14sp" />
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="8dp"
|
||||
android:text="联系人:周乐心"
|
||||
android:textColor="@color/color_tv_content"
|
||||
android:textSize="14sp" />
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="8dp"
|
||||
android:text="联系电话:19289999000"
|
||||
android:textColor="@color/color_tv_content"
|
||||
android:textSize="14sp" />
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:gravity="center_vertical"
|
||||
android:orientation="horizontal"
|
||||
android:padding="12dp">
|
||||
|
||||
<ImageView
|
||||
android:layout_width="80dp"
|
||||
android:layout_height="80dp"
|
||||
android:src="@mipmap/pic_suyuan_5" />
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginLeft="12dp"
|
||||
android:orientation="vertical">
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="科睿检测"
|
||||
android:textColor="@color/color_txt_black"
|
||||
android:textSize="16sp" />
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="8dp"
|
||||
android:text="耿马县耿马镇耿马村154号联系"
|
||||
android:textColor="@color/color_tv_content"
|
||||
android:textSize="14sp" />
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="8dp"
|
||||
android:text="联系人:周乐心"
|
||||
android:textColor="@color/color_tv_content"
|
||||
android:textSize="14sp" />
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="8dp"
|
||||
android:text="联系电话:19289999000"
|
||||
android:textColor="@color/color_tv_content"
|
||||
android:textSize="14sp" />
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
|
||||
</androidx.core.widget.NestedScrollView>
|
||||
|
||||
</LinearLayout>
|
18
app/src/main/res/layout/item_list_caishoufuma.xml
Normal file
@ -0,0 +1,18 @@
|
||||
<?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"
|
||||
android:layout_marginLeft="16dp"
|
||||
android:layout_marginTop="12dp"
|
||||
android:layout_marginRight="16dp">
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/img"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="0dp"
|
||||
android:src="@mipmap/pic_suyuan_13"
|
||||
app:layout_constraintDimensionRatio="370:129"
|
||||
app:layout_constraintTop_toTopOf="parent" />
|
||||
|
||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
18
app/src/main/res/layout/item_list_jianceshenqingshenhe.xml
Normal file
@ -0,0 +1,18 @@
|
||||
<?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"
|
||||
android:layout_marginLeft="16dp"
|
||||
android:layout_marginTop="12dp"
|
||||
android:layout_marginRight="16dp">
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/img"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="0dp"
|
||||
android:src="@mipmap/pic_suyuan_6"
|
||||
app:layout_constraintDimensionRatio="370:131"
|
||||
app:layout_constraintTop_toTopOf="parent" />
|
||||
|
||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
18
app/src/main/res/layout/item_list_suyuan_report.xml
Normal file
@ -0,0 +1,18 @@
|
||||
<?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"
|
||||
android:layout_marginLeft="16dp"
|
||||
android:layout_marginTop="12dp"
|
||||
android:layout_marginRight="16dp">
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/img"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="0dp"
|
||||
android:src="@mipmap/pic_suyuan_19"
|
||||
app:layout_constraintDimensionRatio="370:191"
|
||||
app:layout_constraintTop_toTopOf="parent" />
|
||||
|
||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
18
app/src/main/res/layout/item_list_suyuanjiance.xml
Normal file
@ -0,0 +1,18 @@
|
||||
<?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"
|
||||
android:layout_marginLeft="16dp"
|
||||
android:layout_marginTop="12dp"
|
||||
android:layout_marginRight="16dp">
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/img"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="0dp"
|
||||
android:src="@mipmap/pic_suyuan_13"
|
||||
app:layout_constraintDimensionRatio="370:164"
|
||||
app:layout_constraintTop_toTopOf="parent" />
|
||||
|
||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
BIN
app/src/main/res/mipmap-xxhdpi/ic_scan.png
Normal file
After Width: | Height: | Size: 1.6 KiB |
BIN
app/src/main/res/mipmap-xxhdpi/ic_suyuan_1.png
Normal file
After Width: | Height: | Size: 5.8 KiB |
BIN
app/src/main/res/mipmap-xxhdpi/ic_suyuan_2.png
Normal file
After Width: | Height: | Size: 4.1 KiB |
BIN
app/src/main/res/mipmap-xxhdpi/ic_suyuan_3.png
Normal file
After Width: | Height: | Size: 4.3 KiB |
BIN
app/src/main/res/mipmap-xxhdpi/ic_suyuan_4.png
Normal file
After Width: | Height: | Size: 6.9 KiB |
BIN
app/src/main/res/mipmap-xxhdpi/ic_suyuan_5.png
Normal file
After Width: | Height: | Size: 6.4 KiB |
BIN
app/src/main/res/mipmap-xxhdpi/ic_suyuan_func_1.png
Normal file
After Width: | Height: | Size: 12 KiB |
BIN
app/src/main/res/mipmap-xxhdpi/ic_suyuan_func_10.png
Normal file
After Width: | Height: | Size: 13 KiB |
BIN
app/src/main/res/mipmap-xxhdpi/ic_suyuan_func_2.png
Normal file
After Width: | Height: | Size: 12 KiB |
BIN
app/src/main/res/mipmap-xxhdpi/ic_suyuan_func_3.png
Normal file
After Width: | Height: | Size: 12 KiB |
BIN
app/src/main/res/mipmap-xxhdpi/ic_suyuan_func_4.png
Normal file
After Width: | Height: | Size: 14 KiB |
BIN
app/src/main/res/mipmap-xxhdpi/ic_suyuan_func_5.png
Normal file
After Width: | Height: | Size: 13 KiB |
BIN
app/src/main/res/mipmap-xxhdpi/ic_suyuan_func_6.png
Normal file
After Width: | Height: | Size: 13 KiB |
BIN
app/src/main/res/mipmap-xxhdpi/ic_suyuan_func_7.png
Normal file
After Width: | Height: | Size: 11 KiB |
BIN
app/src/main/res/mipmap-xxhdpi/ic_suyuan_func_8.png
Normal file
After Width: | Height: | Size: 12 KiB |
BIN
app/src/main/res/mipmap-xxhdpi/ic_suyuan_func_9.png
Normal file
After Width: | Height: | Size: 14 KiB |
BIN
app/src/main/res/mipmap-xxhdpi/pic_suyuan_1.png
Normal file
After Width: | Height: | Size: 100 KiB |
BIN
app/src/main/res/mipmap-xxhdpi/pic_suyuan_10.png
Normal file
After Width: | Height: | Size: 598 KiB |
BIN
app/src/main/res/mipmap-xxhdpi/pic_suyuan_11.png
Normal file
After Width: | Height: | Size: 175 KiB |
BIN
app/src/main/res/mipmap-xxhdpi/pic_suyuan_12.png
Normal file
After Width: | Height: | Size: 164 KiB |
BIN
app/src/main/res/mipmap-xxhdpi/pic_suyuan_13.png
Normal file
After Width: | Height: | Size: 271 KiB |
BIN
app/src/main/res/mipmap-xxhdpi/pic_suyuan_14.png
Normal file
After Width: | Height: | Size: 204 KiB |
BIN
app/src/main/res/mipmap-xxhdpi/pic_suyuan_15.png
Normal file
After Width: | Height: | Size: 195 KiB |
BIN
app/src/main/res/mipmap-xxhdpi/pic_suyuan_16.png
Normal file
After Width: | Height: | Size: 221 KiB |
BIN
app/src/main/res/mipmap-xxhdpi/pic_suyuan_17.png
Normal file
After Width: | Height: | Size: 171 KiB |
BIN
app/src/main/res/mipmap-xxhdpi/pic_suyuan_18.png
Normal file
After Width: | Height: | Size: 542 KiB |
BIN
app/src/main/res/mipmap-xxhdpi/pic_suyuan_19.png
Normal file
After Width: | Height: | Size: 145 KiB |
BIN
app/src/main/res/mipmap-xxhdpi/pic_suyuan_2.png
Normal file
After Width: | Height: | Size: 113 KiB |
BIN
app/src/main/res/mipmap-xxhdpi/pic_suyuan_20.png
Normal file
After Width: | Height: | Size: 2.0 MiB |
BIN
app/src/main/res/mipmap-xxhdpi/pic_suyuan_21.png
Normal file
After Width: | Height: | Size: 356 KiB |
BIN
app/src/main/res/mipmap-xxhdpi/pic_suyuan_22.png
Normal file
After Width: | Height: | Size: 368 KiB |
BIN
app/src/main/res/mipmap-xxhdpi/pic_suyuan_23.png
Normal file
After Width: | Height: | Size: 220 KiB |
BIN
app/src/main/res/mipmap-xxhdpi/pic_suyuan_24.png
Normal file
After Width: | Height: | Size: 242 KiB |
BIN
app/src/main/res/mipmap-xxhdpi/pic_suyuan_25.png
Normal file
After Width: | Height: | Size: 1.2 MiB |
BIN
app/src/main/res/mipmap-xxhdpi/pic_suyuan_26.png
Normal file
After Width: | Height: | Size: 282 KiB |
BIN
app/src/main/res/mipmap-xxhdpi/pic_suyuan_27.png
Normal file
After Width: | Height: | Size: 82 KiB |
BIN
app/src/main/res/mipmap-xxhdpi/pic_suyuan_28.png
Normal file
After Width: | Height: | Size: 2.0 MiB |
BIN
app/src/main/res/mipmap-xxhdpi/pic_suyuan_29.png
Normal file
After Width: | Height: | Size: 2.7 MiB |
BIN
app/src/main/res/mipmap-xxhdpi/pic_suyuan_3.png
Normal file
After Width: | Height: | Size: 105 KiB |
BIN
app/src/main/res/mipmap-xxhdpi/pic_suyuan_30.png
Normal file
After Width: | Height: | Size: 63 KiB |
BIN
app/src/main/res/mipmap-xxhdpi/pic_suyuan_31.png
Normal file
After Width: | Height: | Size: 1.6 MiB |
BIN
app/src/main/res/mipmap-xxhdpi/pic_suyuan_32.png
Normal file
After Width: | Height: | Size: 316 KiB |
BIN
app/src/main/res/mipmap-xxhdpi/pic_suyuan_33.png
Normal file
After Width: | Height: | Size: 1.3 MiB |
BIN
app/src/main/res/mipmap-xxhdpi/pic_suyuan_4.png
Normal file
After Width: | Height: | Size: 111 KiB |
BIN
app/src/main/res/mipmap-xxhdpi/pic_suyuan_5.png
Normal file
After Width: | Height: | Size: 32 KiB |
BIN
app/src/main/res/mipmap-xxhdpi/pic_suyuan_6.png
Normal file
After Width: | Height: | Size: 263 KiB |
BIN
app/src/main/res/mipmap-xxhdpi/pic_suyuan_7.png
Normal file
After Width: | Height: | Size: 202 KiB |
BIN
app/src/main/res/mipmap-xxhdpi/pic_suyuan_8.png
Normal file
After Width: | Height: | Size: 191 KiB |
BIN
app/src/main/res/mipmap-xxhdpi/pic_suyuan_9.png
Normal file
After Width: | Height: | Size: 243 KiB |