提交 150e5ad2 authored 作者: lgd's avatar lgd

1.mes网络框架

2.//TODO erp用户是否选择新部门为空,质检接口数据无对应问题,内部交易订单审核,审核规则,领用申请列表/退件列表/参数,坩埚下单,mes,刷新token
上级 a7102378
...@@ -1167,6 +1167,22 @@ ...@@ -1167,6 +1167,22 @@
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.mes.MesTicketActivity"
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.mes.MesTicketListActivity"
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"
......
...@@ -7,6 +7,8 @@ import com.scwang.smartrefresh.layout.SmartRefreshLayout; ...@@ -7,6 +7,8 @@ import com.scwang.smartrefresh.layout.SmartRefreshLayout;
import com.tencent.bugly.crashreport.CrashReport; import com.tencent.bugly.crashreport.CrashReport;
import com.wd.workoffice.R; import com.wd.workoffice.R;
import com.wd.workoffice.retrofit.ApiService; import com.wd.workoffice.retrofit.ApiService;
import com.wd.workoffice.retrofit.MesApiService;
import com.wd.workoffice.retrofit.RtfMesHelper;
import com.wd.workoffice.util.UserKeeper; import com.wd.workoffice.util.UserKeeper;
import cn.jpush.android.api.JPushInterface; import cn.jpush.android.api.JPushInterface;
...@@ -31,7 +33,6 @@ public class WorkApp extends BaseApp { ...@@ -31,7 +33,6 @@ public class WorkApp extends BaseApp {
instance = this; instance = this;
CrashReport.initCrashReport(getApplicationContext(), "8081eafad1", false); CrashReport.initCrashReport(getApplicationContext(), "8081eafad1", false);
Utils.init(this); Utils.init(this);
// daoInit();
AutoSizeConfig.getInstance().setCustomFragment(true); AutoSizeConfig.getInstance().setCustomFragment(true);
AutoSizeConfig.getInstance().getUnitsManager() AutoSizeConfig.getInstance().getUnitsManager()
.setSupportDP(false) .setSupportDP(false)
...@@ -47,7 +48,16 @@ public class WorkApp extends BaseApp { ...@@ -47,7 +48,16 @@ public class WorkApp extends BaseApp {
return chain.proceed(request); return chain.proceed(request);
}); });
// RtfHelper.getInstance().init(ApiService.DOMAIN); RtfMesHelper.getInstance().init(MesApiService.DOMAIN, chain -> {
Request original = chain.request();
Request request = original.newBuilder()
.header("Authorization", "Bearer "+UserKeeper.getInstance().getToken())
.header("userId",UserKeeper.getInstance().getUserId())
.method(original.method(), original.body())
.build();
return chain.proceed(request);
});
smartInit(); smartInit();
JPushInterface.setDebugMode(true); JPushInterface.setDebugMode(true);
JPushInterface.init(this); JPushInterface.init(this);
......
package com.wd.workoffice.retrofit;
import android.util.Log;
import com.franmontiel.persistentcookiejar.ClearableCookieJar;
import com.franmontiel.persistentcookiejar.PersistentCookieJar;
import com.franmontiel.persistentcookiejar.cache.SetCookieCache;
import com.franmontiel.persistentcookiejar.persistence.SharedPrefsCookiePersistor;
import java.io.IOException;
import java.util.concurrent.TimeUnit;
import flexible.xd.android_base.base.BaseApp;
import flexible.xd.android_base.network.rtfhttp.RtfHelper;
import flexible.xd.android_base.network.rtfhttp.conver.FastJsonConverterFactory;
import okhttp3.Interceptor;
import okhttp3.OkHttpClient;
import okhttp3.logging.HttpLoggingInterceptor;
import retrofit2.Retrofit;
import retrofit2.adapter.rxjava2.RxJava2CallAdapterFactory;
/**
* author : flexible
* email : lgd19940421@163.com
**/
public class RtfMesHelper {
private static RtfMesHelper instance;
private String rtfBaseUrl;
private Boolean DEBUG = true;
private int rtfConnectTimeout = 10;
private int rtfReadTimeout = 15;
private int rtfWriteTimeout = 15;
private Retrofit retrofit;
private OkHttpClient.Builder okHttpClient;
private RtfMesHelper() {
}
public static RtfMesHelper getInstance() {
if (instance == null) {
synchronized (RtfHelper.class) {
if (instance == null) {
instance = new RtfMesHelper();
}
}
}
return instance;
}
/**
* 初始化
*
* @param baseUrl
*/
public void init(String baseUrl) {
rtfBaseUrl = baseUrl;
ClearableCookieJar cookieJar = new PersistentCookieJar(new SetCookieCache(), new SharedPrefsCookiePersistor(BaseApp.getAppContext()));
okHttpClient = new OkHttpClient.Builder()
.hostnameVerifier((s, sslSession) -> true)
.cookieJar(cookieJar)
.connectTimeout(rtfConnectTimeout, TimeUnit.SECONDS)
.readTimeout(rtfReadTimeout, TimeUnit.SECONDS)
.writeTimeout(rtfWriteTimeout, TimeUnit.SECONDS);
if (DEBUG) {
//NONE:没有记录
//BASIC:日志请求类型,URL,请求体的大小,响应状态和响应体的大小
//HEADERS:日志请求和响应头,请求类型,URL,响应状态
//BODY:日志请求和响应标头和正文
HttpLoggingInterceptor loggingInterceptor = new HttpLoggingInterceptor(
message -> Log.i("flexible", message)
);
loggingInterceptor.setLevel(HttpLoggingInterceptor.Level.BODY);
okHttpClient.addInterceptor(loggingInterceptor);
}
OkHttpClient okHttpClient = this.okHttpClient.build();
retrofit = new Retrofit.Builder()
.baseUrl(baseUrl)
.client(okHttpClient)
.addConverterFactory(FastJsonConverterFactory.create())
.addCallAdapterFactory(RxJava2CallAdapterFactory.create())
.build();
}
/**
* 初始化
*
* @param baseUrl
*/
public void init(String baseUrl, Interceptor interceptor) {
rtfBaseUrl = baseUrl;
ClearableCookieJar cookieJar = new PersistentCookieJar(new SetCookieCache(), new SharedPrefsCookiePersistor(BaseApp.getAppContext()));
okHttpClient = new OkHttpClient.Builder()
.hostnameVerifier((s, sslSession) -> true)
.cookieJar(cookieJar)
.connectTimeout(rtfConnectTimeout, TimeUnit.SECONDS)
.readTimeout(rtfReadTimeout, TimeUnit.SECONDS)
.writeTimeout(rtfWriteTimeout, TimeUnit.SECONDS);
if (null != interceptor)
okHttpClient.addInterceptor(interceptor);
if (DEBUG) {
//NONE:没有记录
//BASIC:日志请求类型,URL,请求体的大小,响应状态和响应体的大小
//HEADERS:日志请求和响应头,请求类型,URL,响应状态
//BODY:日志请求和响应标头和正文
HttpLoggingInterceptor loggingInterceptor = new HttpLoggingInterceptor(
message -> Log.i("flexible", message)
);
loggingInterceptor.setLevel(HttpLoggingInterceptor.Level.BODY);
okHttpClient.addInterceptor(loggingInterceptor);
}
OkHttpClient okHttpClient = this.okHttpClient.build();
retrofit = new Retrofit.Builder()
.baseUrl(baseUrl)
.client(okHttpClient)
.addConverterFactory(FastJsonConverterFactory.create())
.addCallAdapterFactory(RxJava2CallAdapterFactory.create())
.build();
}
/**
* 初始化
*
* @param baseUrl
*/
public void init(String baseUrl, boolean debug) {
this.DEBUG = debug;
init(baseUrl, null);
}
/**
* 初始化
*
* @param baseUrl
* @param connectTimeout 连接超时时间
* @param readTimeout 读取超时时间
* @param writeTimeout 写入超时时间
*/
public void init(String baseUrl, boolean debug, int connectTimeout, int readTimeout, int writeTimeout) {
rtfConnectTimeout = connectTimeout;
rtfReadTimeout = readTimeout;
rtfWriteTimeout = writeTimeout;
init(baseUrl, debug);
}
public <T> T getApiService(Class<T> t) {
if (rtfBaseUrl == null) {
throw new RuntimeException("you should init first ");
}
return (T) retrofit.create(t);
}
public OkHttpClient.Builder getOkHttpClient() {
if (rtfBaseUrl == null) {
throw new RuntimeException("you should init first ");
}
return okHttpClient;
}
}
...@@ -11,4 +11,7 @@ public class RtfUtils { ...@@ -11,4 +11,7 @@ public class RtfUtils {
public static ApiService getRtf() { public static ApiService getRtf() {
return RtfHelper.getInstance().getApiService(ApiService.class); return RtfHelper.getInstance().getApiService(ApiService.class);
} }
public static MesApiService getMesRtf() {
return RtfHelper.getInstance().getApiService(MesApiService.class);
}
} }
...@@ -39,6 +39,7 @@ import com.wd.workoffice.ui.activity.bat.work.WorkFinancialActivity; ...@@ -39,6 +39,7 @@ import com.wd.workoffice.ui.activity.bat.work.WorkFinancialActivity;
import com.wd.workoffice.ui.activity.bat.work.WorkInStockActivity; import com.wd.workoffice.ui.activity.bat.work.WorkInStockActivity;
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.WorkWarehouseActivity; import com.wd.workoffice.ui.activity.bat.work.WorkWarehouseActivity;
import com.wd.workoffice.ui.activity.mes.MesTicketActivity;
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;
import com.wd.workoffice.util.WorkUtils; import com.wd.workoffice.util.WorkUtils;
...@@ -138,6 +139,19 @@ public class MesFragment extends WorkBaseFg { ...@@ -138,6 +139,19 @@ public class MesFragment extends WorkBaseFg {
break; break;
case 5: case 5:
break; break;
case 6:
break;
case 7:
break;
case 8:
break;
case 9:
break;
case 10:
break;
case 11:
startActivity(MesTicketActivity.class);
break;
} }
} }
}); });
......
...@@ -13,12 +13,14 @@ import android.widget.TextView; ...@@ -13,12 +13,14 @@ import android.widget.TextView;
import com.alibaba.fastjson.JSON; import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONObject; import com.alibaba.fastjson.JSONObject;
import com.chad.library.adapter.base.BaseQuickAdapter;
import com.wd.workoffice.R; import com.wd.workoffice.R;
import com.wd.workoffice.app.Config; import com.wd.workoffice.app.Config;
import com.wd.workoffice.app.WorkApp; import com.wd.workoffice.app.WorkApp;
import com.wd.workoffice.bean.workEnum.OrderType; import com.wd.workoffice.bean.workEnum.OrderType;
import com.wd.workoffice.bean.workEnum.PermissionType; import com.wd.workoffice.bean.workEnum.PermissionType;
import com.wd.workoffice.retrofit.RtfUtils; import com.wd.workoffice.retrofit.RtfUtils;
import com.wd.workoffice.ui.adapter.StarAdapter;
import java.io.File; import java.io.File;
import java.util.ArrayList; import java.util.ArrayList;
...@@ -26,7 +28,8 @@ import java.util.HashMap; ...@@ -26,7 +28,8 @@ import java.util.HashMap;
import java.util.List; import java.util.List;
import java.util.Map; import java.util.Map;
import flexible.xd.android_base.utils.LogUtils; import androidx.recyclerview.widget.LinearLayoutManager;
import androidx.recyclerview.widget.RecyclerView;
import okhttp3.MediaType; import okhttp3.MediaType;
import okhttp3.RequestBody; import okhttp3.RequestBody;
import retrofit2.Call; import retrofit2.Call;
...@@ -265,6 +268,7 @@ public class WorkUtils { ...@@ -265,6 +268,7 @@ public class WorkUtils {
} }
}); });
} }
/** /**
* 判断是否拥有权限 * 判断是否拥有权限
* *
...@@ -310,6 +314,19 @@ public class WorkUtils { ...@@ -310,6 +314,19 @@ public class WorkUtils {
return allChildren; return allChildren;
} }
/**
* 小星星布局
*
* @return
*/
public static StarAdapter starView(RecyclerView rvData, Context context) {
rvData.setLayoutManager(new LinearLayoutManager(context, RecyclerView.HORIZONTAL, false));
StarAdapter starAdapter = new StarAdapter(R.layout.item_star, null);
starAdapter.bindToRecyclerView(rvData);
return starAdapter;
}
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())) {
......
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="rectangle">
<solid android:color="#ff007aff" />
<corners android:radius="180mm" />
</shape>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="rectangle">
<solid android:color="@color/blue_btn" />
<corners android:radius="2dp" />
</shape>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android">
<stroke android:color="#D8DCE6" android:width="1dp"/>
<solid android:color="@color/white"/>
<corners android:radius="3dp"/>
</shape>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical">
<LinearLayout
android:id="@+id/ll_ticket"
style="@style/llStyle"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="10mm"
android:background="@color/white"
android:gravity="center_vertical"
android:orientation="horizontal">
<TextView
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:layout_weight="1"
android:text="服务工单"
android:textSize="16sp" />
<ImageView
android:layout_width="20mm"
android:layout_height="20mm"
android:background="@mipmap/arrow_right_my" />
</LinearLayout>
<LinearLayout
android:id="@+id/ll_data"
style="@style/llStyle"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="10mm"
android:background="@color/white"
android:gravity="center_vertical"
android:orientation="horizontal">
<TextView
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:layout_weight="1"
android:text="用户数据采集"
android:textSize="16sp" />
<ImageView
android:layout_width="20mm"
android:layout_height="20mm"
android:background="@mipmap/arrow_right_my" />
</LinearLayout>
<LinearLayout
android:id="@+id/ll_quality"
style="@style/llStyle"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="10mm"
android:background="@color/white"
android:gravity="center_vertical"
android:orientation="horizontal">
<TextView
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:layout_weight="1"
android:text="质量反馈"
android:textSize="16sp" />
<ImageView
android:layout_width="20mm"
android:layout_height="20mm"
android:background="@mipmap/arrow_right_my" />
</LinearLayout>
<LinearLayout
android:id="@+id/ll_search"
style="@style/llStyle"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="10mm"
android:background="@color/white"
android:gravity="center_vertical"
android:orientation="horizontal">
<TextView
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:layout_weight="1"
android:text="关联查询"
android:textSize="16sp" />
<ImageView
android:layout_width="20mm"
android:layout_height="20mm"
android:background="@mipmap/arrow_right_my" />
</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"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical">
<com.wd.workoffice.widget.DropDownMenu
android:id="@+id/ddm_choose"
android:layout_width="match_parent"
android:layout_height="match_parent"
app:dddividerColor="@color/divider"
app:ddmaskColor="#4d000000"
app:ddmenuBackgroundColor="@color/white"
app:ddmenuMenuHeightPercent="0.5"
app:ddmenuSelectedIcon="@mipmap/main_top"
app:ddmenuTextSize="13sp"
app:ddmenuUnselectedIcon="@mipmap/main_down"
app:ddtextSelectedColor="@color/mainTextColor"
app:ddtextUnselectedColor="@color/main_icon_select"
app:ddunderlineColor="@color/white" />
</LinearLayout>
\ No newline at end of file
...@@ -73,11 +73,11 @@ ...@@ -73,11 +73,11 @@
android:background="@mipmap/my_role" /> android:background="@mipmap/my_role" />
<TextView <TextView
android:layout_width="wrap_content" android:layout_width="0dp"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_gravity="center" android:layout_gravity="center"
android:layout_marginLeft="@dimen/dp_10" android:layout_marginLeft="10mm"
android:layout_weight="3" android:layout_weight="1"
android:text="我的权限" android:text="我的权限"
android:textSize="16sp" /> android:textSize="16sp" />
...@@ -106,11 +106,11 @@ ...@@ -106,11 +106,11 @@
android:background="@mipmap/my_info" /> android:background="@mipmap/my_info" />
<TextView <TextView
android:layout_width="wrap_content" android:layout_width="0dp"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_gravity="center" android:layout_gravity="center"
android:layout_marginLeft="@dimen/dp_10" android:layout_marginLeft="10mm"
android:layout_weight="3" android:layout_weight="1"
android:text="个人资料" android:text="个人资料"
android:textSize="16sp" /> android:textSize="16sp" />
...@@ -139,11 +139,11 @@ ...@@ -139,11 +139,11 @@
android:background="@mipmap/my_setting" /> android:background="@mipmap/my_setting" />
<TextView <TextView
android:layout_width="wrap_content" android:layout_width="0dp"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_gravity="center" android:layout_gravity="center"
android:layout_marginLeft="@dimen/dp_10" android:layout_marginLeft="10mm"
android:layout_weight="3" android:layout_weight="1"
android:text="系统设置" android:text="系统设置"
android:textSize="16sp" /> android:textSize="16sp" />
...@@ -153,6 +153,5 @@ ...@@ -153,6 +153,5 @@
android:background="@mipmap/arrow_right_my" /> android:background="@mipmap/arrow_right_my" />
</LinearLayout> </LinearLayout>
</LinearLayout> </LinearLayout>
</LinearLayout> </LinearLayout>
</androidx.core.widget.NestedScrollView> </androidx.core.widget.NestedScrollView>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginRight="6mm"
android:background="@color/white"
android:orientation="vertical"
>
<ImageView
android:id="@+id/iv_img"
android:layout_width="104mm"
android:layout_height="104mm"
/>
</LinearLayout>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@color/white"
android:orientation="vertical"
android:paddingHorizontal="14mm"
android:paddingVertical="10mm">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content">
<View
android:layout_width="14mm"
android:layout_height="14mm"
android:background="@drawable/shape_blue_circle" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginLeft="5mm"
android:text="2020.04.05"
android:textSize="17sp"
android:textStyle="bold" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginLeft="20mm"
android:text="2020.04.05"
android:textSize="17sp"
android:textStyle="bold" />
</LinearLayout>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginLeft="35mm"
android:layout_marginTop="14mm"
android:text="作业内容"
android:textColor="@color/blue_bg"
android:textSize="15sp" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginLeft="35mm"
android:layout_marginTop="10mm"
android:text="2020.04.05"
android:textSize="17sp"
android:textStyle="bold" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginLeft="35mm"
android:layout_marginTop="14mm"
android:text="作业内容"
android:textColor="@color/blue_bg"
android:textSize="15sp" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginLeft="35mm"
android:layout_marginTop="10mm"
android:text="2020.04.05"
android:textSize="17sp"
android:textStyle="bold" />
<androidx.recyclerview.widget.RecyclerView
android:id="@+id/rv_img"
android:layout_marginLeft="35mm"
android:layout_marginTop="10mm"
android:layout_width="match_parent"
android:layout_height="wrap_content"/>
</LinearLayout>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginRight="6mm"
android:orientation="vertical">
<ImageView
android:id="@+id/iv_img"
android:layout_width="26mm"
android:layout_height="26mm"
android:src="@mipmap/ticket_star_yellow" />
</LinearLayout>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@color/white"
android:paddingVertical="13mm">
<TextView
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
android:gravity="center"
android:text="客户姓名"
android:textSize="12sp" />
<TextView
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
android:gravity="center"
android:text="产品名称"
android:textSize="12sp" />
<TextView
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
android:gravity="center"
android:text="制单日期"
android:textSize="12sp" />
<TextView
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
android:gravity="center"
android:textColor="@color/red"
android:text="任务状态"
android:textSize="12sp" />
</LinearLayout>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<com.scwang.smartrefresh.layout.SmartRefreshLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/srl_refresh"
android:layout_width="match_parent"
android:layout_height="match_parent">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:paddingVertical="16mm">
<TextView
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
android:gravity="center"
android:text="客户姓名"
android:textColor="@color/flexible_text_sup"
android:textSize="12sp" />
<TextView
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
android:gravity="center"
android:text="产品名称"
android:textColor="@color/flexible_text_sup"
android:textSize="12sp" />
<TextView
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
android:gravity="center"
android:text="制单日期"
android:textColor="@color/flexible_text_sup"
android:textSize="12sp" />
<TextView
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
android:gravity="center"
android:text="任务状态"
android:textColor="@color/flexible_text_sup"
android:textSize="12sp" />
</LinearLayout>
<androidx.recyclerview.widget.RecyclerView
android:id="@+id/rv_data"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@android:color/white" />
</LinearLayout>
</com.scwang.smartrefresh.layout.SmartRefreshLayout>
\ No newline at end of file
...@@ -14,5 +14,6 @@ ...@@ -14,5 +14,6 @@
<color name="orange">#FF5722</color> <color name="orange">#FF5722</color>
<color name="flexible_text_color">#333333</color> <color name="flexible_text_color">#333333</color>
<color name="blue_bg">#5C768A</color> <color name="blue_bg">#5C768A</color>
<color name="blue_btn">#ff0379ff</color>
</resources> </resources>
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论