提交 59bec11c authored 作者: lgd's avatar lgd

1.部门

2.//TODO erp用户激活,忘记密码测试,产品下单还差附件,bat,mes,消息,我的,刷新token
上级 f668c59c
...@@ -369,14 +369,29 @@ ...@@ -369,14 +369,29 @@
android:theme="@style/Work.Base" android:theme="@style/Work.Base"
android:windowSoftInputMode="adjustPan" /> android:windowSoftInputMode="adjustPan" />
<activity <activity
android:name=".ui.activity.bat.work.WorkProDepActivity" android:name=".ui.activity.bat.work.WorkDepActivity"
android:configChanges="keyboardHidden|orientation" android:configChanges="keyboardHidden|orientation"
android:label="部门" android:label="部门"
android:launchMode="singleTop" android:launchMode="singleTop"
android:screenOrientation="portrait" android:screenOrientation="portrait"
android:theme="@style/Work.Base" android:theme="@style/Work.Base"
android:windowSoftInputMode="adjustPan" /> android:windowSoftInputMode="adjustPan" />
<activity
android:name=".ui.activity.bat.work.WorkDepDetailActivity"
android:configChanges="keyboardHidden|orientation"
android:label="部门详情"
android:launchMode="singleTop"
android:screenOrientation="portrait"
android:theme="@style/Work.Base"
android:windowSoftInputMode="adjustPan" />
<activity
android:name=".ui.activity.bat.work.WorkDepPersonActivity"
android:configChanges="keyboardHidden|orientation"
android:label="部门成员"
android:launchMode="singleTop"
android:screenOrientation="portrait"
android:theme="@style/Work.Base"
android:windowSoftInputMode="adjustPan" />
<provider <provider
android:name="androidx.core.content.FileProvider" android:name="androidx.core.content.FileProvider"
android:authorities="com.wd.workoffice.fileprovider" android:authorities="com.wd.workoffice.fileprovider"
......
...@@ -497,7 +497,16 @@ public interface ApiService { ...@@ -497,7 +497,16 @@ public interface ApiService {
* @return * @return
*/ */
@GET("/sys/dept/list") @GET("/sys/dept/list")
Observable<BaseBean> getDep (@QueryMap Map<String, Object> param); Observable<BaseBean> getDep(@QueryMap Map<String, Object> param);
/**
* 获取部门详情
*
* @param id
* @return
*/
@GET("/sys/dept/{deptId}")
Observable<BaseBean> getDepDetail(@Path("deptId") String id);
} }
package com.wd.workoffice.ui.activity.bat.work; package com.wd.workoffice.ui.activity.bat.work;
import android.os.Bundle; import android.view.View;
import android.widget.Button; import android.widget.Button;
import android.widget.EditText; import android.widget.EditText;
...@@ -13,12 +13,9 @@ import com.wd.workoffice.R; ...@@ -13,12 +13,9 @@ import com.wd.workoffice.R;
import com.wd.workoffice.app.BaseBean; import com.wd.workoffice.app.BaseBean;
import com.wd.workoffice.app.WorkToolBarActivity; import com.wd.workoffice.app.WorkToolBarActivity;
import com.wd.workoffice.bean.DepBean; import com.wd.workoffice.bean.DepBean;
import com.wd.workoffice.bean.ProPriceBean;
import com.wd.workoffice.bean.WorkDep;
import com.wd.workoffice.retrofit.RtfUtils; import com.wd.workoffice.retrofit.RtfUtils;
import com.wd.workoffice.retrofit.WorkObserver; import com.wd.workoffice.retrofit.WorkObserver;
import com.wd.workoffice.ui.adapter.WorkDepAdapter; import com.wd.workoffice.ui.adapter.WorkDepAdapter;
import com.wd.workoffice.ui.adapter.WorkProPriceAdapter;
import com.wd.workoffice.util.WorkUtils; import com.wd.workoffice.util.WorkUtils;
import java.util.ArrayList; import java.util.ArrayList;
...@@ -39,7 +36,7 @@ import io.reactivex.disposables.Disposable; ...@@ -39,7 +36,7 @@ import io.reactivex.disposables.Disposable;
* email : lgd19940421@163.com * email : lgd19940421@163.com
* github: https://github.com/FlexibleXd * github: https://github.com/FlexibleXd
**/ **/
public class WorkProDepActivity extends WorkToolBarActivity { public class WorkDepActivity extends WorkToolBarActivity {
@BindView(R.id.rv_data) @BindView(R.id.rv_data)
RecyclerView rvData; RecyclerView rvData;
...@@ -122,6 +119,12 @@ public class WorkProDepActivity extends WorkToolBarActivity { ...@@ -122,6 +119,12 @@ public class WorkProDepActivity extends WorkToolBarActivity {
getData(); getData();
} }
}); });
dataAdapter.setOnItemClickListener(new BaseQuickAdapter.OnItemClickListener() {
@Override
public void onItemClick(BaseQuickAdapter adapter, View view, int position) {
startActivity(WorkDepDetailActivity.class, "id", dataList.get(position).getId() + "");
}
});
// dataAdapter.setOnLoadMoreListener(new BaseQuickAdapter.RequestLoadMoreListener() { // dataAdapter.setOnLoadMoreListener(new BaseQuickAdapter.RequestLoadMoreListener() {
// @Override // @Override
// public void onLoadMoreRequested() { // public void onLoadMoreRequested() {
...@@ -140,7 +143,7 @@ public class WorkProDepActivity extends WorkToolBarActivity { ...@@ -140,7 +143,7 @@ public class WorkProDepActivity extends WorkToolBarActivity {
@OnClick(R.id.btn_search) @OnClick(R.id.btn_search)
public void onViewClicked() { public void onViewClicked() {
page = 1; page = 1;
param.put("current", etKey.getText().toString()); param.put("name", etKey.getText().toString());
getData(); getData();
} }
} }
package com.wd.workoffice.ui.activity.bat.work;
import android.os.Bundle;
import android.text.TextUtils;
import android.widget.RelativeLayout;
import android.widget.Switch;
import android.widget.TextView;
import com.alibaba.fastjson.JSON;
import com.wd.workoffice.R;
import com.wd.workoffice.app.BaseBean;
import com.wd.workoffice.app.WorkToolBarActivity;
import com.wd.workoffice.bean.AccountBean;
import com.wd.workoffice.bean.DepBean;
import com.wd.workoffice.retrofit.RtfUtils;
import com.wd.workoffice.retrofit.WorkObserver;
import com.wd.workoffice.util.MathUtils;
import com.wd.workoffice.util.WorkUtils;
import java.util.List;
import butterknife.BindView;
import butterknife.ButterKnife;
import butterknife.OnClick;
import flexible.xd.android_base.network.rtfhttp.Transformer;
import io.reactivex.disposables.Disposable;
/**
* 工作台 - 部门列表 -详情
* author : flexible
* email : lgd19940421@163.com
* github: https://github.com/FlexibleXd
**/
public class WorkDepDetailActivity extends WorkToolBarActivity {
@BindView(R.id.tv_name)
TextView tvName;
@BindView(R.id.tv_type)
TextView tvType;
@BindView(R.id.tv_manager)
TextView tvManager;
@BindView(R.id.rl_person)
RelativeLayout rlPerson;
@BindView(R.id.tv_label)
TextView tvLabel;
@BindView(R.id.tv_role)
TextView tvRole;
@BindView(R.id.switch_open)
Switch switchOpen;
private DepBean dataBean;
@Override
protected void initView() {
ButterKnife.bind(this);
}
@Override
protected void initData() {
getData();
}
private void getData() {
RtfUtils.getRtf().getDepDetail(getIntent().getStringExtra("id")).compose(Transformer.schedule()).subscribe(new WorkObserver<BaseBean>() {
@Override
public void doOnSubscribe(Disposable d) {
}
@Override
public void onFail(String errorMsg) {
hideLoading();
toast(errorMsg);
}
@Override
public void onSuccess(BaseBean data) {
hideLoading();
if (data.getCode() != 0) {
toast(data.getMessage());
return;
}
dataBean = JSON.parseObject(data.getData().toString(), DepBean.class);
tvName.setText(dataBean.getName());
tvType.setText(WorkUtils.getDepType(dataBean.getType()));
List<DepBean.DeptRulerListBean> deptRulerList = dataBean.getDeptRulerList();
String returnData = "";
if (deptRulerList != null && deptRulerList.size() != 0) {
for (DepBean.DeptRulerListBean s : deptRulerList) {
returnData = returnData + s.getNickName() + ",";
}
returnData = returnData.substring(0, returnData.length() - 1);
} else {
returnData = "无";
}
tvManager.setText("管理员:" + returnData);
tvLabel.setText("标签:" + coverList(dataBean.getTag()));
tvRole.setText("权限:" + coverList(dataBean.getPermission()));
if (TextUtils.equals(dataBean.getStatus(), "1")) {
switchOpen.setChecked(true);
} else {
switchOpen.setChecked(false);
}
}
});
}
private String coverList(List<String> data) {
if (data != null && data.size() != 0) {
String returnData = "";
for (String s : data) {
returnData = returnData.concat(s).concat(",");
}
return returnData.substring(0, returnData.length() - 1);
} else {
return "无";
}
}
@Override
protected void initEvent() {
}
@Override
protected int layoutId() {
return R.layout.activity_work_dep_details;
}
@OnClick(R.id.rl_person)
public void onViewClicked() {
if (dataBean == null) {
toast("正在加载中,请稍后");
return;
}
startActivity(WorkDepPersonActivity.class,
"simple", JSON.toJSONString(dataBean.getDeptUserList()),
"manage", JSON.toJSONString(dataBean.getDeptRulerList()));
}
}
package com.wd.workoffice.ui.activity.bat.work;
import android.os.Bundle;
import android.view.View;
import android.widget.TextView;
import com.alibaba.fastjson.JSON;
import com.wd.workoffice.R;
import com.wd.workoffice.app.WorkToolBarActivity;
import com.wd.workoffice.bean.DepBean;
import com.wd.workoffice.ui.adapter.WorkDepManageAdapter;
import java.util.ArrayList;
import java.util.List;
import androidx.recyclerview.widget.LinearLayoutManager;
import androidx.recyclerview.widget.RecyclerView;
import butterknife.BindView;
import butterknife.ButterKnife;
/**
* author : flexible
* email : lgd19940421@163.com
* github: https://github.com/FlexibleXd
**/
public class WorkDepPersonActivity extends WorkToolBarActivity {
@BindView(R.id.rv_manger)
RecyclerView rvManger;
@BindView(R.id.rv_simple)
RecyclerView rvSimple;
@BindView(R.id.tv_manage)
TextView tvManage;
@BindView(R.id.tv_simple)
TextView tvSimple;
private List<String> manageList;
private List<String> simpleList;
private WorkDepManageAdapter manageAdapter;
private WorkDepManageAdapter simpleAdapter;
@Override
protected void initView() {
ButterKnife.bind(this);
rvSimple.setLayoutManager(new LinearLayoutManager(this, RecyclerView.VERTICAL, false));
rvManger.setLayoutManager(new LinearLayoutManager(this, RecyclerView.VERTICAL, false));
}
@Override
protected void initData() {
List<DepBean.DeptUserListBean> simple = JSON.parseArray(getIntent().getStringExtra("simple"), DepBean.DeptUserListBean.class);
List<DepBean.DeptRulerListBean> manage = JSON.parseArray(getIntent().getStringExtra("manage"), DepBean.DeptRulerListBean.class);
manageList = new ArrayList<>();
simpleList = new ArrayList<>();
for (DepBean.DeptUserListBean deptUserListBean : simple) {
simpleList.add(deptUserListBean.getNickName());
}
for (DepBean.DeptRulerListBean deptUserListBean : manage) {
manageList.add(deptUserListBean.getNickName());
}
if (manageList.size() == 0) {
tvManage.setVisibility(View.GONE);
}
if (simpleList.size() == 0) {
tvSimple.setVisibility(View.GONE);
}
manageAdapter = new WorkDepManageAdapter(R.layout.item_store_client, manageList);
simpleAdapter = new WorkDepManageAdapter(R.layout.item_store_client, simpleList);
manageAdapter.bindToRecyclerView(rvManger);
simpleAdapter.bindToRecyclerView(rvSimple);
}
@Override
protected void initEvent() {
}
@Override
protected int layoutId() {
return R.layout.activity_work_dep_person;
}
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
// TODO: add setContentView(...) invocation
ButterKnife.bind(this);
}
}
...@@ -54,6 +54,7 @@ public class WorkProPriceActivity extends WorkToolBarActivity { ...@@ -54,6 +54,7 @@ public class WorkProPriceActivity extends WorkToolBarActivity {
dataList = new ArrayList<>(); dataList = new ArrayList<>();
dataAdapter = new WorkProPriceAdapter(R.layout.item_pro_price, dataList); dataAdapter = new WorkProPriceAdapter(R.layout.item_pro_price, dataList);
dataAdapter.bindToRecyclerView(rvData); dataAdapter.bindToRecyclerView(rvData);
dataAdapter.setEmptyView(R.layout.view_empty_content,rvData);
param = WorkUtils.pageKey(); param = WorkUtils.pageKey();
param.put("productId", getIntent().getStringExtra("id")); param.put("productId", getIntent().getStringExtra("id"));
param.put("current", page); param.put("current", page);
......
...@@ -8,6 +8,7 @@ import com.chad.library.adapter.base.BaseViewHolder; ...@@ -8,6 +8,7 @@ import com.chad.library.adapter.base.BaseViewHolder;
import com.wd.workoffice.R; import com.wd.workoffice.R;
import com.wd.workoffice.bean.DepBean; import com.wd.workoffice.bean.DepBean;
import com.wd.workoffice.bean.ProPriceBean; import com.wd.workoffice.bean.ProPriceBean;
import com.wd.workoffice.util.WorkUtils;
import java.util.List; import java.util.List;
...@@ -24,15 +25,14 @@ public class WorkDepAdapter extends BaseQuickAdapter<DepBean, BaseViewHolder> { ...@@ -24,15 +25,14 @@ public class WorkDepAdapter extends BaseQuickAdapter<DepBean, BaseViewHolder> {
@Override @Override
protected void convert(BaseViewHolder helper, DepBean item) { protected void convert(BaseViewHolder helper, DepBean item) {
helper.setText(R.id.tv_name,item.getName()); helper.setText(R.id.tv_name, item.getName());
helper.setText(R.id.tv_dep,item.getParentId()); helper.setText(R.id.tv_dep, WorkUtils.getDepType(item.getType()));
if (TextUtils.equals(item.getStatus(), "1")) {
if (TextUtils.equals(item.getStatus(),"1")){ helper.setText(R.id.tv_status, "正常");
helper.setText(R.id.tv_status,"正常"); helper.setBackgroundRes(R.id.tv_status, R.drawable.shape_dep_status);
helper.setBackgroundRes(R.id.tv_status,R.drawable.shape_dep_status); } else {
}else { helper.setText(R.id.tv_status, "冻结");
helper.setText(R.id.tv_status,"冻结"); helper.setBackgroundRes(R.id.tv_status, R.drawable.shape_dep_status_freeze);
helper.setBackgroundRes(R.id.tv_status,R.drawable.shape_dep_status_freeze);
} }
} }
......
package com.wd.workoffice.ui.adapter;
import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.wd.workoffice.R;
import com.wd.workoffice.bean.ClientBean;
import java.util.List;
/**
* Created by flexible on 2018/8/13.
*/
public class WorkDepManageAdapter extends BaseQuickAdapter<String, BaseViewHolder> {
public WorkDepManageAdapter(int layoutResId, List data) {
super(layoutResId, data);
}
@Override
protected void convert(BaseViewHolder helper, String item) {
helper.setText(R.id.tv_name, item);
}
}
...@@ -26,8 +26,8 @@ import com.wd.workoffice.ui.activity.bat.sale.SaleSaleOrderActivity; ...@@ -26,8 +26,8 @@ import com.wd.workoffice.ui.activity.bat.sale.SaleSaleOrderActivity;
import com.wd.workoffice.ui.activity.bat.sale.SaleSupplierOrderActivity; import com.wd.workoffice.ui.activity.bat.sale.SaleSupplierOrderActivity;
import com.wd.workoffice.ui.activity.bat.work.WorkAccountActivity; import com.wd.workoffice.ui.activity.bat.work.WorkAccountActivity;
import com.wd.workoffice.ui.activity.bat.work.WorkContactsActivity; import com.wd.workoffice.ui.activity.bat.work.WorkContactsActivity;
import com.wd.workoffice.ui.activity.bat.work.WorkDepActivity;
import com.wd.workoffice.ui.activity.bat.work.WorkProActivity; import com.wd.workoffice.ui.activity.bat.work.WorkProActivity;
import com.wd.workoffice.ui.activity.bat.work.WorkProDepActivity;
import com.wd.workoffice.ui.activity.bat.work.WorkWarehouseActivity; import com.wd.workoffice.ui.activity.bat.work.WorkWarehouseActivity;
import com.wd.workoffice.ui.adapter.BatLayoutAdapter; import com.wd.workoffice.ui.adapter.BatLayoutAdapter;
import com.wd.workoffice.util.UserKeeper; import com.wd.workoffice.util.UserKeeper;
...@@ -257,7 +257,7 @@ public class MainFragment extends WorkBaseFg { ...@@ -257,7 +257,7 @@ public class MainFragment extends WorkBaseFg {
startActivity(WorkWarehouseActivity.class); startActivity(WorkWarehouseActivity.class);
break; break;
case 4: case 4:
startActivity(WorkProDepActivity.class); startActivity(WorkDepActivity.class);
break; break;
case 5: case 5:
break; break;
......
...@@ -65,6 +65,28 @@ public class WorkUtils { ...@@ -65,6 +65,28 @@ public class WorkUtils {
} }
} }
/**
* code: 1:生产部门 2:销售部门 3:业务部门
*
* @param code
* @return
*/
public static String getDepType(Integer code) {
String name = "";
switch (code) {
case 1:
name = "生产部门";
break;
case 2:
name = "销售部门";
break;
case 3:
name = "业务部门";
break;
}
return name;
}
public static File uriToFile(Uri uri, Context context) { public static File uriToFile(Uri uri, Context context) {
String path = null; String path = null;
if ("file".equals(uri.getScheme())) { if ("file".equals(uri.getScheme())) {
......
...@@ -37,7 +37,7 @@ ...@@ -37,7 +37,7 @@
android:layout_height="match_parent" android:layout_height="match_parent"
android:layout_marginLeft="2mm" android:layout_marginLeft="2mm"
android:background="@null" android:background="@null"
android:hint="搜索客户" android:hint="输入部门"
android:textColor="#91ABBA" android:textColor="#91ABBA"
android:textColorHint="#91ABBA" android:textColorHint="#91ABBA"
android:textSize="14sp" /> android:textSize="14sp" />
......
<?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="match_parent"
android:layout_marginTop="10mm"
android:orientation="vertical">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical">
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:background="@color/white"
android:gravity="center"
android:paddingHorizontal="20mm"
android:paddingVertical="15mm">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="部门名称"
android:textSize="16sp" />
<TextView
android:id="@+id/tv_name"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentRight="true"
android:text="销售二公司"
android:textColor="@color/main_sup_color"
android:textSize="16sp"
android:textStyle="bold" />
</RelativeLayout>
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:layout_marginTop="1mm"
android:background="@color/white"
android:gravity="center"
android:paddingHorizontal="20mm"
android:paddingVertical="15mm">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="部门类别"
android:textSize="16sp" />
<TextView
android:id="@+id/tv_type"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentRight="true"
android:text="销售部"
android:textColor="@color/main_sup_color"
android:textSize="16sp"
android:textStyle="bold" />
</RelativeLayout>
<RelativeLayout
android:id="@+id/rl_person"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="1mm"
android:background="@color/white"
android:orientation="horizontal"
android:paddingHorizontal="20mm"
android:paddingVertical="10mm">
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:orientation="vertical">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="部门成员"
android:textSize="16sp" />
<TextView
android:id="@+id/tv_manager"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="3mm"
android:text="管理员:无"
android:textColor="@color/main_sup_color"
android:textSize="12sp" />
</LinearLayout>
<ImageView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerVertical="true"
android:layout_alignParentRight="true"
android:background="@mipmap/arrow_right_blue" />
</RelativeLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="1mm"
android:background="@color/white"
android:orientation="vertical"
android:paddingHorizontal="20mm"
android:paddingVertical="10mm">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="部门标签"
android:textSize="16sp" />
<TextView
android:id="@+id/tv_label"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="3mm"
android:text="标签:无"
android:textColor="@color/main_sup_color"
android:textSize="12sp" />
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="1mm"
android:background="@color/white"
android:orientation="vertical"
android:paddingHorizontal="20mm"
android:paddingVertical="10mm">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="部门权限"
android:textSize="16sp" />
<TextView
android:id="@+id/tv_role"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="3mm"
android:text="权限:无"
android:textColor="@color/main_sup_color"
android:textSize="12sp" />
</LinearLayout>
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:layout_marginTop="1mm"
android:background="@color/white"
android:gravity="center"
android:paddingHorizontal="20mm"
android:paddingVertical="10mm">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerVertical="true"
android:text="是否启用"
android:textSize="16sp" />
<Switch
android:id="@+id/switch_open"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentRight="true"
android:layout_centerVertical="true"
android:layout_marginTop="8mm"
android:checked="false"
android:clickable="false"
android:thumb="@color/mainTextColor"
android:showText="false" />
</RelativeLayout>
</LinearLayout>
</LinearLayout>
</LinearLayout>
\ No newline at end of file
<?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">
<TextView
android:id="@+id/tv_manage"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:gravity="center"
android:paddingVertical="15mm"
android:text="管理员"
android:textColor="@color/main_sup_color"
android:textSize="16sp" />
<androidx.recyclerview.widget.RecyclerView
android:id="@+id/rv_manger"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@color/white" />
<TextView
android:id="@+id/tv_simple"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:gravity="center"
android:paddingVertical="15mm"
android:text="普通成员"
android:textColor="@color/main_sup_color"
android:textSize="16sp" />
<androidx.recyclerview.widget.RecyclerView
android:id="@+id/rv_simple"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@color/white" />
</LinearLayout>
\ No newline at end of file
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论