feat:
|
After Width: | Height: | Size: 16 KiB |
@ -1,45 +0,0 @@
|
||||
package com.example.tyre.maintenance;
|
||||
|
||||
import android.annotation.SuppressLint;
|
||||
import android.app.ProgressDialog;
|
||||
import android.content.Context;
|
||||
import android.os.Bundle;
|
||||
import android.view.View;
|
||||
import android.view.Window;
|
||||
|
||||
import androidx.annotation.Nullable;
|
||||
import androidx.appcompat.app.AppCompatActivity;
|
||||
|
||||
import com.google.gson.Gson;
|
||||
|
||||
import java.text.SimpleDateFormat;
|
||||
|
||||
public class BaseActivity extends AppCompatActivity {
|
||||
public SimpleDateFormat dateFormat ;
|
||||
public ProgressDialog dialog;
|
||||
public Context context;
|
||||
public Gson gson;
|
||||
@SuppressLint("SimpleDateFormat")
|
||||
@Override
|
||||
protected void onCreate(@Nullable Bundle savedInstanceState) {
|
||||
super.onCreate(savedInstanceState);
|
||||
context = this;
|
||||
dateFormat = new SimpleDateFormat("yyyy-MM-dd");
|
||||
gson=new Gson();
|
||||
initDialog();
|
||||
|
||||
}
|
||||
|
||||
public void onBackClick(View view) {
|
||||
finish();
|
||||
}
|
||||
|
||||
private void initDialog() {
|
||||
dialog = new ProgressDialog(context);
|
||||
dialog.requestWindowFeature(Window.FEATURE_NO_TITLE);
|
||||
dialog.setCanceledOnTouchOutside(false);
|
||||
dialog.setProgressStyle(ProgressDialog.STYLE_SPINNER);
|
||||
dialog.setMessage("loading...");
|
||||
}
|
||||
|
||||
}
|
||||
@ -1,16 +1,26 @@
|
||||
package com.example.tyre.maintenance;
|
||||
|
||||
import androidx.appcompat.app.AppCompatActivity;
|
||||
import androidx.databinding.DataBindingUtil;
|
||||
import androidx.databinding.ObservableBoolean;
|
||||
|
||||
import android.os.Bundle;
|
||||
import android.view.View;
|
||||
|
||||
import com.example.tyre.R;
|
||||
import com.example.tyre.databinding.ActivityTireRepairBinding;
|
||||
import com.example.tyre.maintenance.base.BaseActivity;
|
||||
|
||||
public class TireRepairActivity extends AppCompatActivity {
|
||||
|
||||
public class TireRepairActivity extends BaseActivity {
|
||||
private ObservableBoolean blockState1;
|
||||
@Override
|
||||
protected void onCreate(Bundle savedInstanceState) {
|
||||
super.onCreate(savedInstanceState);
|
||||
setContentView(R.layout.activity_tire_repair);
|
||||
ActivityTireRepairBinding binding = DataBindingUtil.setContentView(this, R.layout.activity_tire_repair);
|
||||
blockState1=new ObservableBoolean(false);
|
||||
binding.setBlockState1(blockState1);
|
||||
}
|
||||
|
||||
public void blockClick_1(View view) {
|
||||
blockState1.set(!blockState1.get());
|
||||
}
|
||||
}
|
||||
@ -1,17 +1,291 @@
|
||||
package com.example.tyre.maintenance;
|
||||
|
||||
import androidx.appcompat.app.AppCompatActivity;
|
||||
import android.content.Intent;
|
||||
import android.os.Bundle;
|
||||
import android.util.Log;
|
||||
import android.view.View;
|
||||
import android.widget.Toast;
|
||||
|
||||
import androidx.databinding.DataBindingUtil;
|
||||
|
||||
import android.os.Bundle;
|
||||
|
||||
import com.example.tyre.R;
|
||||
import com.example.tyre.UpActivity;
|
||||
import com.example.tyre.databinding.ActivityWorkExecuteBinding;
|
||||
import com.example.tyre.entity.AjaxResult;
|
||||
import com.example.tyre.entity.BaseCar;
|
||||
import com.example.tyre.maintenance.base.BaseActivity;
|
||||
import com.example.tyre.maintenance.base.MyRecultCall;
|
||||
import com.example.tyre.maintenance.base.MyResult;
|
||||
import com.example.tyre.maintenance.been.BaseTyre;
|
||||
import com.example.tyre.maintenance.been.BizOrderTireDetail;
|
||||
import com.example.tyre.maintenance.been.Order;
|
||||
import com.example.tyre.maintenance.dialog.TipResultDialog;
|
||||
import com.example.tyre.maintenance.dialog.TireChangeDialog;
|
||||
import com.example.tyre.maintenance.dialog.TireUpdateDialog;
|
||||
import com.example.tyre.util.CommonDialog;
|
||||
import com.example.tyre.util.MyUrl;
|
||||
import com.example.tyre.util.SharedPreferencesUtils;
|
||||
import com.google.gson.Gson;
|
||||
import com.google.gson.reflect.TypeToken;
|
||||
import com.lzy.okgo.OkGo;
|
||||
import com.lzy.okgo.callback.StringCallback;
|
||||
import com.lzy.okgo.model.Response;
|
||||
|
||||
public class WorkExecuteActivity extends AppCompatActivity {
|
||||
import java.io.File;
|
||||
import java.util.ArrayList;
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
public class WorkExecuteActivity extends BaseActivity {
|
||||
private ActivityWorkExecuteBinding binding;
|
||||
private Map<String, BaseTyre> tyreMap;
|
||||
private TireUpdateDialog tireUpdateDialog;//点击轮胎弹窗
|
||||
private Map<String, Object> orderSubmitMap;
|
||||
private List<BizOrderTireDetail> tireDetails;
|
||||
private List<File> fileList;
|
||||
private TipResultDialog tipDialog;
|
||||
private List<BaseTyre> baseTyreList;
|
||||
|
||||
@Override
|
||||
protected void onCreate(Bundle savedInstanceState) {
|
||||
super.onCreate(savedInstanceState);
|
||||
DataBindingUtil. setContentView(this,R.layout.activity_work_execute);
|
||||
binding = DataBindingUtil.setContentView(this, R.layout.activity_work_execute);
|
||||
Intent intent = getIntent();
|
||||
String carNo = intent.getStringExtra("carNo");
|
||||
binding.setCarNo(carNo);
|
||||
tyreMap = new HashMap<>();
|
||||
selectCarNo(carNo);
|
||||
selectTire(carNo);
|
||||
orderSubmitMap = new HashMap<>();
|
||||
Order order = gson.fromJson(intent.getStringExtra("json"), Order.class);
|
||||
orderSubmitMap.put("order", order);
|
||||
tireDetails = new ArrayList<>();
|
||||
fileList = new ArrayList<>();
|
||||
orderSubmitMap.put("tireDetails", tireDetails);
|
||||
binding.setSite(intent.getStringExtra("site"));
|
||||
binding.setDate(intent.getStringExtra("maintainDate"));
|
||||
tireUpdateDialog = new TireUpdateDialog(this, new TireUpdateDialog.TireUpdateDialogSaveListener() {
|
||||
@Override
|
||||
public void onSave(BizOrderTireDetail bizOrderTireDetail, File image) {
|
||||
// 返回轮胎信息
|
||||
bizOrderTireDetail.setOrderId(order.getOrderId());
|
||||
tireDetails.add(bizOrderTireDetail);
|
||||
fileList.add(image);
|
||||
tireUpdateDialog.dismiss();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onTakePhoto() {
|
||||
// 拍照
|
||||
try {
|
||||
teke_photo();
|
||||
} catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onChengeTong(String location) {
|
||||
// 同车互换
|
||||
|
||||
|
||||
}
|
||||
});
|
||||
|
||||
tireClick();
|
||||
tipDialog = new TipResultDialog(this, this);
|
||||
}
|
||||
|
||||
// 点击轮胎
|
||||
private void tireClick() {
|
||||
binding.tireClick1.layoutTireInfo.setOnClickListener(view -> {
|
||||
showDialog("左前轮");
|
||||
});
|
||||
binding.tireClick2.layoutTireInfo.setOnClickListener(view -> {
|
||||
showDialog("右前轮");
|
||||
});
|
||||
binding.tireClick3.layoutTireInfo.setOnClickListener(view -> {
|
||||
showDialog("左外轮");
|
||||
});
|
||||
binding.tireClick4.layoutTireInfo.setOnClickListener(view -> {
|
||||
showDialog("左内轮");
|
||||
});
|
||||
binding.tireClick5.layoutTireInfo.setOnClickListener(view -> {
|
||||
showDialog("右内轮");
|
||||
});
|
||||
binding.tireClick6.layoutTireInfo.setOnClickListener(view -> {
|
||||
showDialog("右外轮");
|
||||
});
|
||||
|
||||
}
|
||||
|
||||
// 显示轮胎弹窗
|
||||
private void showDialog(String location) {
|
||||
String s = binding.workLicheng.getText().toString();
|
||||
if (s.isEmpty()) {
|
||||
Toast.makeText(context, "先填写里程信息", Toast.LENGTH_SHORT).show();
|
||||
return;
|
||||
}
|
||||
BaseTyre baseTyre = tyreMap.get(location);
|
||||
if (baseTyre == null) {
|
||||
Intent intent = new Intent(this, UpActivity.class);
|
||||
intent.putExtra("state", true);
|
||||
startActivity(intent);
|
||||
}
|
||||
tireUpdateDialog.setBaseTyre(baseTyre);
|
||||
}
|
||||
|
||||
// 查询轮胎信息
|
||||
private void selectTire(String carNo) {
|
||||
OkGo.<String>post(MyUrl.url + "/tyre/tyre/getCarBingTire").tag(this).params("carNo", carNo)
|
||||
.execute(new StringCallback() {
|
||||
@Override
|
||||
public void onSuccess(Response<String> response) {
|
||||
|
||||
baseTyreList = gson.fromJson(response.body(), new TypeToken<List<BaseTyre>>() {
|
||||
}.getType());
|
||||
tireUpdateDialog.setBaseTyreList(baseTyreList);
|
||||
if (baseTyreList == null || baseTyreList.isEmpty()) return;
|
||||
baseTyreList.forEach(tire -> {
|
||||
String wheelPostion = tire.getWheelPostion();
|
||||
tyreMap.put(wheelPostion, tire);
|
||||
initTire(wheelPostion, tire);
|
||||
});
|
||||
}
|
||||
});
|
||||
/* .execute(new MyRecultCall(dialog, this) {
|
||||
@Override
|
||||
public void onSuccess(Response<MyResult> response) {
|
||||
super.onSuccess(response);
|
||||
var body = response.body();
|
||||
// if (body.getCode() == 0) {
|
||||
List<BaseTyre> baseTyreList =
|
||||
gson.fromJson(body.getJson(), new TypeToken<List<BaseTyre>>() {
|
||||
}.getType());
|
||||
if (baseTyreList == null || baseTyreList.isEmpty()) return;
|
||||
baseTyreList.forEach(tire -> {
|
||||
String wheelPostion = tire.getWheelPostion();
|
||||
tyreMap.put(wheelPostion, tire);
|
||||
initTire(wheelPostion, tire);
|
||||
});
|
||||
// }
|
||||
|
||||
}
|
||||
});*/
|
||||
|
||||
}
|
||||
|
||||
// 初始化轮胎信息
|
||||
private void initTire(String wheelPostion, BaseTyre baseTyre) {
|
||||
|
||||
switch (wheelPostion) {
|
||||
case "左前轮":
|
||||
binding.setTire1(baseTyre);
|
||||
break;
|
||||
case "右前轮":
|
||||
binding.setTire2(baseTyre);
|
||||
break;
|
||||
case "左外轮":
|
||||
binding.setTire3(baseTyre);
|
||||
break;
|
||||
case "左内轮":
|
||||
binding.setTire4(baseTyre);
|
||||
break;
|
||||
|
||||
case "右内轮":
|
||||
binding.setTire5(baseTyre);
|
||||
break;
|
||||
case "右外轮":
|
||||
binding.setTire6(baseTyre);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// 查询车辆信息
|
||||
private void selectCarNo(String carNo) {
|
||||
OkGo.<MyResult>post(MyUrl.url + "/tyre/car/PdaQueryCarList").tag(this).params("carNo", carNo).execute(new MyRecultCall(dialog, this) {
|
||||
@Override
|
||||
public void onSuccess(Response<MyResult> response) {
|
||||
super.onSuccess(response);
|
||||
var body = response.body();
|
||||
if (body.getCode() == 0) {
|
||||
List<BaseCar> baseCarList = gson.fromJson(body.getJson(), new TypeToken<List<BaseCar>>() {
|
||||
}.getType());
|
||||
binding.setLine(baseCarList.get(0).getLine());
|
||||
}
|
||||
|
||||
}
|
||||
});
|
||||
|
||||
}
|
||||
|
||||
// 提交处理
|
||||
public void submitWorkExecute(View view) {
|
||||
Order order = (Order) orderSubmitMap.get("order");
|
||||
order.setInputMileage(binding.workLicheng.getText().toString());
|
||||
order.setDescription(binding.workBuchong.getText().toString());
|
||||
Log.e("TAG", "提交:" + fileList.size());
|
||||
Log.e("TAG", "提交:" + fileList.get(0).getPath());
|
||||
OkGo.<MyResult>post(MyUrl.url + "/tyre/order/PDASaveMaintenanceOrder")
|
||||
.params("json", gson.toJson(orderSubmitMap))
|
||||
.addFileParams("files", fileList)
|
||||
.execute(new MyRecultCall(dialog, this) {
|
||||
@Override
|
||||
public void onSuccess(Response<MyResult> response) {
|
||||
super.onSuccess(response);
|
||||
var body = response.body();
|
||||
if (body.getCode() == 0) {
|
||||
tipDialog.show(true, "处理完成!", "状态已变更为【已完成】,不可再次修改。", true);
|
||||
return;
|
||||
}
|
||||
tipDialog.show(false, null, body.getMsg(), false);
|
||||
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
// 返回照片
|
||||
@Override
|
||||
public void tekePhotoResult(String fileUrl, File file) {
|
||||
super.tekePhotoResult(fileUrl, file);
|
||||
Log.e("TAG", "拍照成功,路径是:" + fileUrl);
|
||||
tireUpdateDialog.setImage(file);
|
||||
}
|
||||
|
||||
|
||||
// 删除实时表、卸车记录表
|
||||
private void down_insert(String rfid, String carNo, String millage, String wheel, String patternDepth) {
|
||||
OkGo.<String>post(MyUrl.url + "/tyre/install/PdaUnInstallTyre").tag(this)
|
||||
.params("tyreRfid", rfid)
|
||||
.params("mileage", millage)
|
||||
.params("carNo", carNo)
|
||||
.params("wheelPostion", wheel)
|
||||
.params("patternDepth", patternDepth)
|
||||
.params("CreateBy", SharedPreferencesUtils.getstring("user", "admin"))
|
||||
.execute(new StringCallback() {
|
||||
@Override
|
||||
public void onSuccess(Response<String> response) {
|
||||
String body = response.body();
|
||||
|
||||
Gson gson = new Gson();
|
||||
AjaxResult ajaxResult = gson.fromJson(body, AjaxResult.class);
|
||||
handleResponse(ajaxResult);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
private void handleResponse(AjaxResult result) {
|
||||
switch (result.getCode()) {
|
||||
case "500":
|
||||
new CommonDialog(this).setMessage(result.getMsg()).show();
|
||||
break;
|
||||
case "0":
|
||||
new CommonDialog(this).setMessage(result.getMsg()).show();
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,73 @@
|
||||
package com.example.tyre.maintenance.adapter;
|
||||
|
||||
import android.content.Context;
|
||||
import android.view.LayoutInflater;
|
||||
import android.view.ViewGroup;
|
||||
|
||||
import androidx.annotation.NonNull;
|
||||
import androidx.databinding.DataBindingUtil;
|
||||
import androidx.recyclerview.widget.RecyclerView;
|
||||
|
||||
import com.example.tyre.BR;
|
||||
import com.example.tyre.R;
|
||||
import com.example.tyre.databinding.ItemOrderInfoBinding;
|
||||
import com.example.tyre.maintenance.been.Order;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
public class OrderAdapter extends RecyclerView.Adapter<OrderAdapter.MyViewHolder> {
|
||||
|
||||
private List<Order> list;
|
||||
private Context context;
|
||||
private LayoutInflater inflater;
|
||||
private SelectTagAdapterListener listener;
|
||||
|
||||
public OrderAdapter(Context context, SelectTagAdapterListener listener) {
|
||||
this.context = context;
|
||||
inflater = LayoutInflater.from(context);
|
||||
this.listener = listener;
|
||||
}
|
||||
|
||||
public void setList(List<Order> list) {
|
||||
this.list = list;
|
||||
}
|
||||
|
||||
@NonNull
|
||||
@Override
|
||||
public MyViewHolder onCreateViewHolder(@NonNull ViewGroup parent, int viewType) {
|
||||
ItemOrderInfoBinding binding =
|
||||
DataBindingUtil.inflate(inflater, R.layout.item_order_info, parent, false);
|
||||
return new MyViewHolder(binding);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onBindViewHolder(@NonNull MyViewHolder holder, int position) {
|
||||
var tag = list.get(position);
|
||||
holder.binding.setVariable(BR.item, tag);
|
||||
holder.binding.itemOrderLayout.setOnClickListener(v -> {
|
||||
listener.onTagClick(position);
|
||||
});
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public int getItemCount() {
|
||||
return list == null ? 0 : list.size();
|
||||
}
|
||||
|
||||
public interface SelectTagAdapterListener {
|
||||
void onTagClick(int position);
|
||||
}
|
||||
|
||||
public class MyViewHolder extends RecyclerView.ViewHolder {
|
||||
private ItemOrderInfoBinding binding;
|
||||
|
||||
public MyViewHolder(@NonNull ItemOrderInfoBinding binding) {
|
||||
super(binding.getRoot());
|
||||
this.binding = binding;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,65 @@
|
||||
package com.example.tyre.maintenance.base;
|
||||
|
||||
import android.app.ProgressDialog;
|
||||
import android.content.Context;
|
||||
import android.util.Log;
|
||||
import android.widget.Toast;
|
||||
|
||||
import com.google.gson.Gson;
|
||||
import com.lzy.okgo.callback.AbsCallback;
|
||||
import com.lzy.okgo.model.Response;
|
||||
import com.lzy.okgo.request.base.Request;
|
||||
|
||||
import okhttp3.ResponseBody;
|
||||
|
||||
/**
|
||||
* @author wanghao
|
||||
* @date 2023/11/20 14:27
|
||||
*/
|
||||
public class MyRecultCall extends AbsCallback<MyResult> {
|
||||
private ProgressDialog dialog;
|
||||
private Context context;
|
||||
|
||||
public MyRecultCall(ProgressDialog dialog, Context context) {
|
||||
this.dialog = dialog;
|
||||
this.context = context;
|
||||
}
|
||||
|
||||
@Override
|
||||
public MyResult convertResponse(okhttp3.Response response) throws Throwable {
|
||||
ResponseBody body = response.body();
|
||||
if (body == null) return null;
|
||||
Gson gson = new Gson();
|
||||
MyResult resust = gson.fromJson(body.string(), MyResult.class);
|
||||
resust.setJson(gson.toJson(resust.getData()));
|
||||
return resust;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onSuccess(Response<MyResult> response) {
|
||||
dialog.dismiss();
|
||||
// Log.e("网络请求情况", "onSuccess:");
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onError(Response<MyResult> response) {
|
||||
super.onError(response);
|
||||
dialog.dismiss();
|
||||
Log.e("网络请求情况", "onError:" );
|
||||
Toast.makeText(context, "网络连接错误", Toast.LENGTH_SHORT).show();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onStart(Request<MyResult, ? extends Request> request) {
|
||||
super.onStart(request);
|
||||
dialog.show();
|
||||
// Log.e("网络请求情况", "onStart:" );
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onFinish() {
|
||||
super.onFinish();
|
||||
dialog.dismiss();
|
||||
Log.e("网络请求情况", "onFinish:" );
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,62 @@
|
||||
package com.example.tyre.maintenance.base;
|
||||
|
||||
/**
|
||||
* @author wanghao
|
||||
* @date 2023/12/21 15:31
|
||||
*/
|
||||
public class MyResult {
|
||||
private int code;
|
||||
private String msg;
|
||||
private String json;
|
||||
private Object data;
|
||||
private Object rows;
|
||||
private int total;
|
||||
|
||||
public String getJson() {
|
||||
return json;
|
||||
}
|
||||
|
||||
public void setJson(String json) {
|
||||
this.json = json;
|
||||
}
|
||||
|
||||
public int getTotal() {
|
||||
return total;
|
||||
}
|
||||
|
||||
public void setTotal(int total) {
|
||||
this.total = total;
|
||||
}
|
||||
|
||||
public Object getRows() {
|
||||
return rows;
|
||||
}
|
||||
|
||||
public void setRows(Object rows) {
|
||||
this.rows = rows;
|
||||
}
|
||||
|
||||
public int getCode() {
|
||||
return code;
|
||||
}
|
||||
|
||||
public void setCode(int code) {
|
||||
this.code = code;
|
||||
}
|
||||
|
||||
public String getMsg() {
|
||||
return msg;
|
||||
}
|
||||
|
||||
public void setMsg(String msg) {
|
||||
this.msg = msg;
|
||||
}
|
||||
|
||||
public Object getData() {
|
||||
return data;
|
||||
}
|
||||
|
||||
public void setData(Object data) {
|
||||
this.data = data;
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,7 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<selector xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<!-- 选中状态的颜色 -->
|
||||
<item android:color="@color/blue1_2" android:state_checked="true"/>
|
||||
<!-- 未选中状态的颜色 -->
|
||||
<item android:color="@color/blue1_3"/>
|
||||
</selector>
|
||||
@ -0,0 +1,7 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<selector xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<!-- 选中状态的颜色 -->
|
||||
<item android:color="@color/blue1_1" android:state_checked="true"/>
|
||||
<!-- 未选中状态的颜色 -->
|
||||
<item android:color="@color/blue1_3"/>
|
||||
</selector>
|
||||
@ -0,0 +1,5 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<selector xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<item android:color="@color/blue1_1" android:state_selected="true"/>
|
||||
<item android:color="@color/black"/>
|
||||
</selector>
|
||||
@ -0,0 +1,19 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<selector xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<item android:state_selected="true">
|
||||
<shape android:shape="rectangle">
|
||||
<solid android:color="#E7F7F4" />
|
||||
<corners android:radius="8dp" />
|
||||
<stroke android:width="1dp" android:color="#58D48C" android:dashWidth="4dp" android:dashGap="2dp"/>
|
||||
</shape>
|
||||
</item>
|
||||
<!-- 未选中状态:深色透明背景 -->
|
||||
<item>
|
||||
<shape android:shape="rectangle">
|
||||
<corners android:radius="8dp" />
|
||||
<solid android:color="@color/blue1_3" /> <!-- 浅白边框 -->
|
||||
<stroke android:width="1dp" android:color="@color/textColor2" android:dashWidth="4dp" android:dashGap="2dp"/>
|
||||
|
||||
</shape>
|
||||
</item>
|
||||
</selector>
|
||||
@ -0,0 +1,17 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<selector xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<item android:state_selected="true">
|
||||
<shape android:shape="rectangle">
|
||||
<solid android:color="@color/blue1_2" />
|
||||
<corners android:radius="8dp" />
|
||||
<stroke android:width="1dp" android:color="@color/blue1_1" />
|
||||
</shape>
|
||||
</item>
|
||||
<!-- 未选中状态:深色透明背景 -->
|
||||
<item>
|
||||
<shape android:shape="rectangle">
|
||||
<corners android:radius="8dp" />
|
||||
<solid android:color="@color/blue1_3" /> <!-- 浅白边框 -->
|
||||
</shape>
|
||||
</item>
|
||||
</selector>
|
||||
@ -0,0 +1,5 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<shape xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<solid android:color="@color/blue1_2"/>
|
||||
<corners android:radius="4dp"/>
|
||||
</shape>
|
||||
@ -0,0 +1,5 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<shape xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<solid android:color="@color/black"/>
|
||||
<corners android:radius="16dp"/>
|
||||
</shape>
|
||||
@ -1,5 +1,5 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<shape xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<solid android:color="#4B84FE"/>
|
||||
<solid android:color="@color/blue1_1"/>
|
||||
<corners android:radius="10dp"/>
|
||||
</shape>
|
||||
@ -0,0 +1,5 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<shape xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<solid android:color="@color/white"/>
|
||||
<corners android:radius="16dp"/>
|
||||
</shape>
|
||||
@ -0,0 +1,5 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<shape xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<solid android:color="@color/green1_2"/>
|
||||
<corners android:radius="4dp"/>
|
||||
</shape>
|
||||
@ -1,6 +1,6 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<shape xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<solid android:color="#E3E6EC"
|
||||
<solid android:color="#F7F8F9"
|
||||
/>
|
||||
|
||||
<corners android:radius="6dp"/>
|
||||
|
||||
@ -0,0 +1,7 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<shape xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<solid android:color="#F7F8F9"
|
||||
/>
|
||||
|
||||
<corners android:topLeftRadius="12dp" android:topRightRadius="12dp"/>
|
||||
</shape>
|
||||
@ -0,0 +1,5 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<shape xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<solid android:color="@color/orange1_2"/>
|
||||
<corners android:radius="4dp"/>
|
||||
</shape>
|
||||
@ -0,0 +1,8 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<selector xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<item android:state_selected="true" android:drawable="@drawable/bg_state_2"/>
|
||||
|
||||
<!-- 未选中状态:深色透明背景 -->
|
||||
<item android:drawable="@drawable/bg_state_1" />
|
||||
|
||||
</selector>
|
||||
@ -0,0 +1,5 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<shape xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<solid android:color="@color/buttonColor2" />
|
||||
<corners android:radius="8dp" />
|
||||
</shape>
|
||||
@ -0,0 +1,26 @@
|
||||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:width="108dp"
|
||||
android:height="108dp"
|
||||
android:viewportWidth="767"
|
||||
android:viewportHeight="826">
|
||||
<group android:scaleX="0.43694445"
|
||||
android:scaleY="0.47055554"
|
||||
android:translateX="215.93181"
|
||||
android:translateY="218.66055">
|
||||
<path
|
||||
android:pathData="M232.9,627H508.68V654.58C508.68,669.81 521.03,682.15 536.26,682.15H563.84C579.07,682.15 591.42,669.81 591.42,654.58V627H619V406.36H646.58V296.05H619V213.31C619,182.85 594.3,158.15 563.84,158.15H177.74C147.27,158.15 122.58,182.85 122.58,213.31V296.05H95V406.36H122.58V627H150.16V654.58C150.16,669.81 162.51,682.15 177.74,682.15H205.32C220.55,682.15 232.9,669.81 232.9,654.58V627ZM177.74,406.36V213.31H563.84V406.36H177.74ZM177.74,461.52H563.84V571.84H177.74V461.52ZM536.26,489.1H425.95V544.26H536.26V489.1ZM315.63,489.1H205.32V544.26H315.63V489.1Z"
|
||||
android:fillColor="#262626"/>
|
||||
<path
|
||||
android:pathData="M656.15,200.56C706,200.56 746.41,160.15 746.41,110.31L766.46,110.31C766.46,171.23 717.08,220.62 656.15,220.62V200.56ZM656.15,20.06C606.31,20.06 565.9,60.46 565.9,110.31L545.85,110.31C545.85,49.39 595.23,-0 656.15,0L656.15,20.06ZM656.16,160.45C683.85,160.45 706.29,138 706.29,110.31L726.35,110.31C726.35,149.08 694.92,180.5 656.16,180.5V160.45ZM656.16,60.17C628.46,60.17 606.02,82.62 606.02,110.31L585.96,110.31C585.96,71.54 617.39,40.11 656.16,40.11L656.16,60.17ZM641.97,124.49C649.8,132.32 662.5,132.32 670.34,124.49C678.17,116.66 678.17,103.96 670.34,96.13C662.5,88.29 649.8,88.29 641.97,96.13C634.14,103.96 634.14,116.66 641.97,124.49Z"
|
||||
android:fillColor="#262626"/>
|
||||
<path
|
||||
android:pathData="M287,681.65C287,760.91 222.75,825.15 143.5,825.15C64.25,825.15 0,760.91 0,681.65C0,602.4 64.25,538.15 143.5,538.15C222.75,538.15 287,602.4 287,681.65Z"
|
||||
android:fillColor="#ffffff"/>
|
||||
<path
|
||||
android:pathData="M143.87,556.15C74.35,556.15 18,612.51 18,682.02C18,751.53 74.35,807.88 143.87,807.88C213.38,807.88 269.73,751.53 269.73,682.02C269.73,612.51 213.38,556.15 143.87,556.15ZM143.87,602.99C187.51,602.99 222.9,638.37 222.9,682.02C222.9,725.67 187.51,761.05 143.87,761.05C100.22,761.05 64.83,725.67 64.83,682.02C64.83,638.37 100.22,602.99 143.87,602.99Z"
|
||||
android:fillColor="#262626"/>
|
||||
<path
|
||||
android:pathData="M118.87,707.08L95.56,720.52C105.31,732.65 119.29,740.63 134.69,742.85V716.02C128.72,714.47 123.26,711.39 118.87,707.07V707.08ZM152.26,716.02V742.85C167.74,740.62 181.79,732.56 191.54,720.32L168.26,706.89C163.84,711.3 158.31,714.46 152.26,716.02ZM143.47,658.59C137.26,658.59 131.3,661.05 126.91,665.44C122.52,669.84 120.05,675.79 120.05,682C120.05,688.21 122.52,694.17 126.91,698.56C131.3,702.95 137.26,705.42 143.47,705.42C149.68,705.42 155.63,702.95 160.03,698.56C164.42,694.17 166.88,688.21 166.88,682C166.88,675.79 164.42,669.84 160.03,665.44C155.63,661.05 149.68,658.59 143.47,658.59ZM82,682C82,690.29 83.64,698.2 86.61,705.41L109.8,692.03C108.83,688.77 108.34,685.4 108.34,682C108.34,678.88 108.75,675.84 109.51,672.96L86.24,659.53C83.5,666.49 82,674.07 82,682ZM200.79,659.77L177.49,673.22C179.06,679.32 178.96,685.72 177.22,691.77L200.42,705.17C203.42,697.82 204.95,689.95 204.94,682C204.94,674.16 203.47,666.66 200.79,659.77ZM152.26,621.15L152.26,647.98C158.65,649.64 164.45,653.06 168.98,657.85L192.16,644.48C182.4,631.8 168.09,623.44 152.26,621.15H152.26ZM94.94,644.27L118.14,657.66C122.65,652.97 128.38,649.62 134.69,647.99V621.16C118.95,623.43 104.7,631.72 94.95,644.27L94.94,644.27Z"
|
||||
android:fillColor="#262626"/>
|
||||
</group>
|
||||
</vector>
|
||||
@ -1,152 +1,161 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:orientation="vertical"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:background="@mipmap/homepagebg">
|
||||
android:background="@color/white"
|
||||
android:orientation="vertical">
|
||||
|
||||
<TextView
|
||||
style="@style/tablebarStyle"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="30dp"
|
||||
android:text="首 页"
|
||||
android:textColor="@color/black"
|
||||
/>
|
||||
<TextView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="55dp"
|
||||
android:text="公交轮胎管理系统"
|
||||
android:textColor="@color/black"
|
||||
android:gravity="center"
|
||||
android:textSize="25sp"
|
||||
android:layout_marginTop="20dp"
|
||||
android:textStyle="bold"
|
||||
android:letterSpacing="0.1"
|
||||
/>
|
||||
|
||||
<RadioGroup
|
||||
android:id="@+id/homePage_Frist"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="120dp"
|
||||
android:layout_marginStart="10dp"
|
||||
android:layout_marginEnd="10dp"
|
||||
android:layout_alignParentBottom="true"
|
||||
android:layout_marginStart="10dp"
|
||||
android:layout_marginTop="50dp"
|
||||
android:orientation="horizontal" >
|
||||
android:layout_marginEnd="10dp"
|
||||
android:orientation="horizontal">
|
||||
|
||||
<RadioButton
|
||||
android:id="@+id/chaxun"
|
||||
style="@style/TabRadioButton"
|
||||
android:drawableTop="@mipmap/serach"
|
||||
android:text="信息查询"
|
||||
/>
|
||||
android:drawableTop="@mipmap/icon_home1"
|
||||
android:text="轮胎信息" />
|
||||
|
||||
<RadioButton
|
||||
android:id="@+id/ruku"
|
||||
style="@style/TabRadioButton"
|
||||
android:text="轮胎入库"
|
||||
android:drawableTop="@mipmap/ru"
|
||||
android:textColor="@color/white"/>
|
||||
android:drawableTop="@mipmap/icon_home2"
|
||||
android:text="轮胎入库" />
|
||||
|
||||
<RadioButton
|
||||
android:id="@+id/chuku"
|
||||
style="@style/TabRadioButtonTwo"
|
||||
style="@style/TabRadioButton"
|
||||
android:drawableTop="@mipmap/icon_home3"
|
||||
android:text="轮胎出库"
|
||||
android:drawableTop="@mipmap/chu"
|
||||
android:textColor="@color/white"
|
||||
|
||||
/>
|
||||
|
||||
|
||||
<!--<RadioButton-->
|
||||
<!--android:id="@+id/zhijian"-->
|
||||
<!--style="@style/TabRadioButton"-->
|
||||
<!--android:text="质检管理"-->
|
||||
<!--android:drawableTop="@mipmap/zhijian"-->
|
||||
<!--android:textColor="@color/white"/>-->
|
||||
<!--android:id="@+id/zhijian"-->
|
||||
<!--style="@style/TabRadioButton"-->
|
||||
<!--android:text="质检管理"-->
|
||||
<!--android:drawableTop="@mipmap/zhijian"-->
|
||||
<!--/>-->
|
||||
</RadioGroup>
|
||||
|
||||
<RadioGroup
|
||||
android:id="@+id/homePage_Second"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="120dp"
|
||||
android:layout_marginStart="10dp"
|
||||
android:layout_marginEnd="10dp"
|
||||
android:layout_alignParentBottom="true"
|
||||
android:layout_marginStart="10dp"
|
||||
android:layout_marginTop="20dp"
|
||||
android:orientation="horizontal" >
|
||||
android:layout_marginEnd="10dp"
|
||||
android:orientation="horizontal">
|
||||
|
||||
<RadioButton
|
||||
android:id="@+id/zhuangxie"
|
||||
style="@style/TabRadioButton"
|
||||
android:text="轮胎装车"
|
||||
android:drawableTop="@mipmap/up"
|
||||
android:textColor="@color/white"/>
|
||||
android:drawableTop="@mipmap/icon_home4"
|
||||
android:text="轮胎装车" />
|
||||
|
||||
<RadioButton
|
||||
android:id="@+id/huanwei"
|
||||
style="@style/TabRadioButton"
|
||||
android:text="轮胎卸车"
|
||||
android:drawableTop="@mipmap/down"
|
||||
android:textColor="@color/white"/>
|
||||
|
||||
<RadioButton
|
||||
android:id="@+id/zhijian"
|
||||
android:id="@+id/huanwei"
|
||||
style="@style/TabRadioButton"
|
||||
android:text="轮胎质检"
|
||||
android:drawableTop="@mipmap/check"
|
||||
android:textColor="@color/white"/>
|
||||
android:drawableTop="@mipmap/icon_home5"
|
||||
android:text="轮胎卸车" />
|
||||
|
||||
<RadioButton
|
||||
android:id="@+id/in_new_system"
|
||||
style="@style/TabRadioButton"
|
||||
|
||||
android:drawableTop="@mipmap/icon_home9"
|
||||
android:text="维护保养" />
|
||||
<!-- <RadioButton-->
|
||||
<!-- android:id="@+id/zhijian"-->
|
||||
<!-- style="@style/TabRadioButton"-->
|
||||
<!-- android:text="轮胎质检"-->
|
||||
<!-- android:drawableTop="@mipmap/check"-->
|
||||
<!-- />-->
|
||||
<!--<View-->
|
||||
<!--style="@style/TabRadioButton" />-->
|
||||
|
||||
</RadioGroup>
|
||||
|
||||
<RadioGroup
|
||||
android:id="@+id/homePage_Three"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="120dp"
|
||||
android:layout_marginStart="10dp"
|
||||
android:layout_marginEnd="10dp"
|
||||
android:layout_alignParentBottom="true"
|
||||
android:layout_marginStart="10dp"
|
||||
android:layout_marginTop="20dp"
|
||||
android:orientation="horizontal"
|
||||
>
|
||||
android:layout_marginEnd="10dp"
|
||||
android:orientation="horizontal">
|
||||
|
||||
|
||||
<RadioButton
|
||||
android:id="@+id/test1"
|
||||
style="@style/TabRadioButtonTwo"
|
||||
android:textColor="@color/white"
|
||||
android:drawableTop="@mipmap/test2"
|
||||
android:text="安装查询"
|
||||
/>
|
||||
style="@style/TabRadioButton"
|
||||
|
||||
android:drawableTop="@mipmap/icon_home7"
|
||||
android:text="车辆装胎查询" />
|
||||
|
||||
<RadioButton
|
||||
android:id="@+id/xxbd"
|
||||
style="@style/TabRadioButtonTwo"
|
||||
android:textColor="@color/white"
|
||||
android:drawableTop="@mipmap/bangding"
|
||||
android:text="车牌绑定"
|
||||
style="@style/TabRadioButton"
|
||||
|
||||
android:drawableTop="@mipmap/icon_home8"
|
||||
android:text="车辆芯片绑定"
|
||||
|
||||
/>
|
||||
<RadioButton
|
||||
android:id="@+id/in_new_system"
|
||||
style="@style/TabRadioButtonTwo"
|
||||
android:textColor="@color/white"
|
||||
android:drawableTop="@mipmap/test2"
|
||||
android:text="车队维保系统"
|
||||
/>
|
||||
<!-- <RadioButton-->
|
||||
<!-- android:id="@+id/test3"-->
|
||||
<!-- style="@style/TabRadioButtonTwo"-->
|
||||
<!-- android:textColor="@color/white"-->
|
||||
<!-- android:drawableTop="@mipmap/bangding"-->
|
||||
<!-- android:text="车牌绑定"-->
|
||||
<!-- />-->
|
||||
|
||||
|
||||
<!-- <RadioButton-->
|
||||
<!-- android:id="@+id/test3"-->
|
||||
<!-- style="@style/TabRadioButtonTwo"-->
|
||||
<!-- android:textColor="@color/white"-->
|
||||
<!-- android:drawableTop="@mipmap/bangding"-->
|
||||
<!-- android:text="车牌绑定"-->
|
||||
<!-- />-->
|
||||
</RadioGroup>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<!--<ImageView-->
|
||||
<!--android:layout_alignParentBottom="true"-->
|
||||
<!--android:layout_width="100dp"-->
|
||||
<!--android:layout_height="200dp"-->
|
||||
<!--android:layout_marginTop="250dp"-->
|
||||
<!--android:background="@mipmap/homepage" />-->
|
||||
|
||||
<!--<ImageView-->
|
||||
<!--android:layout_alignParentBottom="true"-->
|
||||
<!--android:layout_width="100dp"-->
|
||||
<!--android:layout_height="200dp"-->
|
||||
<!--android:layout_marginTop="250dp"-->
|
||||
<!--android:background="@mipmap/homepage" />-->
|
||||
<View
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_weight="1" />
|
||||
|
||||
<Button
|
||||
android:id="@+id/logout"
|
||||
style="@style/buttonStyle"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="60dp"
|
||||
android:layout_marginLeft="50dp"
|
||||
android:layout_alignParentBottom="true"
|
||||
android:layout_marginTop="150dp"
|
||||
android:layout_marginRight="50dp"
|
||||
android:text="退 出" />
|
||||
android:layout_marginStart="22dp"
|
||||
android:layout_marginEnd="22dp"
|
||||
android:layout_marginBottom="22dp"
|
||||
android:background="@drawable/bg_button_black"
|
||||
android:text="退出登录"
|
||||
android:textColor="@color/white"
|
||||
android:textSize="18sp" />
|
||||
|
||||
|
||||
</LinearLayout>
|
||||
@ -1,9 +1,325 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
<layout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
tools:context=".maintenance.TireRepairActivity">
|
||||
xmlns:tools="http://schemas.android.com/tools">
|
||||
|
||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||
<data>
|
||||
|
||||
<variable
|
||||
name="blockState1"
|
||||
type="androidx.databinding.ObservableBoolean" />
|
||||
</data>
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:orientation="vertical"
|
||||
tools:context=".maintenance.TireRepairActivity">
|
||||
|
||||
<include
|
||||
layout="@layout/layout_activity_title"
|
||||
app:title='@{"执行工单"}' />
|
||||
|
||||
<ScrollView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent">
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:gravity="center|top"
|
||||
android:orientation="vertical">
|
||||
|
||||
<TextView
|
||||
style="@style/text_title_2"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="16dp"
|
||||
android:letterSpacing="0.1"
|
||||
android:text='"车牌"+"粤B01260D"' />
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="8dp"
|
||||
android:letterSpacing="0.1"
|
||||
android:text='"◎"+"观湖修理厂"'
|
||||
android:textColor="@color/textColor1" />
|
||||
|
||||
<androidx.gridlayout.widget.GridLayout
|
||||
style="@style/layout_card_style"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_margin="12dp"
|
||||
app:columnCount="3"
|
||||
app:rowCount="4">
|
||||
|
||||
<TextView
|
||||
style="@style/text_title_2"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:letterSpacing="0.1"
|
||||
android:text="* 修补类型"
|
||||
android:textSize="16dp"
|
||||
app:layout_columnSpan="3" />
|
||||
|
||||
|
||||
<TextView
|
||||
style="@style/text_block_style"
|
||||
android:layout_height="40dp"
|
||||
android:onClick="blockClick_1"
|
||||
android:selected="@{blockState1}"
|
||||
android:text="站内修补"
|
||||
app:layout_columnWeight="1" />
|
||||
|
||||
<TextView
|
||||
style="@style/text_block_style"
|
||||
android:layout_height="40dp"
|
||||
android:onClick="blockClick_1"
|
||||
android:selected="@{!blockState1}"
|
||||
android:text="委外维修"
|
||||
app:layout_columnWeight="1" />
|
||||
|
||||
<TextView
|
||||
style="@style/text_title_2"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="12dp"
|
||||
android:letterSpacing="0.1"
|
||||
android:text="* 当前状态"
|
||||
android:textSize="16dp"
|
||||
app:layout_columnSpan="3" />
|
||||
|
||||
|
||||
<TextView
|
||||
style="@style/text_block_style"
|
||||
android:layout_width="100dp"
|
||||
android:layout_height="40dp"
|
||||
android:onClick="blockClick_1"
|
||||
android:selected="@{blockState1}"
|
||||
android:text="待修补"
|
||||
app:layout_columnWeight="1" />
|
||||
|
||||
<TextView
|
||||
style="@style/text_block_style"
|
||||
android:layout_width="100dp"
|
||||
android:layout_height="40dp"
|
||||
android:onClick="blockClick_1"
|
||||
android:selected="@{blockState1}"
|
||||
android:text="修补成功"
|
||||
app:layout_columnWeight="1" />
|
||||
|
||||
<TextView
|
||||
style="@style/text_block_end_style"
|
||||
android:layout_width="100dp"
|
||||
android:layout_height="40dp"
|
||||
android:onClick="blockClick_1"
|
||||
android:selected="@{blockState1}"
|
||||
android:text="报废"
|
||||
app:layout_columnWeight="1" />
|
||||
|
||||
|
||||
</androidx.gridlayout.widget.GridLayout>
|
||||
|
||||
<androidx.gridlayout.widget.GridLayout
|
||||
style="@style/layout_card_style"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_margin="12dp"
|
||||
app:columnCount="3">
|
||||
|
||||
<TextView
|
||||
style="@style/text_title_2"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:letterSpacing="0.1"
|
||||
android:text="#损伤记录"
|
||||
android:textColor="@color/blue1_1"
|
||||
app:layout_columnSpan="3" />
|
||||
|
||||
<View
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="1dp"
|
||||
android:layout_marginTop="8dp"
|
||||
android:background="@color/blue1_3"
|
||||
app:layout_columnSpan="3" />
|
||||
|
||||
<TextView
|
||||
style="@style/text_title_2"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="8dp"
|
||||
android:letterSpacing="0.1"
|
||||
android:text="* 损伤位置"
|
||||
android:textSize="16dp"
|
||||
app:layout_columnSpan="3" />
|
||||
|
||||
<TextView
|
||||
style="@style/text_block_style"
|
||||
android:layout_width="100dp"
|
||||
android:layout_height="40dp"
|
||||
android:onClick="blockClick_1"
|
||||
android:selected="@{blockState1}"
|
||||
android:text="胎冠"
|
||||
app:layout_columnWeight="1" />
|
||||
|
||||
<TextView
|
||||
style="@style/text_block_style"
|
||||
android:layout_width="100dp"
|
||||
android:layout_height="40dp"
|
||||
android:onClick="blockClick_1"
|
||||
android:selected="@{blockState1}"
|
||||
android:text="胎侧"
|
||||
app:layout_columnWeight="1" />
|
||||
|
||||
<TextView
|
||||
style="@style/text_block_end_style"
|
||||
android:layout_width="100dp"
|
||||
android:layout_height="40dp"
|
||||
android:onClick="blockClick_1"
|
||||
android:selected="@{blockState1}"
|
||||
android:text="趾口"
|
||||
app:layout_columnWeight="1" />
|
||||
|
||||
<TextView
|
||||
style="@style/text_block_style"
|
||||
android:layout_width="100dp"
|
||||
android:layout_height="40dp"
|
||||
android:onClick="blockClick_1"
|
||||
android:selected="@{blockState1}"
|
||||
android:text="胎肩"
|
||||
app:layout_columnWeight="1" />
|
||||
|
||||
<TextView
|
||||
style="@style/text_block_end_style"
|
||||
android:layout_width="100dp"
|
||||
android:layout_height="40dp"
|
||||
android:onClick="blockClick_1"
|
||||
android:selected="@{blockState1}"
|
||||
android:text="其他"
|
||||
app:layout_columnWeight="1" />
|
||||
|
||||
<TextView
|
||||
style="@style/text_title_2"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="8dp"
|
||||
android:letterSpacing="0.1"
|
||||
android:text="* 损伤原因"
|
||||
android:textSize="16dp"
|
||||
app:layout_columnSpan="3" />
|
||||
|
||||
<TextView
|
||||
style="@style/text_block_style"
|
||||
android:layout_width="100dp"
|
||||
android:layout_height="40dp"
|
||||
android:onClick="blockClick_1"
|
||||
android:selected="@{blockState1}"
|
||||
android:text="刺穿"
|
||||
app:layout_columnWeight="1" />
|
||||
|
||||
<TextView
|
||||
style="@style/text_block_style"
|
||||
android:layout_width="100dp"
|
||||
android:layout_height="40dp"
|
||||
android:onClick="blockClick_1"
|
||||
android:selected="@{blockState1}"
|
||||
android:text="胎侧"
|
||||
app:layout_columnWeight="1" />
|
||||
|
||||
<TextView
|
||||
style="@style/text_block_end_style"
|
||||
android:layout_width="100dp"
|
||||
android:layout_height="40dp"
|
||||
android:onClick="blockClick_1"
|
||||
android:selected="@{blockState1}"
|
||||
android:text="趾口"
|
||||
app:layout_columnWeight="1" />
|
||||
|
||||
<TextView
|
||||
style="@style/text_block_style"
|
||||
android:layout_width="100dp"
|
||||
android:layout_height="40dp"
|
||||
android:onClick="blockClick_1"
|
||||
android:selected="@{blockState1}"
|
||||
android:text="咯伤"
|
||||
app:layout_columnWeight="1" />
|
||||
|
||||
<TextView
|
||||
style="@style/text_block_style"
|
||||
android:layout_width="100dp"
|
||||
android:layout_height="40dp"
|
||||
android:onClick="blockClick_1"
|
||||
android:selected="@{blockState1}"
|
||||
android:text="划伤"
|
||||
app:layout_columnWeight="1" />
|
||||
|
||||
<TextView
|
||||
style="@style/text_block_end_style"
|
||||
android:layout_width="100dp"
|
||||
android:layout_height="40dp"
|
||||
android:onClick="blockClick_1"
|
||||
android:selected="@{blockState1}"
|
||||
android:text="裂痕"
|
||||
app:layout_columnWeight="1" />
|
||||
|
||||
<TextView
|
||||
style="@style/text_title_2"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="8dp"
|
||||
android:letterSpacing="0.1"
|
||||
android:text="* 照片留档"
|
||||
android:textSize="16dp"
|
||||
app:layout_columnSpan="3" />
|
||||
<!-- -->
|
||||
<ImageView
|
||||
style="@style/text_block_style"
|
||||
android:layout_width="100dp"
|
||||
android:layout_height="100dp"
|
||||
android:background="@drawable/bg_block_img_selector"
|
||||
android:onClick="blockClick_1"
|
||||
android:selected="@{blockState1}"
|
||||
app:layout_columnWeight="1"
|
||||
android:src="@mipmap/ic_xiangji"
|
||||
android:padding="30dp"/>
|
||||
|
||||
<TextView
|
||||
style="@style/text_title_2"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="8dp"
|
||||
android:letterSpacing="0.1"
|
||||
android:text="备注说明"
|
||||
android:textSize="16dp"
|
||||
app:layout_columnSpan="3" />
|
||||
|
||||
<EditText
|
||||
android:id="@+id/et_remark"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="8dp"
|
||||
android:background="@drawable/bg_grey"
|
||||
android:gravity="top"
|
||||
android:hint="输入详细描述..."
|
||||
android:minHeight="100dp"
|
||||
android:padding="8dp"
|
||||
android:textSize="16dp"
|
||||
app:layout_columnSpan="3" />
|
||||
|
||||
</androidx.gridlayout.widget.GridLayout>
|
||||
|
||||
|
||||
<Button
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="55dp"
|
||||
android:layout_marginStart="12dp"
|
||||
android:layout_marginEnd="12dp"
|
||||
android:layout_marginBottom="12dp"
|
||||
android:text="完成处理"
|
||||
android:textSize="16sp"
|
||||
android:textStyle="bold" />
|
||||
</LinearLayout>
|
||||
</ScrollView>
|
||||
</LinearLayout>
|
||||
</layout>
|
||||
@ -1,9 +1,189 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
<layout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
tools:context=".maintenance.TireScrapActivity">
|
||||
xmlns:tools="http://schemas.android.com/tools">
|
||||
|
||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||
<data>
|
||||
|
||||
<variable
|
||||
name="site"
|
||||
type="String" />
|
||||
|
||||
<variable
|
||||
name="carNo"
|
||||
type="String" />
|
||||
</data>
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:gravity="center|top"
|
||||
android:orientation="vertical"
|
||||
tools:context=".maintenance.TireScrapActivity">
|
||||
|
||||
<include
|
||||
layout="@layout/layout_activity_title"
|
||||
app:title='@{"执行工单"}' />
|
||||
|
||||
<TextView
|
||||
style="@style/text_title_2"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="16dp"
|
||||
android:letterSpacing="0.1"
|
||||
android:text='@{"车牌\t"+carNo}' />
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="8dp"
|
||||
android:letterSpacing="0.1"
|
||||
android:text='@{"◎"+site}'
|
||||
android:textColor="@color/textColor1" />
|
||||
|
||||
<androidx.gridlayout.widget.GridLayout
|
||||
style="@style/layout_card_style"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_margin="12dp"
|
||||
app:columnCount="4"
|
||||
app:rowCount="4">
|
||||
|
||||
<TextView
|
||||
style="@style/text_title_2"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:letterSpacing="0.1"
|
||||
android:text="* 报废位置"
|
||||
android:textSize="16dp"
|
||||
app:layout_columnSpan="4" />
|
||||
|
||||
|
||||
<Spinner
|
||||
android:id="@+id/order_create_type"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="45dp"
|
||||
android:layout_marginTop="8dp"
|
||||
android:background="@drawable/bg_select_grey"
|
||||
|
||||
android:paddingStart="12dp"
|
||||
app:layout_columnSpan="4" />
|
||||
|
||||
|
||||
<TextView
|
||||
style="@style/text_title_2"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="12dp"
|
||||
android:letterSpacing="0.1"
|
||||
android:text="* 鉴定图片"
|
||||
android:textSize="16dp"
|
||||
app:layout_columnSpan="4" />
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="90dp"
|
||||
android:layout_height="90dp"
|
||||
android:layout_marginEnd="10dp"
|
||||
android:background="@drawable/bg_block_img_selector"
|
||||
android:gravity="center"
|
||||
android:onClick="blockClick_1"
|
||||
android:orientation="vertical">
|
||||
|
||||
<ImageView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="30dp"
|
||||
android:src="@mipmap/ic_xiangji" />
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="center"
|
||||
android:text="*胎号" />
|
||||
</LinearLayout>
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="90dp"
|
||||
android:layout_height="90dp"
|
||||
android:layout_marginEnd="10dp"
|
||||
android:background="@drawable/bg_block_img_selector"
|
||||
android:gravity="center"
|
||||
android:onClick="blockClick_1"
|
||||
android:orientation="vertical">
|
||||
|
||||
<ImageView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="30dp"
|
||||
android:src="@mipmap/ic_xiangji" />
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="center"
|
||||
android:text="*整体胎" />
|
||||
</LinearLayout>
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="90dp"
|
||||
android:layout_height="90dp"
|
||||
android:layout_marginEnd="10dp"
|
||||
android:background="@drawable/bg_block_img_selector"
|
||||
android:gravity="center"
|
||||
android:onClick="blockClick_1"
|
||||
android:orientation="vertical">
|
||||
|
||||
<ImageView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="30dp"
|
||||
android:src="@mipmap/ic_xiangji" />
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="center"
|
||||
android:text="病象" />
|
||||
</LinearLayout>
|
||||
|
||||
<TextView
|
||||
style="@style/text_title_2"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="12dp"
|
||||
android:letterSpacing="0.1"
|
||||
android:text="备注"
|
||||
android:textSize="16dp"
|
||||
app:layout_columnSpan="4" />
|
||||
|
||||
<EditText
|
||||
android:id="@+id/dialog_tire_remark1"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="12dp"
|
||||
android:background="@drawable/bg_grey"
|
||||
android:gravity="top"
|
||||
android:hint="输入报废原因描述..."
|
||||
android:minHeight="100dp"
|
||||
android:padding="8dp"
|
||||
android:textColor="@color/textColor1"
|
||||
android:textSize="14sp"
|
||||
app:layout_columnSpan="4" />
|
||||
|
||||
|
||||
</androidx.gridlayout.widget.GridLayout>
|
||||
|
||||
<View
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_weight="1" />
|
||||
|
||||
<Button
|
||||
android:id="@+id/dialog_tire_update_save"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="55dp"
|
||||
android:layout_margin="12dp"
|
||||
android:background="@drawable/bg_button_blue"
|
||||
android:text="完成处理"
|
||||
android:textColor="@color/white"
|
||||
android:textSize="16sp"
|
||||
android:textStyle="bold" />
|
||||
</LinearLayout>
|
||||
</layout>
|
||||
@ -0,0 +1,166 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<layout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto">
|
||||
|
||||
<data>
|
||||
|
||||
|
||||
<variable
|
||||
name="tire1"
|
||||
type="com.example.tyre.maintenance.been.BaseTyre" />
|
||||
|
||||
<variable
|
||||
name="tire2"
|
||||
type="com.example.tyre.maintenance.been.BaseTyre" />
|
||||
|
||||
<variable
|
||||
name="tire3"
|
||||
type="com.example.tyre.maintenance.been.BaseTyre" />
|
||||
|
||||
<variable
|
||||
name="tire4"
|
||||
type="com.example.tyre.maintenance.been.BaseTyre" />
|
||||
|
||||
<variable
|
||||
name="tire5"
|
||||
type="com.example.tyre.maintenance.been.BaseTyre" />
|
||||
|
||||
<variable
|
||||
name="tire6"
|
||||
type="com.example.tyre.maintenance.been.BaseTyre" />
|
||||
</data>
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:background="@drawable/bg_grey_top"
|
||||
android:orientation="vertical">
|
||||
|
||||
|
||||
<TextView
|
||||
android:id="@+id/dialog_title1"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="40dp"
|
||||
android:layout_marginLeft="5dp"
|
||||
android:drawableEnd="@mipmap/ic_cha"
|
||||
android:gravity="center"
|
||||
android:paddingEnd="12dp"
|
||||
android:text="位置互换"
|
||||
android:textColor="@color/textColor1"
|
||||
android:textSize="18sp" />
|
||||
<LinearLayout
|
||||
style="@style/layout_card_style"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_margin="12dp"
|
||||
android:orientation="vertical">
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:gravity="center">
|
||||
|
||||
<include
|
||||
android:id="@+id/tireClick1"
|
||||
layout="@layout/layout_trae_info"
|
||||
android:layout_width="80dp"
|
||||
android:layout_height="wrap_content"
|
||||
app:data="@{tire1}"
|
||||
app:locationOld='@{"左前轮"}' />
|
||||
|
||||
<View
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="3dp"
|
||||
android:layout_weight="1"
|
||||
android:background="#E3E6EC" />
|
||||
|
||||
<TextView
|
||||
android:layout_width="30dp"
|
||||
android:layout_height="30dp"
|
||||
android:background="@drawable/bg_grey"
|
||||
android:gravity="center"
|
||||
android:text="1"
|
||||
android:textStyle="bold" />
|
||||
|
||||
<View
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="3dp"
|
||||
android:layout_weight="1"
|
||||
android:background="#E3E6EC" />
|
||||
|
||||
|
||||
<include
|
||||
android:id="@+id/tireClick2"
|
||||
layout="@layout/layout_trae_info"
|
||||
android:layout_width="80dp"
|
||||
android:layout_height="wrap_content"
|
||||
app:data="@{tire2}"
|
||||
app:locationOld='@{"右前轮"}' />
|
||||
</LinearLayout>
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="8dp"
|
||||
android:gravity="center">
|
||||
|
||||
<include
|
||||
android:id="@+id/tireClick3"
|
||||
layout="@layout/layout_trae_info"
|
||||
android:layout_width="80dp"
|
||||
android:layout_height="wrap_content"
|
||||
app:data="@{tire3}"
|
||||
app:locationOld='@{"左外轮"}' />
|
||||
|
||||
<include
|
||||
android:id="@+id/tireClick4"
|
||||
layout="@layout/layout_trae_info"
|
||||
android:layout_width="80dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="4dp"
|
||||
app:data="@{tire4}"
|
||||
app:locationOld='@{"左内轮"}' />
|
||||
|
||||
<View
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="3dp"
|
||||
android:layout_weight="1"
|
||||
android:background="#E3E6EC" />
|
||||
|
||||
<TextView
|
||||
android:layout_width="30dp"
|
||||
android:layout_height="30dp"
|
||||
android:background="@drawable/bg_grey"
|
||||
android:gravity="center"
|
||||
android:text="2"
|
||||
android:textStyle="bold" />
|
||||
|
||||
<View
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="3dp"
|
||||
android:layout_weight="1"
|
||||
android:background="#E3E6EC" />
|
||||
|
||||
|
||||
<include
|
||||
android:id="@+id/tireClick5"
|
||||
layout="@layout/layout_trae_info"
|
||||
android:layout_width="80dp"
|
||||
android:layout_height="wrap_content"
|
||||
app:data="@{tire5}"
|
||||
app:locationOld='@{"右内轮"}' />
|
||||
|
||||
<include
|
||||
android:id="@+id/tireClick6"
|
||||
layout="@layout/layout_trae_info"
|
||||
android:layout_width="80dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="4dp"
|
||||
app:data="@{tire6}"
|
||||
app:locationOld='@{"右外轮"}' />
|
||||
</LinearLayout>
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
</LinearLayout>
|
||||
</layout>
|
||||
@ -0,0 +1,624 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<layout 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">
|
||||
|
||||
<data>
|
||||
|
||||
<variable
|
||||
name="tire"
|
||||
type="com.example.tyre.maintenance.been.BaseTyre" />
|
||||
|
||||
<variable
|
||||
name="isUpdate"
|
||||
type="androidx.databinding.ObservableBoolean" />
|
||||
|
||||
<variable
|
||||
name="photoState"
|
||||
type="androidx.databinding.ObservableBoolean" />
|
||||
|
||||
<import type="android.view.View" />
|
||||
</data>
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:background="@drawable/bg_grey_top"
|
||||
android:orientation="vertical">
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="12dp">
|
||||
|
||||
<View
|
||||
android:layout_width="4dp"
|
||||
android:layout_height="30dp"
|
||||
android:background="@color/blue1_1" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/dialog_title"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="30dp"
|
||||
android:layout_marginLeft="5dp"
|
||||
android:drawableEnd="@mipmap/ic_cha"
|
||||
android:gravity="center|left"
|
||||
android:paddingEnd="12dp"
|
||||
android:text="@{tire.wheelPostion}"
|
||||
android:textColor="@color/textColor1"
|
||||
android:textSize="14sp" />
|
||||
</LinearLayout>
|
||||
|
||||
<ScrollView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent">
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_margin="12dp"
|
||||
android:orientation="vertical">
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="50dp"
|
||||
android:background="@drawable/card_bg"
|
||||
android:padding="12dp">
|
||||
|
||||
<TextView
|
||||
android:id="@+id/textView4"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="1"
|
||||
android:text="是否更换轮胎"
|
||||
android:textColor="@color/textColor1" />
|
||||
|
||||
<Switch
|
||||
android:id="@+id/dialog_isupdate_switch"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="match_parent"
|
||||
android:textColor="@color/textColor1"
|
||||
android:textOff="否"
|
||||
android:textOn="是" />
|
||||
</LinearLayout>
|
||||
|
||||
<androidx.gridlayout.widget.GridLayout
|
||||
style="@style/layout_card_style"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="12dp"
|
||||
app:columnCount="2"
|
||||
app:rowCount="5">
|
||||
|
||||
|
||||
<TextView
|
||||
android:layout_height="40dp"
|
||||
android:gravity="left|center"
|
||||
android:text="@{tire.tyreNo}"
|
||||
android:textColor="@color/textColor1"
|
||||
android:textSize="16sp"
|
||||
app:layout_columnSpan="2" />
|
||||
|
||||
<LinearLayout
|
||||
android:layout_height="40dp"
|
||||
android:layout_marginTop="8dp"
|
||||
android:gravity="center"
|
||||
android:orientation="horizontal"
|
||||
app:layout_columnSpan="2">
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:background="@drawable/bg_green1_2"
|
||||
android:padding="4dp"
|
||||
android:text="@{tire.tyreBrand}"
|
||||
android:textColor="@color/buttonColor2"
|
||||
android:textSize="13sp"
|
||||
app:layout_columnSpan="2" />
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="4dp"
|
||||
android:background="@drawable/bg_blue1_2"
|
||||
android:padding="4dp"
|
||||
android:text="@{tire.tyrePattern}"
|
||||
android:textColor="@color/blue1_1"
|
||||
android:textSize="13sp"
|
||||
app:layout_columnSpan="2" />
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="4dp"
|
||||
android:background="@drawable/bg_orange1_2"
|
||||
android:padding="4dp"
|
||||
android:text="@{tire.tyreModel}"
|
||||
android:textColor="@color/buttonColor"
|
||||
android:textSize="13sp"
|
||||
app:layout_columnSpan="2" />
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
<View
|
||||
android:layout_height="1dp"
|
||||
android:layout_marginTop="8dp"
|
||||
android:background="#F1F1F1"
|
||||
app:layout_columnSpan="2" />
|
||||
|
||||
|
||||
<TextView
|
||||
android:layout_height="40dp"
|
||||
android:gravity="left|center"
|
||||
android:text="轮胎自编号"
|
||||
android:textColor="@color/textColor1"
|
||||
app:layout_columnWeight="1" />
|
||||
|
||||
<TextView
|
||||
android:layout_height="40dp"
|
||||
android:gravity="right|center"
|
||||
android:onClick="selectDate"
|
||||
android:text="@{tire.selfNo}"
|
||||
android:textColor="@color/textColor1"
|
||||
app:layout_columnWeight="1" />
|
||||
|
||||
|
||||
<View
|
||||
android:layout_height="1dp"
|
||||
android:background="#F1F1F1"
|
||||
app:layout_columnSpan="2" />
|
||||
|
||||
<TextView
|
||||
android:layout_height="40dp"
|
||||
android:gravity="left|center"
|
||||
android:text="轮胎与系统不一致"
|
||||
android:textColor="@color/textColor1"
|
||||
app:layout_columnWeight="1" />
|
||||
|
||||
<Switch
|
||||
android:layout_height="40dp"
|
||||
|
||||
android:textColor="@color/textColor1"
|
||||
|
||||
app:layout_columnWeight="1"
|
||||
tools:ignore="UseSwitchCompatOrMaterialXml" />
|
||||
|
||||
|
||||
<View
|
||||
android:layout_height="1dp"
|
||||
android:background="#F1F1F1"
|
||||
app:layout_columnSpan="2" />
|
||||
|
||||
<LinearLayout
|
||||
android:layout_height="40dp"
|
||||
android:layout_marginTop="8dp"
|
||||
android:gravity="center"
|
||||
android:orientation="horizontal"
|
||||
app:layout_columnWeight="1">
|
||||
|
||||
<TextView
|
||||
android:layout_width="10dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="*"
|
||||
android:textColor="#E53935" />
|
||||
|
||||
<TextView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="剩余花纹深度"
|
||||
android:textColor="@color/textColor1"
|
||||
app:layout_columnWeight="1" />
|
||||
</LinearLayout>
|
||||
|
||||
<LinearLayout
|
||||
android:layout_height="40dp"
|
||||
android:layout_marginTop="8dp"
|
||||
android:background="@drawable/bg_grey"
|
||||
android:gravity="center"
|
||||
android:orientation="horizontal"
|
||||
android:padding="5dp"
|
||||
app:layout_columnWeight="1">
|
||||
|
||||
<EditText
|
||||
android:id="@+id/dialog_tire_shendu1"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_weight="1"
|
||||
android:background="@color/blue1_3"
|
||||
android:gravity="center"
|
||||
android:inputType="numberDecimal"
|
||||
android:textColor="@color/textColor1" />
|
||||
|
||||
<TextView
|
||||
android:layout_width="40dp"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_marginEnd="4dp"
|
||||
android:background="@drawable/bg_blue1_2"
|
||||
android:gravity="center"
|
||||
android:text="mm"
|
||||
android:textColor="@color/blue1_1" />
|
||||
</LinearLayout>
|
||||
|
||||
<!-- <View
|
||||
android:layout_height="1dp"
|
||||
android:layout_marginTop="8dp"
|
||||
android:background="#F1F1F1"
|
||||
app:layout_columnSpan="2" />
|
||||
|
||||
<TextView
|
||||
android:layout_height="40dp"
|
||||
android:layout_marginTop="8dp"
|
||||
android:gravity="left|center"
|
||||
android:text="保养前胎压"
|
||||
android:textColor="@color/textColor1"
|
||||
app:layout_columnWeight="1" />
|
||||
|
||||
<LinearLayout
|
||||
android:layout_height="40dp"
|
||||
android:layout_marginTop="8dp"
|
||||
android:background="@drawable/bg_grey"
|
||||
android:gravity="center"
|
||||
android:orientation="horizontal"
|
||||
android:padding="5dp"
|
||||
app:layout_columnWeight="1">
|
||||
|
||||
<TextView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_weight="1"
|
||||
android:gravity="center"
|
||||
android:inputType="numberDecimal"
|
||||
android:textColor="@color/textColor1" />
|
||||
|
||||
<TextView
|
||||
android:layout_width="40dp"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_marginEnd="4dp"
|
||||
android:background="@drawable/bg_blue1_2"
|
||||
android:gravity="center"
|
||||
android:text="kpa"
|
||||
android:textColor="@color/blue1_1" />
|
||||
</LinearLayout>-->
|
||||
|
||||
<View
|
||||
android:layout_height="1dp"
|
||||
android:layout_marginTop="8dp"
|
||||
android:background="#F1F1F1"
|
||||
app:layout_columnSpan="2" />
|
||||
|
||||
<TextView
|
||||
android:layout_height="40dp"
|
||||
android:layout_marginTop="8dp"
|
||||
android:gravity="left|center"
|
||||
android:text="胎压"
|
||||
android:textColor="@color/textColor1"
|
||||
app:layout_columnWeight="1" />
|
||||
|
||||
<LinearLayout
|
||||
android:layout_height="40dp"
|
||||
android:layout_marginTop="8dp"
|
||||
android:background="@drawable/bg_grey"
|
||||
android:gravity="center"
|
||||
android:orientation="horizontal"
|
||||
android:padding="5dp"
|
||||
app:layout_columnWeight="1">
|
||||
|
||||
<EditText
|
||||
android:id="@+id/dialog_tire_taiya1"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_weight="1"
|
||||
android:background="@color/blue1_3"
|
||||
android:gravity="center"
|
||||
android:inputType="numberDecimal"
|
||||
android:textColor="@color/textColor1" />
|
||||
|
||||
<TextView
|
||||
android:layout_width="40dp"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_marginEnd="4dp"
|
||||
android:background="@drawable/bg_blue1_2"
|
||||
android:gravity="center"
|
||||
android:text="kpa"
|
||||
android:textColor="@color/blue1_1" />
|
||||
</LinearLayout>
|
||||
|
||||
<View
|
||||
android:layout_height="1dp"
|
||||
android:layout_marginTop="8dp"
|
||||
android:background="#F1F1F1"
|
||||
app:layout_columnSpan="2" />
|
||||
|
||||
<TextView
|
||||
android:layout_height="40dp"
|
||||
android:layout_marginTop="8dp"
|
||||
android:gravity="left|center"
|
||||
android:text="照片"
|
||||
android:textColor="@color/textColor1"
|
||||
app:layout_columnWeight="1" />
|
||||
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/dialog_update_photo"
|
||||
style="@style/text_block_style"
|
||||
android:layout_width="100dp"
|
||||
android:layout_height="100dp"
|
||||
android:background="@drawable/bg_block_img_selector"
|
||||
android:padding="30dp"
|
||||
android:selected="@{photoState}"
|
||||
|
||||
app:layout_columnSpan="2" />
|
||||
|
||||
<View
|
||||
android:layout_height="1dp"
|
||||
android:layout_marginTop="8dp"
|
||||
android:background="#F1F1F1"
|
||||
app:layout_columnSpan="2" />
|
||||
|
||||
<TextView
|
||||
android:layout_height="40dp"
|
||||
android:layout_marginTop="8dp"
|
||||
android:gravity="left|center"
|
||||
android:text="备注"
|
||||
android:textColor="@color/textColor1"
|
||||
app:layout_columnWeight="1" />
|
||||
|
||||
<EditText
|
||||
android:id="@+id/dialog_tire_remark1"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:background="@color/white"
|
||||
android:gravity="top"
|
||||
android:hint="输入备注"
|
||||
android:minHeight="100dp"
|
||||
android:padding="8dp"
|
||||
android:textColor="@color/textColor1"
|
||||
android:textSize="14sp"
|
||||
app:layout_columnSpan="2" />
|
||||
|
||||
</androidx.gridlayout.widget.GridLayout>
|
||||
|
||||
<TextView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="12dp"
|
||||
android:text="换胎后"
|
||||
android:textColor="@color/textColor1"
|
||||
android:textSize="14sp"
|
||||
android:visibility="@{isUpdate?View.VISIBLE:View.GONE}" />
|
||||
|
||||
<androidx.gridlayout.widget.GridLayout
|
||||
style="@style/layout_card_style"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="8dp"
|
||||
android:visibility="@{isUpdate?View.VISIBLE:View.GONE}"
|
||||
app:columnCount="2"
|
||||
app:rowCount="5">
|
||||
|
||||
<Button
|
||||
android:id="@+id/dialog_button_tong"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="50dp"
|
||||
android:layout_marginTop="12dp"
|
||||
android:layout_marginBottom="12dp"
|
||||
android:background="@drawable/bg_button_blue"
|
||||
android:text="同车轮胎互换"
|
||||
android:textColor="@color/white"
|
||||
android:textSize="16sp"
|
||||
android:textStyle="bold"
|
||||
app:layout_columnSpan="2" />
|
||||
|
||||
<LinearLayout
|
||||
android:layout_height="40dp"
|
||||
android:gravity="center"
|
||||
android:orientation="horizontal"
|
||||
app:layout_columnWeight="1">
|
||||
|
||||
<TextView
|
||||
android:layout_width="10dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="*"
|
||||
android:textColor="#E53935" />
|
||||
|
||||
<TextView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="装车轮胎"
|
||||
android:textColor="@color/textColor1"
|
||||
app:layout_columnWeight="1" />
|
||||
</LinearLayout>
|
||||
|
||||
<TextView
|
||||
android:layout_height="40dp"
|
||||
android:gravity="right|center"
|
||||
android:onClick="selectDate"
|
||||
android:text="123@{line}"
|
||||
android:textColor="@color/textColor1"
|
||||
app:layout_columnWeight="1" />
|
||||
|
||||
|
||||
<View
|
||||
android:layout_height="1dp"
|
||||
android:background="#F1F1F1"
|
||||
app:layout_columnSpan="2" />
|
||||
|
||||
|
||||
<LinearLayout
|
||||
android:layout_height="40dp"
|
||||
android:layout_marginTop="8dp"
|
||||
android:gravity="center"
|
||||
android:orientation="horizontal"
|
||||
app:layout_columnWeight="1">
|
||||
|
||||
<TextView
|
||||
android:layout_width="10dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="*"
|
||||
android:textColor="#E53935" />
|
||||
|
||||
<TextView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="轮胎自编号"
|
||||
android:textColor="@color/textColor1"
|
||||
app:layout_columnWeight="1" />
|
||||
</LinearLayout>
|
||||
|
||||
|
||||
<TextView
|
||||
android:layout_height="40dp"
|
||||
android:layout_marginTop="8dp"
|
||||
android:gravity="center"
|
||||
android:textColor="@color/textColor1"
|
||||
app:layout_columnWeight="1" />
|
||||
|
||||
<View
|
||||
android:layout_height="1dp"
|
||||
android:background="#F1F1F1"
|
||||
app:layout_columnSpan="2" />
|
||||
|
||||
<LinearLayout
|
||||
android:layout_height="40dp"
|
||||
android:layout_marginTop="8dp"
|
||||
android:gravity="center"
|
||||
android:orientation="horizontal"
|
||||
app:layout_columnWeight="1">
|
||||
|
||||
<TextView
|
||||
android:layout_width="10dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="*"
|
||||
android:textColor="#E53935" />
|
||||
|
||||
<TextView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="剩余花纹深度"
|
||||
android:textColor="@color/textColor1"
|
||||
app:layout_columnWeight="1" />
|
||||
</LinearLayout>
|
||||
|
||||
<LinearLayout
|
||||
android:layout_height="40dp"
|
||||
android:layout_marginTop="8dp"
|
||||
android:background="@drawable/bg_grey"
|
||||
android:gravity="center"
|
||||
android:orientation="horizontal"
|
||||
android:padding="5dp"
|
||||
app:layout_columnWeight="1">
|
||||
|
||||
<EditText
|
||||
android:id="@+id/dialog_tire_shendu2"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_weight="1"
|
||||
android:background="@color/blue1_3"
|
||||
android:gravity="center"
|
||||
android:inputType="numberDecimal"
|
||||
android:textColor="@color/textColor1" />
|
||||
|
||||
<TextView
|
||||
android:layout_width="40dp"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_marginEnd="4dp"
|
||||
android:background="@drawable/bg_blue1_2"
|
||||
android:gravity="center"
|
||||
android:text="mm"
|
||||
android:textColor="@color/blue1_1" />
|
||||
</LinearLayout>
|
||||
|
||||
|
||||
<View
|
||||
android:layout_height="1dp"
|
||||
android:layout_marginTop="8dp"
|
||||
android:background="#F1F1F1"
|
||||
app:layout_columnSpan="2" />
|
||||
|
||||
<TextView
|
||||
android:layout_height="40dp"
|
||||
android:layout_marginTop="8dp"
|
||||
android:gravity="left|center"
|
||||
android:text="胎压"
|
||||
android:textColor="@color/textColor1"
|
||||
app:layout_columnWeight="1" />
|
||||
|
||||
<LinearLayout
|
||||
android:layout_height="40dp"
|
||||
android:layout_marginTop="8dp"
|
||||
android:background="@drawable/bg_grey"
|
||||
android:gravity="center"
|
||||
android:orientation="horizontal"
|
||||
android:padding="5dp"
|
||||
app:layout_columnWeight="1">
|
||||
|
||||
<EditText
|
||||
android:id="@+id/dialog_tire_taiya2"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_weight="1"
|
||||
android:background="@color/blue1_3"
|
||||
android:gravity="center"
|
||||
android:inputType="numberDecimal"
|
||||
android:textColor="@color/textColor1" />
|
||||
|
||||
<TextView
|
||||
android:layout_width="40dp"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_marginEnd="4dp"
|
||||
android:background="@drawable/bg_blue1_2"
|
||||
android:gravity="center"
|
||||
android:text="kpa"
|
||||
android:textColor="@color/blue1_1" />
|
||||
</LinearLayout>
|
||||
|
||||
|
||||
</androidx.gridlayout.widget.GridLayout>
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="vertical">
|
||||
|
||||
<!-- <Button-->
|
||||
<!-- android:id="@+id/dialog_tire_update_save1"-->
|
||||
<!-- android:layout_width="match_parent"-->
|
||||
<!-- android:layout_height="55dp"-->
|
||||
<!-- android:layout_marginTop="12dp"-->
|
||||
<!-- android:layout_marginBottom="12dp"-->
|
||||
<!-- android:layout_weight="1"-->
|
||||
<!-- android:background="@drawable/bg_button_blue"-->
|
||||
<!-- android:text="保存信息并换胎"-->
|
||||
<!-- android:textColor="@color/white"-->
|
||||
<!-- android:textSize="16sp"-->
|
||||
<!-- android:textStyle="bold" />-->
|
||||
|
||||
<Button
|
||||
android:id="@+id/dialog_tire_update_save"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="55dp"
|
||||
android:layout_marginStart="5dp"
|
||||
android:layout_marginTop="12dp"
|
||||
android:layout_marginBottom="12dp"
|
||||
android:layout_weight="1"
|
||||
android:background="@drawable/bg_button_blue"
|
||||
android:text="保存当前轮位"
|
||||
android:textColor="@color/white"
|
||||
android:textSize="16sp"
|
||||
android:textStyle="bold" />
|
||||
|
||||
<View
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="10dp" />
|
||||
|
||||
<View
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="10dp" />
|
||||
</LinearLayout>
|
||||
|
||||
|
||||
</LinearLayout>
|
||||
</ScrollView>
|
||||
|
||||
</LinearLayout>
|
||||
</layout>
|
||||
@ -1,66 +1,77 @@
|
||||
<?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="118dp"
|
||||
android:layout_marginTop="12dp"
|
||||
android:background="@drawable/card_bg">
|
||||
<layout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto">
|
||||
|
||||
<TextView
|
||||
android:id="@+id/textView"
|
||||
android:layout_width="150dp"
|
||||
android:layout_height="40dp"
|
||||
android:layout_marginStart="16dp"
|
||||
android:layout_marginTop="16dp"
|
||||
android:gravity="center"
|
||||
android:text="玲珑-B37060D"
|
||||
android:textColor="@color/textColor1"
|
||||
android:textSize="22sp"
|
||||
android:textStyle="bold"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toTopOf="parent" />
|
||||
<data>
|
||||
<variable
|
||||
name="item"
|
||||
type="com.example.tyre.maintenance.been.Order" />
|
||||
</data>
|
||||
|
||||
<TextView
|
||||
android:id="@+id/textView3"
|
||||
android:layout_width="100dp"
|
||||
android:layout_height="30dp"
|
||||
android:layout_marginStart="12dp"
|
||||
android:gravity="center|left"
|
||||
android:text="轮胎报废"
|
||||
android:textColor="@color/textColor2"
|
||||
android:textSize="16sp"
|
||||
<androidx.constraintlayout.widget.ConstraintLayout
|
||||
android:id="@+id/item_order_layout"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="115dp"
|
||||
android:layout_marginTop="12dp"
|
||||
android:background="@drawable/card_bg">
|
||||
|
||||
app:layout_constraintBottom_toBottomOf="@+id/textView"
|
||||
app:layout_constraintStart_toEndOf="@+id/textView" />
|
||||
<TextView
|
||||
android:id="@+id/textView"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="40dp"
|
||||
android:layout_marginStart="16dp"
|
||||
android:layout_marginTop="16dp"
|
||||
android:gravity="center"
|
||||
android:text="@{item.plateNumber}"
|
||||
android:textColor="@color/textColor1"
|
||||
android:textSize="20sp"
|
||||
android:textStyle="bold"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toTopOf="parent" />
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="32dp"
|
||||
android:layout_marginStart="16dp"
|
||||
android:layout_marginTop="16dp"
|
||||
android:background="@drawable/item_bg_1"
|
||||
android:gravity="center"
|
||||
android:paddingStart="12dp"
|
||||
android:paddingEnd="12dp"
|
||||
android:text="操作人 深圳西部公司"
|
||||
android:textColor="@color/textColor2"
|
||||
android:textSize="16sp"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toBottomOf="@+id/textView" />
|
||||
<TextView
|
||||
android:id="@+id/textView3"
|
||||
android:layout_width="100dp"
|
||||
android:layout_height="30dp"
|
||||
android:layout_marginStart="12dp"
|
||||
android:gravity="center|left"
|
||||
android:text="@{item.typeName}"
|
||||
android:textColor="@color/textColor2"
|
||||
android:textSize="16sp"
|
||||
|
||||
<TextView
|
||||
android:layout_width="100dp"
|
||||
android:layout_height="45dp"
|
||||
android:layout_marginEnd="16dp"
|
||||
android:background="@drawable/bg_state_1"
|
||||
android:gravity="center"
|
||||
android:letterSpacing="0.1"
|
||||
android:text="未完成"
|
||||
android:textColor="@color/white"
|
||||
android:textSize="18sp"
|
||||
android:textStyle="bold"
|
||||
app:layout_constraintBottom_toBottomOf="parent"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintTop_toTopOf="parent" />
|
||||
app:layout_constraintBottom_toBottomOf="@+id/textView"
|
||||
app:layout_constraintStart_toEndOf="@+id/textView" />
|
||||
|
||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="32dp"
|
||||
android:layout_marginStart="16dp"
|
||||
android:layout_marginTop="12dp"
|
||||
android:background="@drawable/item_bg_1"
|
||||
android:gravity="center"
|
||||
android:paddingStart="12dp"
|
||||
android:paddingEnd="12dp"
|
||||
android:text='@{"操作人\t"+item.createBy}'
|
||||
android:textColor="@color/textColor2"
|
||||
android:textSize="16sp"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toBottomOf="@+id/textView" />
|
||||
|
||||
<TextView
|
||||
android:layout_width="100dp"
|
||||
android:layout_height="45dp"
|
||||
android:layout_marginEnd="16dp"
|
||||
android:background="@drawable/bg_order_state_selector"
|
||||
android:gravity="center"
|
||||
android:letterSpacing="0.1"
|
||||
android:text='@{item.status.equals("COMPLETED")?"已完成":"未完成"}'
|
||||
android:selected='@{item.status.equals("COMPLETED")}'
|
||||
android:textColor="@color/white"
|
||||
android:textSize="16sp"
|
||||
android:textStyle="bold"
|
||||
app:layout_constraintBottom_toBottomOf="parent"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintTop_toTopOf="parent" />
|
||||
|
||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||
</layout>
|
||||
@ -0,0 +1,5 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<background android:drawable="@color/ic_logo_background"/>
|
||||
<foreground android:drawable="@drawable/ic_logo_foreground"/>
|
||||
</adaptive-icon>
|
||||
@ -0,0 +1,5 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<background android:drawable="@color/ic_logo_background"/>
|
||||
<foreground android:drawable="@drawable/ic_logo_foreground"/>
|
||||
</adaptive-icon>
|
||||
|
After Width: | Height: | Size: 1.1 KiB |
|
After Width: | Height: | Size: 2.2 KiB |
|
After Width: | Height: | Size: 828 B |
|
After Width: | Height: | Size: 1.3 KiB |
|
After Width: | Height: | Size: 1.1 KiB |
|
After Width: | Height: | Size: 3.0 KiB |
|
After Width: | Height: | Size: 22 KiB |
|
After Width: | Height: | Size: 26 KiB |
|
After Width: | Height: | Size: 2.1 KiB |
|
After Width: | Height: | Size: 1.8 KiB |
|
After Width: | Height: | Size: 4.8 KiB |
|
After Width: | Height: | Size: 4.6 KiB |
|
After Width: | Height: | Size: 2.8 KiB |
|
After Width: | Height: | Size: 2.8 KiB |
|
After Width: | Height: | Size: 4.4 KiB |
|
After Width: | Height: | Size: 4.3 KiB |
|
After Width: | Height: | Size: 4.2 KiB |
|
After Width: | Height: | Size: 4.6 KiB |
|
After Width: | Height: | Size: 3.7 KiB |
|
After Width: | Height: | Size: 2.4 KiB |
|
After Width: | Height: | Size: 2.4 KiB |
|
After Width: | Height: | Size: 7.0 KiB |
|
After Width: | Height: | Size: 42 KiB |
@ -0,0 +1,4 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources>
|
||||
<color name="ic_logo_background">#FFFFFF</color>
|
||||
</resources>
|
||||
@ -1,6 +1,13 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<paths>
|
||||
<!-- 必须包含 external-path 指向 Download 目录 -->
|
||||
<external-path name="download" path="Download/" />
|
||||
<external-path name="external_files" path="."/>
|
||||
<external-path
|
||||
name="download"
|
||||
path="Download/" />
|
||||
<external-path
|
||||
name="external_files"
|
||||
path="." />
|
||||
<external-path
|
||||
name="my_images"
|
||||
path="." />
|
||||
</paths>
|
||||