feat:轮胎出库原因

asv2022.3.1
wanghao 1 week ago
parent a573b2723f
commit e66ba43add

@ -7,27 +7,21 @@ import android.content.Context;
import android.content.Intent;
import android.content.IntentFilter;
import android.os.Bundle;
import android.os.Handler;
import android.os.Message;
import android.os.SystemClock;
import android.util.Log;
import android.view.KeyEvent;
import android.view.View;
import android.widget.AdapterView;
import android.widget.Button;
import android.widget.Spinner;
import android.widget.TextView;
import android.widget.Toast;
import androidx.appcompat.app.AppCompatActivity;
import com.android.hdhe.uhf.reader.UhfReader;
import com.android.hdhe.uhf.readerInterface.TagModel;
import com.example.tyre.databinding.ActivityOutStoreHouseBinding;
import com.example.tyre.entity.AjaxResult;
import com.example.tyre.entity.BaseTyre;
import com.example.tyre.entity.EPC;
import com.example.tyre.entity.Tyre;
import com.example.tyre.util.CommonDialog;
import com.example.tyre.util.MyUrl;
import com.example.tyre.util.PlayMusic;
import com.example.tyre.util.SharedPreferencesUtils;
import com.example.tyre.util.Util;
import com.google.gson.Gson;
@ -36,28 +30,23 @@ import com.lzy.okgo.OkGo;
import com.lzy.okgo.callback.StringCallback;
import com.lzy.okgo.model.Response;
import java.lang.ref.WeakReference;
import java.util.ArrayList;
import java.util.List;
import androidx.appcompat.app.AppCompatActivity;
import cn.pda.serialport.Tools;
import com.example.tyre.databinding.ActivityOutStoreHouseBinding;
public class OutStoreHouseActivity extends AppCompatActivity {
private ActivityOutStoreHouseBinding binding;
TextView scan;
TextView pinpai;
TextView xinghao;
TextView cengji;
TextView huawen;
Button button;
TextView wtbm;
Button back;
TextView ltlb;
long lastTime;
long nextTime;
private ActivityOutStoreHouseBinding binding;
private boolean isStart = true;
private ProgressDialog progressDialog;
private boolean runFlag = true;
@ -65,11 +54,10 @@ public class OutStoreHouseActivity extends AppCompatActivity {
private UhfReader manager; // UHF manager,UHF Operating handle
private ArrayList<EPC> listEPC;
private ArrayList<String> listepc = new ArrayList<String>();
long lastTime;
long nextTime;
private Toast mToast;
private Toast toast;
private KeyReceiver keyReceiver;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
@ -90,21 +78,17 @@ public class OutStoreHouseActivity extends AppCompatActivity {
xinghao = binding.xinghao;
cengji = binding.cengji;
huawen = binding.huawen;
button = binding.button;
wtbm = binding.wtbm;
back = binding.back;
ltlb = binding.ltlb;
}
private void setupClickListeners() {
binding.button.setOnClickListener(v -> {
showLoadingDialog();
out_inventory(scan.getText().toString(),SharedPreferencesUtils.getstring("user","admin"));
out_inventory(scan.getText().toString(), SharedPreferencesUtils.getstring("user", "admin"));
});
binding.back.setOnClickListener(v -> {
Intent intent = new Intent(this, HomePageActivity.class);
startActivity(intent);
finish();
});
}
@ -127,60 +111,27 @@ public class OutStoreHouseActivity extends AppCompatActivity {
unregisterReceiver();
}
@Override
protected void onDestroy() {
startFlag = false;
runFlag = false;
super.onDestroy();
}
private void showLoadingDialog() {
progressDialog = new ProgressDialog(this);
progressDialog.setMessage("数据加载中...");
progressDialog.setCancelable(false);
progressDialog.show();
}
private void hideLoadingDialog() {
if (progressDialog != null && progressDialog.isShowing()) {
progressDialog.dismiss();
}
}
/**
* Inventory EPC Thread
*/
class InventoryThread extends Thread {
private List<TagModel> tagList;
byte[] accessPassword = Tools.HexString2Bytes("00000000");
@Override
public void run() {
super.run();
while (runFlag) {
if (startFlag) {
tagList = manager.inventoryRealTime(); //实时盘存
if (tagList != null && !tagList.isEmpty()) {
//播放提示音
Util.play(1, 0);
for (TagModel tag : tagList) {
if (tag == null) {
String epcStr = "";
addToList(listEPC, epcStr, (byte) -1);
} else {
String epcStr = Tools.Bytes2HexString(tag.getmEpcBytes(), tag.getmEpcBytes().length);
byte rssi = tag.getmRssi();
addToList(listEPC, epcStr, rssi);
}
}
}
tagList = null;
try {
Thread.sleep(20);
} catch (InterruptedException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
}
}
}
}
private void addToList(final List<EPC> list, final String epc, final byte rssi) {
runOnUiThread(new Runnable() {
@Override
@ -194,7 +145,7 @@ public class OutStoreHouseActivity extends AppCompatActivity {
list.add(epcTag);
listepc.add(epc);
}else {
} else {
for (int i = 0; i < list.size(); i++) {
EPC mEPC = list.get(i);
// list contain this epc
@ -216,7 +167,7 @@ public class OutStoreHouseActivity extends AppCompatActivity {
}
// play sound
lastTime = SystemClock.elapsedRealtime();
lastTime = SystemClock.elapsedRealtime();
long time = lastTime - nextTime;
if (time >= 60) {
Util.play(1, 0);
@ -226,72 +177,130 @@ public class OutStoreHouseActivity extends AppCompatActivity {
}
});
Log.e("EPC", "listepc:+ " + listepc);
if (listepc != null && !listepc.isEmpty()){
if (listepc != null && !listepc.isEmpty()) {
startFlag = false;
scan.setText(listepc.get(0).toString());
find(listepc.get(0).toString());
}
clearData();
}
private void clearData() {
listEPC.removeAll(listEPC);
listepc.removeAll(listepc);
}
// 基本信息查询
private void find(String epc) {
OkGo.<String>post(MyUrl.url + "/tyre/tyre/pdaQueryTyreInfo").tag(this).params("tyreEpc", epc)
.execute(new StringCallback() {
@Override
public void onSuccess(Response<String> response) {
String body = response.body();
try {
Gson gson = new Gson();
BaseTyre baseTyre = gson.fromJson(body, BaseTyre.class);
if (baseTyre != null) {
// 空值处理:若字段为 null 则显示空字符串
String brand = safeGetString(baseTyre.getTyreBrand());
String tyreno = safeGetString(baseTyre.getTyreNo());
@Override
public void onSuccess(Response<String> response) {
String body = response.body();
try {
Gson gson = new Gson();
BaseTyre baseTyre = gson.fromJson(body, BaseTyre.class);
if (baseTyre != null) {
// 空值处理:若字段为 null 则显示空字符串
String brand = safeGetString(baseTyre.getTyreBrand());
String tyreno = safeGetString(baseTyre.getTyreNo());
// String zb = safeGetString(baseTyre.getSelfNo());
String size = safeGetString(baseTyre.getTyreModel());
String level = safeGetString(baseTyre.getTyreLevel());
String pattern = safeGetString(baseTyre.getTyrePattern());
String kind = safeGetString(baseTyre.getTyreType());
pinpai.setText(brand);
wtbm.setText(tyreno);
String size = safeGetString(baseTyre.getTyreModel());
String level = safeGetString(baseTyre.getTyreLevel());
String pattern = safeGetString(baseTyre.getTyrePattern());
String kind = safeGetString(baseTyre.getTyreType());
pinpai.setText(brand);
wtbm.setText(tyreno);
// zbh.setText(zb);
xinghao.setText(size);
cengji.setText(level);
huawen.setText(pattern);
ltlb.setText(kind);
}else {
new CommonDialog(OutStoreHouseActivity.this).setMessage("轮胎不存在!").show();
xinghao.setText(size);
cengji.setText(level);
huawen.setText(pattern);
ltlb.setText(kind);
} else {
new CommonDialog(OutStoreHouseActivity.this).setMessage("轮胎不存在!").show();
}
} catch (JsonSyntaxException e) {
// 处理 JSON 解析错误
new CommonDialog(OutStoreHouseActivity.this).setMessage("扫描出错!").show();
return;
}
}
} catch (JsonSyntaxException e) {
// 处理 JSON 解析错误
new CommonDialog(OutStoreHouseActivity.this).setMessage("扫描出错!").show();
return;
}
}
});
});
}
private String safeGetString(String value) {
return value == null || "null".equals(value) ? "" : value;
}
private void out_inventory(String epc,String createBy) {
private void out_inventory(String epc, String createBy) {
String outReason = binding.outReason.getSelectedItem().toString();//出库原因
OkGo.<String>post(MyUrl.url + "/tyre/inventory/pdaOutInventory").tag(this)
.params("tyreRfid", epc)
.params("createBy",createBy)
// .params("outReason", outReason)
.params("createBy", createBy)
.execute(new StringCallback() {
@Override
public void onSuccess(Response<String> response) {
String body = response.body();
hideLoadingDialog();
Gson gson = new Gson();
AjaxResult ajaxResult = gson.fromJson(body, AjaxResult.class);
new CommonDialog(OutStoreHouseActivity.this).setMessage(ajaxResult.getMsg()).show();
@Override
public void onSuccess(Response<String> response) {
String body = response.body();
hideLoadingDialog();
Gson gson = new Gson();
AjaxResult ajaxResult = gson.fromJson(body, AjaxResult.class);
new CommonDialog(OutStoreHouseActivity.this).setMessage(ajaxResult.getMsg()).show();
}
});
}
private void registerReceiver() {
keyReceiver = new KeyReceiver();
IntentFilter filter = new IntentFilter();
filter.addAction("android.rfid.FUN_KEY");
filter.addAction("android.intent.action.FUN_KEY");
registerReceiver(keyReceiver, filter);
}
private void unregisterReceiver() {
unregisterReceiver(keyReceiver);
}
/**
* Inventory EPC Thread
*/
class InventoryThread extends Thread {
byte[] accessPassword = Tools.HexString2Bytes("00000000");
private List<TagModel> tagList;
@Override
public void run() {
super.run();
while (runFlag) {
if (startFlag) {
tagList = manager.inventoryRealTime(); // 实时盘存
if (tagList != null && !tagList.isEmpty()) {
// 播放提示音
Util.play(1, 0);
for (TagModel tag : tagList) {
if (tag == null) {
String epcStr = "";
addToList(listEPC, epcStr, (byte) -1);
} else {
String epcStr =
Tools.Bytes2HexString(tag.getmEpcBytes(), tag.getmEpcBytes().length);
byte rssi = tag.getmRssi();
addToList(listEPC, epcStr, rssi);
}
}
}
tagList = null;
try {
Thread.sleep(20);
} catch (InterruptedException e) {
e.printStackTrace();
}
}
}
});
}
}
private class KeyReceiver extends BroadcastReceiver {
@ -302,36 +311,10 @@ public class OutStoreHouseActivity extends AppCompatActivity {
keyCode = intent.getIntExtra("keycode", 0);
}
boolean keyDown = intent.getBooleanExtra("keydown", false);
if (keyDown) {
if (toast == null) {
// toast = Toast.makeText(OutStoreHouseActivity.this, "KeyReceiver:keyCode = down" + keyCode, Toast.LENGTH_SHORT);
} else {
// toast.setText("KeyReceiver:keyCode = down" + keyCode);
}
// toast.show();
switch (keyCode) {
case KeyEvent.KEYCODE_F1:
case KeyEvent.KEYCODE_F2:
case KeyEvent.KEYCODE_F3:
case KeyEvent.KEYCODE_F4:
case KeyEvent.KEYCODE_F5:
case 136:
//扫描
startFlag = true;
break;
}
if (keyDown && (keyCode == 135 || keyCode == 136)) {
startFlag = true;
}
}
}
private void registerReceiver() {
keyReceiver = new KeyReceiver();
IntentFilter filter = new IntentFilter();
filter.addAction("android.rfid.FUN_KEY");
filter.addAction("android.intent.action.FUN_KEY");
registerReceiver(keyReceiver, filter);
}
private void unregisterReceiver() {
unregisterReceiver(keyReceiver);
}
}

@ -1,5 +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"/>
<corners android:radius="14dp"/>
</shape>

@ -1,122 +1,99 @@
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:orientation="vertical"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@color/xuebai">
android:background="@color/allbg"
android:orientation="vertical">
<TextView
android:id="@+id/textView2"
style="@style/tablebarStyleTwo"
android:layout_width="match_parent"
android:layout_height="30dp"
android:text="轮胎出库"
app:layout_constraintTop_toTopOf="parent" />
android:layout_height="55dp"
android:text="轮胎出库" />
<LinearLayout
style="@style/layout_t12_s8_style"
android:layout_width="match_parent"
android:layout_height="40dp"
android:layout_marginStart="8dp"
android:layout_marginTop="20dp"
android:layout_marginEnd="8dp"
android:orientation="horizontal"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/linearLayout3">
android:layout_height="45dp">
<TextView
style="@style/alltext"
android:layout_width="90dp"
android:layout_height="match_parent"
android:background="@color/blue2"
android:text="EPC:" />
<TextView
android:id="@+id/epc"
style="@style/infotext"
style="@style/textView_info_style"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@drawable/bg_santex_coppy"
android:textSize="15sp"
/>
android:layout_height="match_parent" />
</LinearLayout>
<LinearLayout
style="@style/layout_t12_s8_style"
android:layout_width="match_parent"
android:layout_height="40dp"
android:layout_marginStart="8dp"
android:layout_marginTop="10dp"
android:layout_marginEnd="8dp"
android:orientation="horizontal"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/linearLayout3">
android:layout_height="45dp">
<TextView
style="@style/alltext"
android:layout_width="90dp"
android:layout_height="match_parent"
android:background="@color/blue2"
android:text="胎号:" />
<TextView
android:id="@+id/wtbm"
style="@style/infotext"
style="@style/textView_info_style"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@drawable/bg_santex_coppy"
/>
android:layout_height="match_parent" />
</LinearLayout>
<!-- <LinearLayout-->
<!-- android:layout_width="match_parent"-->
<!-- android:layout_height="40dp"-->
<!-- android:layout_marginStart="8dp"-->
<!-- android:layout_marginTop="10dp"-->
<!-- android:layout_marginEnd="8dp"-->
<!-- android:orientation="horizontal"-->
<!-- app:layout_constraintEnd_toEndOf="parent"-->
<!-- app:layout_constraintStart_toStartOf="parent"-->
<!-- app:layout_constraintTop_toBottomOf="@+id/linearLayout3">-->
<!-- <TextView-->
<!-- style="@style/alltext"-->
<!-- android:layout_width="90dp"-->
<!-- android:layout_height="match_parent"-->
<!-- android:background="@color/blue2"-->
<!-- android:text="自编号:" />-->
<!-- <LinearLayout-->
<!-- android:layout_width="match_parent"-->
<!-- android:layout_height="45dp"-->
<!-- android:layout_marginStart="8dp"-->
<!-- android:layout_marginTop="10dp"-->
<!-- android:layout_marginEnd="8dp"-->
<!-- android:orientation="horizontal"-->
<!-- app:layout_constraintEnd_toEndOf="parent"-->
<!-- app:layout_constraintStart_toStartOf="parent"-->
<!-- app:layout_constraintTop_toBottomOf="@+id/linearLayout3">-->
<!-- <TextView-->
<!-- style="@style/alltext"-->
<!-- android:layout_width="90dp"-->
<!-- android:layout_height="match_parent"-->
<!-- -->
<!-- android:text="自编号:" />-->
<!-- <TextView-->
<!-- android:id="@+id/zbh"-->
<!-- style="@style/infotext"-->
<!-- android:layout_width="match_parent"-->
<!-- android:layout_height="match_parent"-->
<!-- android:background="@drawable/bg_santex_coppy"-->
<!-- />-->
<!-- </LinearLayout>-->
<!-- <TextView-->
<!-- android:id="@+id/zbh"-->
<!-- style="@style/textView_info_style"-->
<!-- android:layout_width="match_parent"-->
<!-- android:layout_height="match_parent"-->
<!-- android:background="@drawable/bg_santex_coppy"-->
<!-- />-->
<!-- </LinearLayout>-->
<LinearLayout
style="@style/layout_t12_s8_style"
android:layout_width="match_parent"
android:layout_height="40dp"
android:layout_marginStart="8dp"
android:layout_marginTop="10dp"
android:layout_marginEnd="8dp"
android:orientation="horizontal"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/linearLayout3">
android:layout_height="45dp">
<TextView
style="@style/alltext"
android:layout_width="90dp"
android:layout_height="match_parent"
android:background="@color/blue2"
android:text="品牌:" />
<TextView
android:id="@+id/pinpai"
style="@style/infotext"
style="@style/textView_info_style"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@drawable/bg_santex_coppy"
/>
android:layout_height="match_parent" />
</LinearLayout>
<!--<LinearLayout-->
<!--android:id="@+id/linearLayout3"-->
<!--android:layout_width="match_parent"-->
<!--android:layout_height="40dp"-->
<!--android:layout_height="45dp"-->
<!--android:layout_marginStart="8dp"-->
<!--android:layout_marginTop="20dp"-->
<!--android:layout_marginEnd="8dp"-->
@ -128,12 +105,12 @@
<!--style="@style/alltext"-->
<!--android:layout_width="105dp"-->
<!--android:layout_height="match_parent"-->
<!--android:background="@color/blue2"-->
<!---->
<!--android:text="规格:" />-->
<!--<TextView-->
<!--android:id="@+id/guige"-->
<!--style="@style/infotext"-->
<!--style="@style/textView_info_style"-->
<!--android:layout_width="match_parent"-->
<!--android:layout_height="match_parent"-->
<!--android:background="@drawable/bg_santex_coppy"-->
@ -141,167 +118,124 @@
<!--</LinearLayout>-->
<LinearLayout
style="@style/layout_t12_s8_style"
android:layout_width="match_parent"
android:layout_height="40dp"
android:layout_marginStart="8dp"
android:layout_marginTop="10dp"
android:layout_marginEnd="8dp"
android:orientation="horizontal"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/linearLayout3">
android:layout_height="45dp">
<TextView
style="@style/alltext"
android:layout_width="90dp"
android:layout_height="match_parent"
android:background="@color/blue2"
android:text="型号:" />
<TextView
android:id="@+id/xinghao"
style="@style/infotext"
style="@style/textView_info_style"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@drawable/bg_santex_coppy"
/>
android:layout_height="match_parent" />
</LinearLayout>
<LinearLayout
style="@style/layout_t12_s8_style"
android:layout_width="match_parent"
android:layout_height="40dp"
android:layout_marginStart="8dp"
android:layout_marginTop="10dp"
android:layout_marginEnd="8dp"
android:orientation="horizontal"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/linearLayout3">
android:layout_height="45dp">
<TextView
style="@style/alltext"
android:layout_width="90dp"
android:layout_height="match_parent"
android:background="@color/blue2"
android:text="层级:" />
<TextView
android:id="@+id/cengji"
style="@style/infotext"
style="@style/textView_info_style"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@drawable/bg_santex_coppy"
/>
android:layout_height="match_parent" />
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="40dp"
android:layout_marginStart="8dp"
android:layout_marginTop="10dp"
android:layout_marginEnd="8dp"
android:orientation="horizontal"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/linearLayout3">
<TextView
style="@style/alltext"
android:layout_width="90dp"
android:layout_height="match_parent"
android:background="@color/blue2"
android:text="花纹:" />
<TextView
android:id="@+id/huawen"
style="@style/infotext"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@drawable/bg_santex_coppy"
/>
</LinearLayout>
<LinearLayout
style="@style/layout_t12_s8_style"
android:layout_width="match_parent"
android:layout_height="40dp"
android:layout_marginStart="8dp"
android:layout_marginTop="10dp"
android:layout_marginEnd="8dp"
android:orientation="horizontal"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/linearLayout3">
android:layout_height="45dp">
<TextView
style="@style/alltext"
android:layout_width="90dp"
android:layout_height="match_parent"
android:background="@color/blue2"
android:text="花纹:" />
<TextView
android:id="@+id/huawen"
style="@style/textView_info_style"
android:layout_width="match_parent"
android:layout_height="match_parent" />
</LinearLayout>
<LinearLayout
style="@style/layout_t12_s8_style"
android:layout_width="match_parent"
android:layout_height="45dp">
<TextView
style="@style/alltext"
android:layout_width="90dp"
android:layout_height="match_parent"
android:text="轮胎类别:" />
<TextView
android:id="@+id/ltlb"
style="@style/infotext"
style="@style/textView_info_style"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@drawable/bg_santex_coppy"
/>
android:layout_height="match_parent" />
</LinearLayout>
<!--<LinearLayout-->
<!--android:layout_width="match_parent"-->
<!--android:layout_height="40dp"-->
<!--android:layout_marginStart="8dp"-->
<!--android:layout_marginTop="10dp"-->
<!--android:layout_marginEnd="8dp"-->
<!--android:orientation="horizontal"-->
<!--app:layout_constraintEnd_toEndOf="parent"-->
<!--app:layout_constraintStart_toStartOf="parent"-->
<!--app:layout_constraintTop_toBottomOf="@+id/linearLayout3">-->
<!--<TextView-->
<!--style="@style/alltext"-->
<!--android:layout_width="90dp"-->
<!--android:layout_height="match_parent"-->
<!--android:background="@color/blue2"-->
<!--android:text="操作员:" />-->
<!--<TextView-->
<!--android:id="@+id/czy"-->
<!--style="@style/infotext"-->
<!--android:layout_width="100dp"-->
<!--android:layout_height="match_parent"-->
<!--android:background="@drawable/bg_santex_coppy"-->
<!--/>-->
<!--<Spinner-->
<!--android:entries="@array/user"-->
<!--android:id="@+id/spinner"-->
<!--android:layout_width="30dp"-->
<!--android:layout_height="match_parent"></Spinner>-->
<!--</LinearLayout>-->
<LinearLayout
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:orientation="horizontal"
android:layout_marginTop="10dp"
>
style="@style/layout_t12_s8_style"
android:layout_width="match_parent"
android:layout_height="45dp">
<TextView
style="@style/alltext"
android:layout_width="90dp"
android:layout_height="match_parent"
android:text="卸胎原因:" />
<Spinner
android:id="@+id/out_reason"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:entries="@array/chukuy"
android:textAlignment="center" />
</LinearLayout>
<LinearLayout
style="@style/layout_t12_s8_style"
android:layout_width="match_parent"
android:layout_height="55dp">
<Button
android:id="@+id/button"
style="@style/buttonStyle"
android:layout_width="match_parent"
android:layout_height="55dp"
android:layout_marginStart="18dp"
android:layout_marginEnd="18dp"
style="@style/buttonStyle"
android:text="轮 胎 出 库"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
android:layout_weight="1"
/>
android:letterSpacing="0.5"
android:text="轮胎出库" />
<Button
android:id="@+id/back"
style="@style/buttonStyle"
android:layout_width="match_parent"
android:layout_height="55dp"
android:layout_marginStart="18dp"
android:layout_marginEnd="18dp"
style="@style/buttonStyle"
android:text="返 回"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
android:layout_weight="1"
/>
android:letterSpacing="1"
android:text="返回" />
</LinearLayout>
</LinearLayout>

@ -54,4 +54,11 @@
<item>索赔</item>
<item>自定义</item>
</string-array>
<string-array name="chukuy">
<item>装车出库</item>
<item>调拨出库</item>
</string-array>
</resources>

@ -13,8 +13,8 @@
<style name="buttonStyle">
<item name="android:background">@drawable/bg_button_black</item>
<item name="android:textSize">23sp</item>
<item name="android:textStyle"></item>
<item name="android:textSize">20sp</item>
<item name="android:textStyle">bold</item>
<item name="android:textColor">@color/white</item>
<item name="android:gravity">center</item>
</style>

Loading…
Cancel
Save