Ver código fonte

修改前端ui为800x480-2

lihuiming 3 anos atrás
pai
commit
bfb9e4268d

+ 1 - 1
app/src/main/AndroidManifest.xml

@@ -30,7 +30,7 @@
             android:label="@string/app_name"
             android:theme="@style/Theme.Ichandroid.NoActionBar"
             android:screenOrientation="portrait"
-            android:windowSoftInputMode="adjustUnspecified|stateHidden"
+            android:windowSoftInputMode="adjustResize|stateHidden"
             android:configChanges="orientation|keyboardHidden"><!-- 禁止弹出输入键盘 -->
             <intent-filter>
                 <action android:name="android.intent.action.MAIN" />

+ 213 - 215
app/src/main/java/com/emato/ich/MainActivity.java

@@ -86,11 +86,9 @@ public class MainActivity extends AppCompatActivity  {
     @Override
     protected void onCreate(Bundle savedInstanceState) {
         super.onCreate(savedInstanceState);
-        // 强制关闭输入法
-        getWindow().setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_STATE_ALWAYS_HIDDEN);
-
         binding = ActivityMainBinding.inflate(getLayoutInflater());
-        setContentView(binding.getRoot());
+        // 强制关闭输入法
+        getWindow().setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_ADJUST_PAN);
 //        setSupportActionBar(binding.toolbar);
 //        NavController navController = Navigation.findNavController(this, R.id.nav_host_fragment_content_main);
 //        appBarConfiguration = new AppBarConfiguration.Builder(navController.getGraph()).build();
@@ -108,220 +106,220 @@ public class MainActivity extends AppCompatActivity  {
 
 
 //         获取系统配置
-        ICSPClient.getSystemConfig("", BaseUtils.getClientId(), new Callback() {
-            @Override
-            public void onFailure(@NotNull Call call, @NotNull IOException e) {
-                Log.e(TAG, "onFailure: 获取系统配置错误! 网络错误! ", e);
-            }
-
-            @Override
-            public void onResponse
-                    (@NotNull Call call, @NotNull Response response) throws IOException {
-
-                try {
-                    OnDownloadListener listener = new OnDownloadListener() {
-
-                        @Override
-                        public void onDownloadSuccess(File file) {
-
-                        }
-
-                        @Override
-                        public void onDownloading(int progress) {
-
-                        }
-
-                        @Override
-                        public void onDownloadFailed(Exception e) {
-
-                        }
-                    };
-                    String parseResponse = ICSPClient.isSuccessfulAndParseResponse(response);
-                    ObjectMapper objectMapper = new ObjectMapper();
-                    ResponseData<Map<String, String>> readValue = objectMapper.readValue(parseResponse, new TypeReference<ResponseData<Map<String, String>>>() {
-                    });
-                    if (null != readValue && readValue.getCode().equals(ICSPResponseCodeEnum.OK.getCode())) {
-                        configMap.putAll(readValue.getData());
-                        String qrcode_url = configMap.get(SystemConfigConstant.cabinet_take_object_qrcode_url);
-
-                        try {
-                            ICSPClient.download(qrcode_url, new Callback() {
-                                @Override
-                                public void onFailure(@NotNull Call call, @NotNull IOException e) {
-
-                                }
-
-                                @Override
-                                public void onResponse(@NotNull Call call, @NotNull Response response) throws IOException {
-                                    InputStream is = null;
-                                    byte[] buf = new byte[2048];
-                                    int len = 0;
-                                    FileOutputStream fos = null;
-                                    final String destFileDir = "res/drawable/";
-                                    String destFileName = "e_mp_qrcode_8x8.jpg";
-                                    //储存下载文件的目录
-                                    File dir = new File(getApplication().getFilesDir().getAbsolutePath() + "/" +destFileDir);
-                                    if (!dir.exists()) {
-                                        dir.mkdirs();
-                                    }
-//                destFileName = apk_url.substring(apk_url.lastIndexOf('/'), apk_url.length() - 1);
-                                    File file = new File(dir, destFileName);
-
-                                    try {
-
-                                        is = response.body().byteStream();
-                                        long total = response.body().contentLength();
-                                        fos = new FileOutputStream(file);
-                                        long sum = 0;
-                                        while ((len = is.read(buf)) != -1) {
-                                            fos.write(buf, 0, len);
-                                            sum += len;
-                                            int progress = (int) (sum * 1.0f / total * 100);
-                                            //下载中更新进度条
-                                            listener.onDownloading(progress);
-                                        }
-                                        fos.flush();
-                                        //下载完成
-                                        listener.onDownloadSuccess(file);
-                                    } catch (Exception e) {
-                                        listener.onDownloadFailed(e);
-                                    }finally {
-                                        try {
-                                            if (is != null) {
-                                                is.close();
-                                            }
-                                            if (fos != null) {
-                                                fos.close();
-                                            }
-                                        } catch (IOException e) {
-
-                                        }
-
-                                    }
-                                }
-                            }, listener);
-                        } catch (Exception e) {
-
-                        }
-                        Log.i(TAG, "onResponse: 获取系统配置成功! ");
-                    } else {
-                        Log.w(TAG, "onResponse: code==>" + readValue.getCode() + ", msg==>" + readValue.getMsg());
-                    }
-                } catch (RuntimeException e) {
-                    Log.e(TAG, "onResponse: 获取系统配置错误! 未知错误! ", e);
-                }
-            }
-        });
-
-        ICHPublishClient ichPublishClient = ICHPublishClient.getInstance();
-
-        String clientId = BaseUtils.getClientId();
-        ICHTopic.CLIENT_ID = clientId;
-        // 订阅主题
-//        ICHSubscribeClient ichSubscribeClient = ICHSubscribeClient.getInstance();
-        ichPublishClient.subscribe(ICHTopic.LOCK + clientId, (s, msg) -> {
-            String payload = new String(msg.getPayload());
-            ObjectMapper objectMapper = new ObjectMapper();
-            Message message = objectMapper.readValue(payload, Message.class);
-            Log.i(TAG, "onCreate: message id: " + s + "--------------消息体: " + message);
-
-            DeviceControl.unlockLocker(message.getSection(), message.getPort(), (var1, var2) -> {
-                Log.i(TAG, "onCreate: 开锁返回码: " + var1 + "--------------返回消息: " + Arrays.asList(var2));
-                MqttMessage mqttMessage;
-                if (var1 != 0) {
-                    try {
-                        mqttMessage = wrapMessage(message, objectMapper);
-                        ichPublishClient.publish(String.format(ICHTopic.CALLBACK_FAILED, BaseUtils.getClientId()), mqttMessage);
-                    } catch (JsonProcessingException e) {
-                        Log.e(TAG, "onCreate: ---------------------序列化开锁错误消息失败! ", e);
-                    } catch (Exception e) {
-                        Log.e(TAG, "onCreate: ---------------------未知错误! ", e);
-                    }
-                } else {
-                    // TODO 暂时不做 成功需要不断去请求查询锁是否关闭, 关闭后推送成功消息
-                    Log.i(TAG, "onCreate: -------------------------开锁成功");
-//                    AtomicBoolean atomicBoolean = new AtomicBoolean(true);
-//                    AtomicInteger atomicInteger = new AtomicInteger(5);
-//                    do {
-//                        try {
-//                            TimeUnit.SECONDS.sleep(30);
-//                        } catch (InterruptedException e) {
-//                            Log.e(TAG, "onCreate: 等待查询锁状态时线程中断! ", e);
+//        ICSPClient.getSystemConfig("", BaseUtils.getClientId(), new Callback() {
+//            @Override
+//            public void onFailure(@NotNull Call call, @NotNull IOException e) {
+//                Log.e(TAG, "onFailure: 获取系统配置错误! 网络错误! ", e);
+//            }
+//
+//            @Override
+//            public void onResponse
+//                    (@NotNull Call call, @NotNull Response response) throws IOException {
+//
+//                try {
+//                    OnDownloadListener listener = new OnDownloadListener() {
+//
+//                        @Override
+//                        public void onDownloadSuccess(File file) {
+//
 //                        }
-//                        DeviceControl.queryLocker(message.getSection(), message.getPort(), (var3, var4) -> {
-//                            List<String> strings = Arrays.asList(var4);
-//                            if (var3 == 0 && strings.size() > 0 && !strings.get(0).equals("locked")) {
-//                                atomicBoolean.set(false);
-//                            }
-//                            atomicInteger.decrementAndGet();
-//                        });
-//                        if (atomicInteger.get() <= 0) {
-//                            atomicBoolean.set(false);
+//
+//                        @Override
+//                        public void onDownloading(int progress) {
+//
 //                        }
-//                    } while(atomicBoolean.get());
-                    try {
-                        mqttMessage = wrapMessage(message, objectMapper);
-//                        if (atomicInteger.get() <= 0) {
-//                            message.setCause("长时间未关闭柜门!");
-//                            mqttMessage.setPayload(objectMapper.writeValueAsBytes(message));
-//                            ichPublishClient.publish(String.format(ICHTopic.CALLBACK_FAILED, BaseUtils.getClientId()), mqttMessage);
+//
+//                        @Override
+//                        public void onDownloadFailed(Exception e) {
+//
 //                        }
-
-                        ichPublishClient.publish(String.format(ICHTopic.CALLBACK_SUCCESS, BaseUtils.getClientId()), mqttMessage);
-                    } catch (JsonProcessingException e) {
-                        Log.e(TAG, "onCreate: ---------------------序列化开锁成功消息失败! ", e);
-                    } catch (RuntimeException e) {
-                        Log.e(TAG, "onCreate: ---------------------未知错误! ", e);
-                    }
-                }
-            });
-
-        });
-
-        // 注册柜子信息
-
-        String appVersion = BaseUtils.getAppVersion(getApplicationContext());
-        String androidVersion = BaseUtils.getVersionName();
-        CountDownLatch countDownLatch = new CountDownLatch(10);
-        Cabinet cabinet = DeviceControl.queryCabinetInfo(countDownLatch);
-        try {
-            countDownLatch.await();
-        } catch (InterruptedException e) {
-            e.printStackTrace();
-        }
-
-        cabinet.setClientId(clientId);
-        cabinet.setSoftwareVersion(appVersion);
-        cabinet.setAndroidVersion(androidVersion);
-        cabinet.setSoftwareType("android");
-        cabinet.setImei(BaseUtils.getIMEI(getApplicationContext()));
-        cabinet.setMacIpv4("111");
-        cabinet.setMacIpv6("unknown");
-        cabinet.setNetType("111");
-        cabinet.setPlatType("S905");
-        cabinet.setSim("111");
-        cabinet.setWifiSSid("111");
-
-        ObjectMapper objectMapper = new ObjectMapper();
-
-        try {
-            String jsonData = objectMapper.writeValueAsString(cabinet);
-            Log.i(TAG, "onCreate: jsonData===============>" + jsonData);
-
-            MqttMessage message = new MqttMessage();
-            message.setQos(1);
-            message.setPayload(jsonData.getBytes());
-            ichPublishClient.publish(String.format(ICHTopic.CABINET_INFO_REPORT, clientId), message);
-        } catch (JsonProcessingException e) {
-            Log.e(TAG, "onCreate: 解析成JSON失败!", e);
-        }
-
-        // TODO 更新版本监听
-        ichPublishClient.subscribe(String.format(ICHTopic.APK_UPDATE_PATH, BaseUtils.getClientId()), (msgId, msg) -> {
-            String path = new String(msg.getPayload());
-            // 发起请求下载APK
-            APKUpdateDownload.getInstance().downloadAPK(MainActivity.this, getApplication(), path);
-        });
+//                    };
+//                    String parseResponse = ICSPClient.isSuccessfulAndParseResponse(response);
+//                    ObjectMapper objectMapper = new ObjectMapper();
+//                    ResponseData<Map<String, String>> readValue = objectMapper.readValue(parseResponse, new TypeReference<ResponseData<Map<String, String>>>() {
+//                    });
+//                    if (null != readValue && readValue.getCode().equals(ICSPResponseCodeEnum.OK.getCode())) {
+//                        configMap.putAll(readValue.getData());
+//                        String qrcode_url = configMap.get(SystemConfigConstant.cabinet_take_object_qrcode_url);
+//
+//                        try {
+//                            ICSPClient.download(qrcode_url, new Callback() {
+//                                @Override
+//                                public void onFailure(@NotNull Call call, @NotNull IOException e) {
+//
+//                                }
+//
+//                                @Override
+//                                public void onResponse(@NotNull Call call, @NotNull Response response) throws IOException {
+//                                    InputStream is = null;
+//                                    byte[] buf = new byte[2048];
+//                                    int len = 0;
+//                                    FileOutputStream fos = null;
+//                                    final String destFileDir = "res/drawable/";
+//                                    String destFileName = "e_mp_qrcode_8x8.jpg";
+//                                    //储存下载文件的目录
+//                                    File dir = new File(getApplication().getFilesDir().getAbsolutePath() + "/" +destFileDir);
+//                                    if (!dir.exists()) {
+//                                        dir.mkdirs();
+//                                    }
+////                destFileName = apk_url.substring(apk_url.lastIndexOf('/'), apk_url.length() - 1);
+//                                    File file = new File(dir, destFileName);
+//
+//                                    try {
+//
+//                                        is = response.body().byteStream();
+//                                        long total = response.body().contentLength();
+//                                        fos = new FileOutputStream(file);
+//                                        long sum = 0;
+//                                        while ((len = is.read(buf)) != -1) {
+//                                            fos.write(buf, 0, len);
+//                                            sum += len;
+//                                            int progress = (int) (sum * 1.0f / total * 100);
+//                                            //下载中更新进度条
+//                                            listener.onDownloading(progress);
+//                                        }
+//                                        fos.flush();
+//                                        //下载完成
+//                                        listener.onDownloadSuccess(file);
+//                                    } catch (Exception e) {
+//                                        listener.onDownloadFailed(e);
+//                                    }finally {
+//                                        try {
+//                                            if (is != null) {
+//                                                is.close();
+//                                            }
+//                                            if (fos != null) {
+//                                                fos.close();
+//                                            }
+//                                        } catch (IOException e) {
+//
+//                                        }
+//
+//                                    }
+//                                }
+//                            }, listener);
+//                        } catch (Exception e) {
+//
+//                        }
+//                        Log.i(TAG, "onResponse: 获取系统配置成功! ");
+//                    } else {
+//                        Log.w(TAG, "onResponse: code==>" + readValue.getCode() + ", msg==>" + readValue.getMsg());
+//                    }
+//                } catch (RuntimeException e) {
+//                    Log.e(TAG, "onResponse: 获取系统配置错误! 未知错误! ", e);
+//                }
+//            }
+//        });
+//
+//        ICHPublishClient ichPublishClient = ICHPublishClient.getInstance();
+//
+//        String clientId = BaseUtils.getClientId();
+//        ICHTopic.CLIENT_ID = clientId;
+//        // 订阅主题
+////        ICHSubscribeClient ichSubscribeClient = ICHSubscribeClient.getInstance();
+//        ichPublishClient.subscribe(ICHTopic.LOCK + clientId, (s, msg) -> {
+//            String payload = new String(msg.getPayload());
+//            ObjectMapper objectMapper = new ObjectMapper();
+//            Message message = objectMapper.readValue(payload, Message.class);
+//            Log.i(TAG, "onCreate: message id: " + s + "--------------消息体: " + message);
+//
+//            DeviceControl.unlockLocker(message.getSection(), message.getPort(), (var1, var2) -> {
+//                Log.i(TAG, "onCreate: 开锁返回码: " + var1 + "--------------返回消息: " + Arrays.asList(var2));
+//                MqttMessage mqttMessage;
+//                if (var1 != 0) {
+//                    try {
+//                        mqttMessage = wrapMessage(message, objectMapper);
+//                        ichPublishClient.publish(String.format(ICHTopic.CALLBACK_FAILED, BaseUtils.getClientId()), mqttMessage);
+//                    } catch (JsonProcessingException e) {
+//                        Log.e(TAG, "onCreate: ---------------------序列化开锁错误消息失败! ", e);
+//                    } catch (Exception e) {
+//                        Log.e(TAG, "onCreate: ---------------------未知错误! ", e);
+//                    }
+//                } else {
+//                    // TODO 暂时不做 成功需要不断去请求查询锁是否关闭, 关闭后推送成功消息
+//                    Log.i(TAG, "onCreate: -------------------------开锁成功");
+////                    AtomicBoolean atomicBoolean = new AtomicBoolean(true);
+////                    AtomicInteger atomicInteger = new AtomicInteger(5);
+////                    do {
+////                        try {
+////                            TimeUnit.SECONDS.sleep(30);
+////                        } catch (InterruptedException e) {
+////                            Log.e(TAG, "onCreate: 等待查询锁状态时线程中断! ", e);
+////                        }
+////                        DeviceControl.queryLocker(message.getSection(), message.getPort(), (var3, var4) -> {
+////                            List<String> strings = Arrays.asList(var4);
+////                            if (var3 == 0 && strings.size() > 0 && !strings.get(0).equals("locked")) {
+////                                atomicBoolean.set(false);
+////                            }
+////                            atomicInteger.decrementAndGet();
+////                        });
+////                        if (atomicInteger.get() <= 0) {
+////                            atomicBoolean.set(false);
+////                        }
+////                    } while(atomicBoolean.get());
+//                    try {
+//                        mqttMessage = wrapMessage(message, objectMapper);
+////                        if (atomicInteger.get() <= 0) {
+////                            message.setCause("长时间未关闭柜门!");
+////                            mqttMessage.setPayload(objectMapper.writeValueAsBytes(message));
+////                            ichPublishClient.publish(String.format(ICHTopic.CALLBACK_FAILED, BaseUtils.getClientId()), mqttMessage);
+////                        }
+//
+//                        ichPublishClient.publish(String.format(ICHTopic.CALLBACK_SUCCESS, BaseUtils.getClientId()), mqttMessage);
+//                    } catch (JsonProcessingException e) {
+//                        Log.e(TAG, "onCreate: ---------------------序列化开锁成功消息失败! ", e);
+//                    } catch (RuntimeException e) {
+//                        Log.e(TAG, "onCreate: ---------------------未知错误! ", e);
+//                    }
+//                }
+//            });
+//
+//        });
+//
+//        // 注册柜子信息
+//
+//        String appVersion = BaseUtils.getAppVersion(getApplicationContext());
+//        String androidVersion = BaseUtils.getVersionName();
+//        CountDownLatch countDownLatch = new CountDownLatch(10);
+//        Cabinet cabinet = DeviceControl.queryCabinetInfo(countDownLatch);
+//        try {
+//            countDownLatch.await();
+//        } catch (InterruptedException e) {
+//            e.printStackTrace();
+//        }
+//
+//        cabinet.setClientId(clientId);
+//        cabinet.setSoftwareVersion(appVersion);
+//        cabinet.setAndroidVersion(androidVersion);
+//        cabinet.setSoftwareType("android");
+//        cabinet.setImei(BaseUtils.getIMEI(getApplicationContext()));
+//        cabinet.setMacIpv4("111");
+//        cabinet.setMacIpv6("unknown");
+//        cabinet.setNetType("111");
+//        cabinet.setPlatType("S905");
+//        cabinet.setSim("111");
+//        cabinet.setWifiSSid("111");
+//
+//        ObjectMapper objectMapper = new ObjectMapper();
+//
+//        try {
+//            String jsonData = objectMapper.writeValueAsString(cabinet);
+//            Log.i(TAG, "onCreate: jsonData===============>" + jsonData);
+//
+//            MqttMessage message = new MqttMessage();
+//            message.setQos(1);
+//            message.setPayload(jsonData.getBytes());
+//            ichPublishClient.publish(String.format(ICHTopic.CABINET_INFO_REPORT, clientId), message);
+//        } catch (JsonProcessingException e) {
+//            Log.e(TAG, "onCreate: 解析成JSON失败!", e);
+//        }
+//
+//        // TODO 更新版本监听
+//        ichPublishClient.subscribe(String.format(ICHTopic.APK_UPDATE_PATH, BaseUtils.getClientId()), (msgId, msg) -> {
+//            String path = new String(msg.getPayload());
+//            // 发起请求下载APK
+//            APKUpdateDownload.getInstance().downloadAPK(MainActivity.this, getApplication(), path);
+//        });
     }
 
     @Override

+ 1 - 1
app/src/main/java/com/emato/ich/fragment/SendFragment.java

@@ -21,6 +21,7 @@ import com.emato.ich.databinding.FragmentSendBinding;
 import com.emato.ich.entity.vo.ResponseData;
 import com.emato.ich.entity.vo.ResponseTokenVo;
 import com.emato.ich.local.LocalStorage;
+import com.emato.ich.utils.BaseUtils;
 import com.emato.ich.utils.StringUtils;
 import com.fasterxml.jackson.core.JsonProcessingException;
 import com.fasterxml.jackson.core.type.TypeReference;
@@ -52,7 +53,6 @@ public class SendFragment extends Fragment {
 
     public void onViewCreated(@NonNull View view, Bundle savedInstanceState) {
         super.onViewCreated(view, savedInstanceState);
-        // TODO 登录
 
         binding.inputButtonConfirm.setOnClickListener(view1 -> {
             // 登录逻辑  editTextTextPersonName4 手机 editTextTextPersonName5 密码

+ 2 - 0
app/src/main/java/com/emato/ich/utils/BaseUtils.java

@@ -13,6 +13,8 @@ import android.telephony.SubscriptionManager;
 import android.telephony.TelephonyManager;
 import android.text.TextUtils;
 import android.util.Log;
+import android.view.View;
+import android.view.inputmethod.InputMethodManager;
 
 import androidx.core.app.ActivityCompat;
 import androidx.core.content.ContextCompat;

+ 2 - 2
app/src/main/res/drawable/textview_border.xml

@@ -1,6 +1,6 @@
 <?xml version="1.0" encoding="utf-8"?>
 <shape xmlns:android="http://schemas.android.com/apk/res/android" android:shape="rectangle" >
     <solid android:color="#ffffff" />
-    <stroke android:width="10dip" android:color="#DFD5AA"/>
-    <corners android:radius="30dip" />
+    <stroke android:width="2dip" android:color="#EDE6C9"/>
+    <corners android:radius="20dip" />
 </shape>

BIN
app/src/main/res/drawable/top_image.jpg


+ 14 - 0
app/src/main/res/layout/content_main.xml

@@ -1,12 +1,15 @@
 <?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"
+    xmlns:tools="http://schemas.android.com/tools"
     android:layout_width="match_parent"
     android:layout_height="match_parent"
     app:layout_behavior="@string/appbar_scrolling_view_behavior"
     android:focusable="true"
     android:focusableInTouchMode="true">
 
+
+
     <fragment
         android:id="@+id/nav_host_fragment_content_main"
         android:name="androidx.navigation.fragment.NavHostFragment"
@@ -20,4 +23,15 @@
         app:layout_constraintTop_toTopOf="parent"
         app:layout_constraintVertical_bias="0.0"
         app:navGraph="@navigation/nav_graph" />
+
+    <ImageView
+        android:id="@+id/imageView"
+        android:layout_width="320dp"
+        android:layout_height="260dp"
+        app:layout_constraintEnd_toEndOf="parent"
+        app:layout_constraintHorizontal_bias="0.0"
+        app:layout_constraintStart_toStartOf="parent"
+        app:srcCompat="@drawable/top_image"
+        tools:ignore="MissingConstraints"
+        tools:layout_editor_absoluteY="0dp" />
 </androidx.constraintlayout.widget.ConstraintLayout>

+ 82 - 82
app/src/main/res/layout/fragment_choose_cabinet.xml

@@ -7,141 +7,141 @@
 
     <Button
         android:id="@+id/return_btn"
-        android:layout_width="115dp"
-        android:layout_height="70dp"
-        android:layout_x="165dp"
-        android:layout_y="1732dp"
+        android:layout_width="60dp"
+        android:layout_height="30dp"
+        android:layout_x="25dp"
+        android:layout_y="494dp"
         android:background="@drawable/button_radius"
         android:text="@string/return_btn"
-        android:textSize="30dp" />
+        android:textSize="8dp" />
 
     <TextView
-        android:id="@+id/tiny_cabinet_bg"
-        android:layout_width="160dp"
-        android:layout_height="160dp"
-        android:layout_x="28dp"
-        android:layout_y="1224dp"
+        android:id="@+id/small_cabinet_bg"
+        android:layout_width="65dp"
+        android:layout_height="65dp"
+        android:layout_x="80dp"
+        android:layout_y="350dp"
         android:background="@color/choose_cabinet_view"
         android:gravity="center"
-        android:text="@string/tiny_cabinet"
+        android:text="@string/small_cabinet"
         android:textColor="@color/white"
-        android:textSize="20dp" />
+        android:textSize="15dp" />
+
+    <Button
+        android:id="@+id/small_cabinet_btn"
+        android:layout_width="60dp"
+        android:layout_height="30dp"
+        android:layout_x="83dp"
+        android:layout_y="421dp"
+        android:background="@drawable/button_radius"
+        android:text="@string/choose_btn"
+        android:textSize="8dp" />
 
     <TextView
-        android:id="@+id/tiny_cabinet"
-        android:layout_width="160dp"
-        android:layout_height="50dp"
-        android:layout_x="28dp"
-        android:layout_y="1332dp"
-        android:background="@color/choose_cabinet_view"
+        android:id="@+id/small_cabinet"
+        android:layout_width="65dp"
+        android:layout_height="20dp"
+        android:layout_x="80dp"
+        android:layout_y="395dp"
         android:gravity="center"
         android:textColor="@color/white"
-        android:textSize="20dp" />
-
-    <Button
-        android:id="@+id/tiny_cabinet_btn"
-        android:layout_width="115dp"
-        android:layout_height="70dp"
-        android:layout_x="49dp"
-        android:layout_y="1416dp"
-        android:background="@drawable/button_radius"
-        android:textSize="30dp"
-        android:text="@string/choose_btn" />
+        android:textSize="8dp" />
 
     <TextView
-        android:id="@+id/small_cabinet_bg"
-        android:layout_width="200dp"
-        android:layout_height="200dp"
-        android:layout_x="221dp"
-        android:layout_y="1184dp"
+        android:id="@+id/tiny_cabinet_bg"
+        android:layout_width="60dp"
+        android:layout_height="60dp"
+        android:layout_x="12dp"
+        android:layout_y="355dp"
         android:background="@color/choose_cabinet_view"
         android:gravity="center"
-        android:text="@string/small_cabinet"
+        android:text="@string/tiny_cabinet"
         android:textColor="@color/white"
-        android:textSize="30dp" />
+        android:textSize="10dp" />
 
     <TextView
-        android:id="@+id/small_cabinet"
-        android:layout_width="200dp"
-        android:layout_height="50dp"
-        android:layout_x="220dp"
-        android:layout_y="1332dp"
+        android:id="@+id/tiny_cabinet"
+        android:layout_width="60dp"
+        android:layout_height="20dp"
+        android:layout_x="12dp"
+        android:layout_y="395dp"
+        android:background="#A5DFA1"
         android:gravity="center"
         android:textColor="@color/white"
-        android:textSize="30dp" />
+        android:textSize="8dp" />
 
     <Button
-        android:id="@+id/small_cabinet_btn"
-        android:layout_width="115dp"
-        android:layout_height="70dp"
-        android:layout_x="266dp"
-        android:layout_y="1416dp"
+        android:id="@+id/tiny_cabinet_btn"
+        android:layout_width="60dp"
+        android:layout_height="30dp"
+        android:layout_x="12dp"
+        android:layout_y="420dp"
         android:background="@drawable/button_radius"
-        android:textSize="30dp"
-        android:text="@string/choose_btn" />
+        android:text="@string/choose_btn"
+        android:textSize="8dp" />
 
     <TextView
         android:id="@+id/big_cabinet_bg"
-        android:layout_width="280dp"
-        android:layout_height="280dp"
-        android:layout_x="717dp"
-        android:layout_y="1104dp"
+        android:layout_width="75dp"
+        android:layout_height="75dp"
+        android:layout_x="234dp"
+        android:layout_y="340dp"
         android:background="@color/choose_cabinet_view"
         android:gravity="center"
         android:text="@string/big_cabinet"
         android:textColor="@color/white"
-        android:textSize="50dp" />
+        android:textSize="20dp" />
 
     <TextView
         android:id="@+id/big_cabinet"
-        android:layout_width="280dp"
-        android:layout_height="50dp"
-        android:layout_x="716dp"
-        android:layout_y="1332dp"
+        android:layout_width="75dp"
+        android:layout_height="20dp"
+        android:layout_x="234dp"
+        android:layout_y="395dp"
         android:gravity="center"
         android:textColor="@color/white"
-        android:textSize="30dp" />
+        android:textSize="8dp" />
 
     <Button
         android:id="@+id/big_cabinet_btn"
-        android:layout_width="115dp"
-        android:layout_height="70dp"
-        android:layout_x="809dp"
-        android:layout_y="1416dp"
+        android:layout_width="60dp"
+        android:layout_height="30dp"
+        android:layout_x="240dp"
+        android:layout_y="420dp"
         android:background="@drawable/button_radius"
-        android:textSize="30dp"
-        android:text="@string/choose_btn" />
+        android:text="@string/choose_btn"
+        android:textSize="8dp" />
 
     <TextView
         android:id="@+id/medium_cabinet_bg"
-        android:layout_width="240dp"
-        android:layout_height="240dp"
-        android:layout_x="447dp"
-        android:layout_y="1144dp"
+        android:layout_width="70dp"
+        android:layout_height="70dp"
+        android:layout_x="154dp"
+        android:layout_y="345dp"
         android:background="@color/choose_cabinet_view"
         android:gravity="center"
         android:text="@string/medium_cabinet"
         android:textColor="@color/white"
-        android:textSize="40dp" />
+        android:textSize="18dp" />
 
     <TextView
         android:id="@+id/medium_cabinet"
-        android:layout_width="240dp"
-        android:layout_height="50dp"
-        android:layout_x="447dp"
-        android:layout_y="1332dp"
+        android:layout_width="70dp"
+        android:layout_height="20dp"
+        android:layout_x="154dp"
+        android:layout_y="395dp"
         android:gravity="center"
-        android:textSize="30dp"
-        android:textColor="@color/white"/>
+        android:textColor="@color/white"
+        android:textSize="8dp" />
 
     <Button
         android:id="@+id/medium_cabinet_btn"
-        android:layout_width="115dp"
-        android:layout_height="70dp"
-        android:layout_x="505dp"
-        android:layout_y="1416dp"
+        android:layout_width="60dp"
+        android:layout_height="30dp"
+        android:layout_x="159dp"
+        android:layout_y="420dp"
         android:background="@drawable/button_radius"
-        android:textSize="30dp"
-        android:text="@string/choose_btn" />
+        android:text="@string/choose_btn"
+        android:textSize="8dp" />
 
 </AbsoluteLayout>

+ 41 - 41
app/src/main/res/layout/fragment_exception.xml

@@ -7,72 +7,72 @@
 
     <Button
         android:id="@+id/return_btn"
-        android:layout_width="115dp"
-        android:layout_height="70dp"
-        android:layout_x="165dp"
-        android:layout_y="1732dp"
+        android:layout_width="60dp"
+        android:layout_height="30dp"
+        android:layout_x="25dp"
+        android:layout_y="494dp"
         android:background="@drawable/button_radius"
         android:text="@string/return_btn"
-        android:textSize="30dp" />
+        android:textSize="8dp" />
 
     <Button
         android:id="@+id/issue_size"
-        android:layout_width="300dp"
-        android:layout_height="120dp"
-        android:layout_x="109dp"
-        android:layout_y="1059dp"
-        android:textSize="30dp"
+        android:layout_width="90dp"
+        android:layout_height="50dp"
+        android:layout_x="45dp"
+        android:layout_y="300dp"
         android:background="@drawable/button_radius"
-        android:text="@string/issue_size" />
+        android:text="@string/issue_size"
+        android:textSize="10dp" />
 
     <Button
         android:id="@+id/issue_take_cancel"
-        android:layout_width="300dp"
-        android:layout_height="120dp"
-        android:layout_x="109dp"
-        android:layout_y="1527dp"
-        android:textSize="30dp"
+        android:layout_width="90dp"
+        android:layout_height="50dp"
+        android:layout_x="45dp"
+        android:layout_y="360dp"
         android:background="@drawable/button_radius"
-        android:text="@string/issue_take_cancel" />
+        android:text="@string/issue_take_cancel"
+        android:textSize="10dp" />
 
     <Button
         android:id="@+id/issue_cancel"
-        android:layout_width="300dp"
-        android:layout_height="120dp"
-        android:layout_x="576dp"
-        android:layout_y="1275dp"
-        android:textSize="30dp"
+        android:layout_width="90dp"
+        android:layout_height="50dp"
+        android:layout_x="45dp"
+        android:layout_y="420dp"
         android:background="@drawable/button_radius"
-        android:text="@string/issue_cancel" />
+        android:text="@string/issue_cancel"
+        android:textSize="10dp" />
 
     <Button
         android:id="@+id/issue_door_not_open"
-        android:layout_width="300dp"
-        android:layout_height="120dp"
-        android:layout_x="576dp"
-        android:layout_y="1059dp"
-        android:textSize="30dp"
+        android:layout_width="90dp"
+        android:layout_height="50dp"
+        android:layout_x="180dp"
+        android:layout_y="360dp"
         android:background="@drawable/button_radius"
-        android:text="@string/issue_door_not_open" />
+        android:text="@string/issue_door_not_open"
+        android:textSize="10dp" />
 
     <Button
         android:id="@+id/issue_other"
-        android:layout_width="300dp"
-        android:layout_height="120dp"
-        android:layout_x="576dp"
-        android:layout_y="1527dp"
-        android:textSize="30dp"
+        android:layout_width="90dp"
+        android:layout_height="50dp"
+        android:layout_x="180dp"
+        android:layout_y="420dp"
         android:background="@drawable/button_radius"
-        android:text="@string/issue_other" />
+        android:text="@string/issue_other"
+        android:textSize="10dp" />
 
     <Button
         android:id="@+id/issue_open_again"
-        android:layout_width="300dp"
-        android:layout_height="120dp"
-        android:layout_x="109dp"
-        android:layout_y="1275dp"
-        android:textSize="30dp"
+        android:layout_width="90dp"
+        android:layout_height="50dp"
+        android:layout_x="180dp"
+        android:layout_y="300dp"
         android:background="@drawable/button_radius"
-        android:text="@string/issue_open_again" />
+        android:text="@string/issue_open_again"
+        android:textSize="10dp" />
 
 </AbsoluteLayout>

+ 104 - 104
app/src/main/res/layout/fragment_input_info.xml

@@ -7,154 +7,154 @@
 
     <Button
         android:id="@+id/return_btn"
-        android:layout_width="115dp"
-        android:layout_height="70dp"
-        android:layout_x="165dp"
-        android:layout_y="1732dp"
+        android:layout_width="60dp"
+        android:layout_height="30dp"
+        android:layout_x="25dp"
+        android:layout_y="494dp"
         android:background="@drawable/button_radius"
         android:text="@string/return_btn"
-        android:textSize="30dp" />
+        android:textSize="8dp" />
 
     <EditText
         android:id="@+id/mail_no"
-        android:layout_width="400dp"
-        android:layout_height="80dp"
-        android:layout_x="52dp"
-        android:layout_y="1164dp"
+        android:layout_width="150dp"
+        android:layout_height="50dp"
+        android:layout_x="10dp"
+        android:layout_y="325dp"
         android:ems="10"
-        android:longClickable="false"
-        android:textSize="30dp"
         android:hint="@string/input_express_number"
-        android:inputType="none" />
-
-    <Button
-        android:id="@+id/button_confirm"
-        android:layout_width="470dp"
-        android:layout_height="80dp"
-        android:layout_x="474dp"
-        android:layout_y="1451dp"
-        android:text="@string/confirm_btn"
-        android:textSize="40dp" />
+        android:inputType="none"
+        android:longClickable="false"
+        android:textSize="10dp" />
 
     <Button
         android:id="@+id/input_button7"
-        android:layout_width="150dp"
-        android:layout_height="80dp"
-        android:layout_x="474dp"
-        android:layout_y="1291dp"
+        android:layout_width="50dp"
+        android:layout_height="40dp"
+        android:layout_x="160dp"
+        android:layout_y="385dp"
         android:text="@string/number_7"
-        android:textSize="40dp" />
+        android:textSize="10dp" />
 
     <Button
-        android:id="@+id/input_button5"
-        android:layout_width="150dp"
-        android:layout_height="80dp"
-        android:layout_x="634dp"
-        android:layout_y="1211dp"
-        android:text="@string/number_5"
-        android:textSize="40dp" />
+        android:id="@+id/input_button8"
+        android:layout_width="50dp"
+        android:layout_height="40dp"
+        android:layout_x="211dp"
+        android:layout_y="385dp"
+        android:text="@string/number_8"
+        android:textSize="10dp" />
 
     <Button
-        android:id="@+id/input_button9"
-        android:layout_width="150dp"
-        android:layout_height="80dp"
-        android:layout_x="794dp"
-        android:layout_y="1291dp"
-        android:text="@string/number_9"
-        android:textSize="40dp" />
+        android:id="@+id/input_button1"
+        android:layout_width="50dp"
+        android:layout_height="40dp"
+        android:layout_x="160dp"
+        android:layout_y="325dp"
+        android:text="@string/number_1"
+        android:textSize="10dp" />
 
     <Button
-        android:id="@+id/input_button_cancel"
-        android:layout_width="310dp"
-        android:layout_height="80dp"
-        android:layout_x="634dp"
-        android:layout_y="1371dp"
-        android:text="@string/cancel_btn"
-        android:textSize="40dp" />
+        android:id="@+id/input_button2"
+        android:layout_width="50dp"
+        android:layout_height="40dp"
+        android:layout_x="211dp"
+        android:layout_y="325dp"
+        android:text="@string/number_2"
+        android:textSize="10dp" />
 
     <Button
-        android:id="@+id/input_button0"
-        android:layout_width="150dp"
-        android:layout_height="80dp"
-        android:layout_x="474dp"
-        android:layout_y="1371dp"
-        android:text="@string/number_0"
-        android:textSize="40dp" />
+        android:id="@+id/input_button3"
+        android:layout_width="50dp"
+        android:layout_height="40dp"
+        android:layout_x="262dp"
+        android:layout_y="325dp"
+        android:text="@string/number_3"
+        android:textSize="10dp" />
+
+    <Button
+        android:id="@+id/input_button5"
+        android:layout_width="50dp"
+        android:layout_height="40dp"
+        android:layout_x="211dp"
+        android:layout_y="355dp"
+        android:text="@string/number_5"
+        android:textSize="10dp" />
 
     <Button
         android:id="@+id/input_button4"
-        android:layout_width="150dp"
-        android:layout_height="80dp"
-        android:layout_x="474dp"
-        android:layout_y="1211dp"
+        android:layout_width="50dp"
+        android:layout_height="40dp"
+        android:layout_x="160dp"
+        android:layout_y="355dp"
         android:text="@string/number_4"
-        android:textSize="40dp" />
+        android:textSize="10dp" />
 
     <Button
-        android:id="@+id/input_button8"
-        android:layout_width="150dp"
-        android:layout_height="80dp"
-        android:layout_x="634dp"
-        android:layout_y="1291dp"
-        android:text="@string/number_8"
-        android:textSize="40dp" />
+        android:id="@+id/input_button_cancel"
+        android:layout_width="101dp"
+        android:layout_height="40dp"
+        android:layout_x="211dp"
+        android:layout_y="415dp"
+        android:text="@string/cancel_btn"
+        android:textSize="10dp" />
 
     <Button
-        android:id="@+id/input_button6"
-        android:layout_width="150dp"
-        android:layout_height="80dp"
-        android:layout_x="794dp"
-        android:layout_y="1211dp"
-        android:text="@string/number_6"
-        android:textSize="40dp" />
+        android:id="@+id/input_button0"
+        android:layout_width="50dp"
+        android:layout_height="40dp"
+        android:layout_x="160dp"
+        android:layout_y="415dp"
+        android:text="@string/number_0"
+        android:textSize="10dp" />
 
     <Button
-        android:id="@+id/input_button2"
-        android:layout_width="150dp"
-        android:layout_height="80dp"
-        android:layout_x="634dp"
-        android:layout_y="1131dp"
-        android:text="@string/number_2"
-        android:textSize="40dp" />
+        android:id="@+id/button_confirm"
+        android:layout_width="152dp"
+        android:layout_height="40dp"
+        android:layout_x="160dp"
+        android:layout_y="445dp"
+        android:text="@string/confirm_btn"
+        android:textSize="12dp" />
 
     <Button
-        android:id="@+id/input_button3"
-        android:layout_width="150dp"
-        android:layout_height="80dp"
-        android:layout_x="794dp"
-        android:layout_y="1131dp"
-        android:text="@string/number_3"
-        android:textSize="40dp" />
+        android:id="@+id/input_button6"
+        android:layout_width="50dp"
+        android:layout_height="40dp"
+        android:layout_x="262dp"
+        android:layout_y="355dp"
+        android:text="@string/number_6"
+        android:textSize="10dp" />
 
     <Button
-        android:id="@+id/input_button1"
-        android:layout_width="150dp"
-        android:layout_height="80dp"
-        android:layout_x="474dp"
-        android:layout_y="1131dp"
-        android:text="@string/number_1"
-        android:textSize="40dp" />
+        android:id="@+id/input_button9"
+        android:layout_width="50dp"
+        android:layout_height="40dp"
+        android:layout_x="262dp"
+        android:layout_y="385dp"
+        android:text="@string/number_9"
+        android:textSize="10dp" />
 
     <EditText
         android:id="@+id/deliverer_phone_confirm"
-        android:layout_width="400dp"
-        android:layout_height="80dp"
-        android:layout_x="52dp"
-        android:layout_y="1264dp"
+        android:layout_width="150dp"
+        android:layout_height="50dp"
+        android:layout_x="10dp"
+        android:layout_y="365dp"
         android:ems="10"
         android:longClickable="false"
-        android:textSize="30dp"
+        android:textSize="10dp"
         android:hint="@string/input_recipients_phone"
         android:inputType="phone" />
 
     <EditText
         android:id="@+id/deliverer_phone"
-        android:layout_width="400dp"
-        android:layout_height="80dp"
-        android:layout_x="52dp"
-        android:layout_y="1364dp"
+        android:layout_width="150dp"
+        android:layout_height="50dp"
+        android:layout_x="10dp"
+        android:layout_y="405dp"
         android:longClickable="false"
-        android:textSize="30dp"
+        android:textSize="10dp"
         android:ems="10"
         android:hint="@string/input_recipients_phone_confirm"
         android:inputType="phone" />

+ 18 - 21
app/src/main/res/layout/fragment_main.xml

@@ -4,19 +4,11 @@
     android:layout_height="match_parent">
 
     <TextView
-        android:id="@+id/fast_take_send"
-        android:layout_width="134dp"
-        android:layout_height="135dp"
-        android:layout_x="159dp"
-        android:layout_y="305dp"
-        android:background="@drawable/e_mp_qrcode_8x8_backup" />
-
-    <TextView
         android:id="@+id/fast_take_send_bg"
         android:layout_width="160dp"
         android:layout_height="250dp"
-        android:layout_x="147dp"
-        android:layout_y="248dp"
+        android:layout_x="145dp"
+        android:layout_y="283dp"
         android:background="@drawable/textview_border"
         android:gravity="center_horizontal"
         android:paddingTop="15dp"
@@ -24,29 +16,34 @@
         android:textSize="20sp" />
 
     <Button
-        android:id="@+id/take_btn"
+        android:id="@+id/send_btn"
         android:layout_width="120dp"
         android:layout_height="70dp"
-        android:layout_x="16dp"
-        android:layout_y="402dp"
+        android:layout_x="12dp"
+        android:layout_y="332dp"
         android:background="@drawable/button_radius"
-        android:text="@string/take_btn"
+        android:text="@string/send_btn"
         android:textSize="20sp"
         android:textStyle="bold" />
 
     <Button
-        android:id="@+id/send_btn"
+        android:id="@+id/take_btn"
         android:layout_width="120dp"
         android:layout_height="70dp"
-        android:layout_x="16dp"
-        android:layout_y="302dp"
+        android:layout_x="12dp"
+        android:layout_y="432dp"
         android:background="@drawable/button_radius"
-        android:shadowColor="@color/black"
-        android:shadowDx="10"
-        android:shadowDy="40"
-        android:text="@string/send_btn"
+        android:text="@string/take_btn"
         android:textSize="20sp"
         android:textStyle="bold" />
 
+    <TextView
+        android:id="@+id/fast_take_send"
+        android:layout_width="134dp"
+        android:layout_height="135dp"
+        android:layout_x="157dp"
+        android:layout_y="340dp"
+        android:background="@drawable/e_mp_qrcode_8x8_backup" />
+
 
 </AbsoluteLayout>

+ 96 - 96
app/src/main/res/layout/fragment_send.xml

@@ -7,13 +7,13 @@
 
     <Button
         android:id="@+id/return_btn"
-        android:layout_width="115dp"
-        android:layout_height="70dp"
-        android:layout_x="165dp"
-        android:layout_y="1732dp"
+        android:layout_width="60dp"
+        android:layout_height="30dp"
+        android:layout_x="25dp"
+        android:layout_y="494dp"
         android:background="@drawable/button_radius"
         android:text="@string/return_btn"
-        android:textSize="30dp" />
+        android:textSize="8dp" />
 
     <!--  投递员密码  -->
 
@@ -22,132 +22,132 @@
 
     <EditText
         android:id="@+id/editTextTextPersonName4"
-        android:layout_width="300dp"
-        android:layout_height="80dp"
-        android:layout_x="37dp"
-        android:layout_y="1102dp"
-        android:textSize="30dp"
+        android:layout_width="150dp"
+        android:layout_height="50dp"
+        android:layout_x="10dp"
+        android:layout_y="325dp"
+        android:textSize="10dp"
         android:longClickable="false"
         android:ems="15"
         android:hint="@string/input_send_phone"
         android:inputType="number" />
 
     <Button
-        android:id="@+id/input_button1"
-        android:layout_width="150dp"
-        android:layout_height="80dp"
-        android:layout_x="424dp"
-        android:layout_y="1093dp"
-        android:text="@string/number_1"
-        android:textSize="40dp" />
-
-    <Button
-        android:id="@+id/input_button2"
-        android:layout_width="150dp"
-        android:layout_height="80dp"
-        android:layout_x="584dp"
-        android:layout_y="1093dp"
-        android:text="@string/number_2"
-        android:textSize="40dp" />
-
-    <Button
-        android:id="@+id/input_button_cancel"
-        android:layout_width="310dp"
-        android:layout_height="80dp"
-        android:layout_x="584dp"
-        android:layout_y="1333dp"
-        android:text="@string/cancel_btn"
-        android:textSize="40dp" />
+        android:id="@+id/input_button7"
+        android:layout_width="48dp"
+        android:layout_height="40dp"
+        android:layout_x="160dp"
+        android:layout_y="385dp"
+        android:text="@string/number_7"
+        android:textSize="10dp" />
 
     <Button
         android:id="@+id/input_button8"
-        android:layout_width="150dp"
-        android:layout_height="80dp"
-        android:layout_x="584dp"
-        android:layout_y="1253dp"
+        android:layout_width="48dp"
+        android:layout_height="40dp"
+        android:layout_x="211dp"
+        android:layout_y="385dp"
         android:text="@string/number_8"
-        android:textSize="40dp" />
+        android:textSize="10dp" />
 
     <Button
-        android:id="@+id/input_button5"
-        android:layout_width="150dp"
-        android:layout_height="80dp"
-        android:layout_x="584dp"
-        android:layout_y="1173dp"
-        android:text="@string/number_5"
-        android:textSize="40dp" />
+        android:id="@+id/input_button1"
+        android:layout_width="48dp"
+        android:layout_height="40dp"
+        android:layout_x="160dp"
+        android:layout_y="325dp"
+        android:text="@string/number_1"
+        android:textSize="10dp" />
 
     <Button
-        android:id="@+id/input_button3"
-        android:layout_width="150dp"
-        android:layout_height="80dp"
-        android:layout_x="744dp"
-        android:layout_y="1093dp"
-        android:text="@string/number_3"
-        android:textSize="40dp" />
+        android:id="@+id/input_button2"
+        android:layout_width="48dp"
+        android:layout_height="40dp"
+        android:layout_x="211dp"
+        android:layout_y="325dp"
+        android:text="@string/number_2"
+        android:textSize="10dp" />
 
     <Button
-        android:id="@+id/input_button9"
-        android:layout_width="150dp"
-        android:layout_height="80dp"
-        android:layout_x="744dp"
-        android:layout_y="1253dp"
-        android:text="@string/number_9"
-        android:textSize="40dp" />
+        android:id="@+id/input_button3"
+        android:layout_width="48dp"
+        android:layout_height="40dp"
+        android:layout_x="262dp"
+        android:layout_y="325dp"
+        android:text="@string/number_3"
+        android:textSize="10dp" />
 
     <Button
-        android:id="@+id/input_button6"
-        android:layout_width="150dp"
-        android:layout_height="80dp"
-        android:layout_x="744dp"
-        android:layout_y="1173dp"
-        android:text="@string/number_6"
-        android:textSize="40dp" />
+        android:id="@+id/input_button5"
+        android:layout_width="48dp"
+        android:layout_height="40dp"
+        android:layout_x="211dp"
+        android:layout_y="355dp"
+        android:text="@string/number_5"
+        android:textSize="10dp" />
 
     <Button
         android:id="@+id/input_button4"
-        android:layout_width="150dp"
-        android:layout_height="80dp"
-        android:layout_x="424dp"
-        android:layout_y="1173dp"
+        android:layout_width="48dp"
+        android:layout_height="40dp"
+        android:layout_x="160dp"
+        android:layout_y="355dp"
         android:text="@string/number_4"
-        android:textSize="40dp" />
+        android:textSize="10dp" />
+
+    <Button
+        android:id="@+id/input_button_cancel"
+        android:layout_width="100dp"
+        android:layout_height="40dp"
+        android:layout_x="211dp"
+        android:layout_y="415dp"
+        android:text="@string/cancel_btn"
+        android:textSize="10dp" />
 
     <Button
         android:id="@+id/input_button0"
-        android:layout_width="150dp"
-        android:layout_height="80dp"
-        android:layout_x="424dp"
-        android:layout_y="1333dp"
+        android:layout_width="48dp"
+        android:layout_height="40dp"
+        android:layout_x="160dp"
+        android:layout_y="415dp"
         android:text="@string/number_0"
-        android:textSize="40dp" />
+        android:textSize="10dp" />
 
     <Button
-        android:id="@+id/input_button7"
+        android:id="@+id/input_button_confirm"
         android:layout_width="150dp"
-        android:layout_height="80dp"
-        android:layout_x="424dp"
-        android:layout_y="1253dp"
-        android:text="@string/number_7"
-        android:textSize="40dp" />
+        android:layout_height="40dp"
+        android:layout_x="160dp"
+        android:layout_y="445dp"
+        android:text="@string/confirm_btn"
+        android:textSize="10dp" />
 
     <Button
-        android:id="@+id/input_button_confirm"
-        android:layout_width="470dp"
-        android:layout_height="80dp"
-        android:layout_x="424dp"
-        android:layout_y="1413dp"
-        android:text="@string/confirm_btn"
-        android:textSize="40dp" />
+        android:id="@+id/input_button6"
+        android:layout_width="48dp"
+        android:layout_height="40dp"
+        android:layout_x="262dp"
+        android:layout_y="355dp"
+        android:text="@string/number_6"
+        android:textSize="10dp" />
+
+    <Button
+        android:id="@+id/input_button9"
+        android:layout_width="48dp"
+        android:layout_height="40dp"
+        android:layout_x="262dp"
+        android:layout_y="385dp"
+        android:text="@string/number_9"
+        android:textSize="10dp" />
 
     <EditText
         android:id="@+id/editTextTextPersonName5"
-        android:layout_width="300dp"
-        android:layout_height="80dp"
-        android:layout_x="37dp"
-        android:textSize="30dp"
+        android:layout_width="150dp"
+        android:layout_height="50dp"
+        android:layout_x="10dp"
+        android:layout_y="365dp"
+        android:textSize="10dp"
         android:longClickable="false"
-        android:layout_y="1303dp"
         android:ems="15"
         android:hint="@string/input_send_password"
         android:inputType="numberPassword" />

+ 71 - 71
app/src/main/res/layout/fragment_send_info_confirm.xml

@@ -4,104 +4,104 @@
     android:layout_height="match_parent">
 
     <TextView
-        android:id="@+id/take_no"
-        android:layout_width="500dp"
-        android:layout_height="110dp"
-        android:layout_x="422dp"
-        android:layout_y="1275dp"
-        android:gravity="center"
-        android:text="@string/take_no"
-        android:textSize="30dp" />
-
-    <TextView
         android:id="@+id/open_cabinet_hint1"
-        android:layout_width="329dp"
-        android:layout_height="89dp"
-        android:layout_x="387dp"
-        android:layout_y="803dp"
-        android:gravity="center_horizontal"
-        android:text="@string/open_cabinet_hint_ok"
-        android:textSize="50dp" />
-
-    <TextView
-        android:id="@+id/take_no_hint"
         android:layout_width="200dp"
-        android:layout_height="110dp"
-        android:layout_x="219dp"
-        android:layout_y="1275dp"
-        android:gravity="center"
-        android:text="@string/take_no_hint"
-        android:textSize="30dp" />
-
-    <TextView
-        android:id="@+id/take_number"
-        android:layout_width="500dp"
-        android:layout_height="110dp"
-        android:layout_x="422dp"
-        android:layout_y="1467dp"
+        android:layout_height="50dp"
+        android:layout_x="61dp"
+        android:layout_y="245dp"
         android:gravity="center"
-        android:text="@string/take_number"
+        android:text="@string/open_cabinet_hint_ok"
         android:textSize="30dp" />
 
-    <TextView
-        android:id="@+id/open_cabinet_no"
-        android:layout_width="329dp"
-        android:layout_height="179dp"
-        android:layout_x="391dp"
-        android:layout_y="887dp"
-        android:gravity="center"
-        android:text="@string/open_cabinet_no"
-        android:textColor="@color/cardview_dark_background"
-        android:textSize="80dp" />
-
     <Button
         android:id="@+id/already_send"
-        android:layout_width="272dp"
-        android:layout_height="143dp"
-        android:layout_x="176dp"
-        android:layout_y="1687dp"
+        android:layout_width="80dp"
+        android:layout_height="40dp"
+        android:layout_x="61dp"
+        android:layout_y="475dp"
         android:background="@drawable/button_radius"
         android:text="@string/already_send"
-        android:textSize="50dp" />
+        android:textSize="12dp" />
 
     <Button
         android:id="@+id/none_send"
-        android:layout_width="272dp"
-        android:layout_height="143dp"
-        android:layout_x="707dp"
-        android:layout_y="1687dp"
+        android:layout_width="80dp"
+        android:layout_height="40dp"
+        android:layout_x="181dp"
+        android:layout_y="475dp"
         android:background="@drawable/button_radius"
         android:text="@string/none_send"
-        android:textSize="50dp" />
+        android:textSize="12dp" />
 
     <TextView
         android:id="@+id/take_number_hint"
-        android:layout_width="200dp"
-        android:layout_height="110dp"
-        android:layout_x="219dp"
-        android:layout_y="1467dp"
+        android:layout_width="100dp"
+        android:layout_height="40dp"
+        android:layout_x="61dp"
+        android:layout_y="435dp"
         android:gravity="center"
         android:text="@string/take_number_hint"
-        android:textSize="30dp" />
+        android:textSize="15dp" />
 
     <TextView
         android:id="@+id/open_cabinet_hint2"
-        android:layout_width="544dp"
-        android:layout_height="107dp"
-        android:layout_x="306dp"
-        android:layout_y="1100dp"
-        android:gravity="center_horizontal"
+        android:layout_width="200dp"
+        android:layout_height="50dp"
+        android:layout_x="61dp"
+        android:layout_y="345dp"
+        android:gravity="center"
         android:text="@string/open_cabinet_hint"
-        android:textSize="30dp" />
+        android:textSize="15dp" />
+
+    <TextView
+        android:id="@+id/take_no_hint"
+        android:layout_width="100dp"
+        android:layout_height="40dp"
+        android:layout_x="61dp"
+        android:layout_y="395dp"
+        android:gravity="center"
+        android:text="@string/take_no_hint"
+        android:textSize="15dp" />
+
+    <TextView
+        android:id="@+id/take_no"
+        android:layout_width="100dp"
+        android:layout_height="40dp"
+        android:layout_x="161dp"
+        android:layout_y="395dp"
+        android:gravity="center"
+        android:text="@string/take_no"
+        android:textSize="15dp" />
+
+    <TextView
+        android:id="@+id/take_number"
+        android:layout_width="100dp"
+        android:layout_height="40dp"
+        android:layout_x="161dp"
+        android:layout_y="435dp"
+        android:gravity="center"
+        android:text="@string/take_number"
+        android:textSize="15dp" />
+
+    <TextView
+        android:id="@+id/open_cabinet_no"
+        android:layout_width="200dp"
+        android:layout_height="50dp"
+        android:layout_x="61dp"
+        android:layout_y="295dp"
+        android:gravity="center"
+        android:text="@string/open_cabinet_no"
+        android:textColor="@color/cardview_dark_background"
+        android:textSize="40dp" />
 
     <Button
         android:id="@+id/exception_btn"
-        android:layout_width="350dp"
-        android:layout_height="150dp"
-        android:layout_x="-40dp"
-        android:layout_y="836dp"
+        android:layout_width="80dp"
+        android:layout_height="40dp"
+        android:layout_x="-12dp"
+        android:layout_y="249dp"
         android:background="@drawable/button_radius"
         android:text="@string/exception_btn"
-        android:textSize="50dp" />
+        android:textSize="8dp" />
 
 </AbsoluteLayout>

+ 17 - 17
app/src/main/res/layout/fragment_send_main.xml

@@ -5,31 +5,31 @@
 
     <Button
         android:id="@+id/return_btn"
-        android:layout_width="115dp"
-        android:layout_height="70dp"
-        android:layout_x="165dp"
-        android:layout_y="1732dp"
+        android:layout_width="60dp"
+        android:layout_height="30dp"
+        android:layout_x="25dp"
+        android:layout_y="494dp"
         android:background="@drawable/button_radius"
         android:text="@string/return_btn"
-        android:textSize="30dp" />
+        android:textSize="8dp" />
 
     <Button
         android:id="@+id/send_confirm_btn"
-        android:layout_width="250dp"
-        android:layout_height="250dp"
-        android:layout_x="129dp"
-        android:layout_y="936dp"
-        android:text="@string/send_confirm"
+        android:layout_width="60dp"
+        android:layout_height="60dp"
+        android:layout_x="100dp"
+        android:layout_y="360dp"
         android:background="@drawable/button_radius"
-        android:textSize="50dp"/>
+        android:text="@string/send_confirm"
+        android:textSize="10dp" />
 
     <Button
         android:id="@+id/exception_handle_btn"
-        android:layout_width="250dp"
-        android:layout_height="250dp"
-        android:layout_x="469dp"
-        android:layout_y="936dp"
-        android:text="@string/exception_handle"
+        android:layout_width="60dp"
+        android:layout_height="60dp"
+        android:layout_x="30dp"
+        android:layout_y="360dp"
         android:background="@drawable/button_radius"
-        android:textSize="50dp" />
+        android:text="@string/exception_handle"
+        android:textSize="10dp" />
 </AbsoluteLayout>

+ 15 - 15
app/src/main/res/layout/fragment_send_success.xml

@@ -6,32 +6,32 @@
 
     <Button
         android:id="@+id/exit_account_btn"
-        android:layout_width="272dp"
-        android:layout_height="143dp"
-        android:layout_x="567dp"
-        android:layout_y="1438dp"
+        android:layout_width="100dp"
+        android:layout_height="50dp"
+        android:layout_x="170dp"
+        android:layout_y="460dp"
         android:background="@drawable/button_radius"
         android:text="@string/exit_account"
-        android:textSize="50dp" />
+        android:textSize="15dp" />
 
     <TextView
         android:id="@+id/textView4"
-        android:layout_width="644dp"
-        android:layout_height="381dp"
-        android:layout_x="140dp"
-        android:layout_y="1000dp"
+        android:layout_width="250dp"
+        android:layout_height="60dp"
+        android:layout_x="36dp"
+        android:layout_y="320dp"
         android:gravity="center_horizontal"
         android:text="@string/send_success"
-        android:textSize="80dp" />
+        android:textSize="35dp" />
 
     <Button
         android:id="@+id/continue_send_btn"
-        android:layout_width="272dp"
-        android:layout_height="143dp"
-        android:layout_x="125dp"
-        android:layout_y="1444dp"
+        android:layout_width="100dp"
+        android:layout_height="50dp"
+        android:layout_x="50dp"
+        android:layout_y="460dp"
         android:background="@drawable/button_radius"
         android:text="@string/continue_send"
-        android:textSize="50dp" />
+        android:textSize="15dp" />
 
 </AbsoluteLayout>

+ 36 - 36
app/src/main/res/layout/fragment_take.xml

@@ -5,62 +5,62 @@
 
     <Button
         android:id="@+id/return_btn"
-        android:layout_width="115dp"
-        android:layout_height="70dp"
-        android:layout_x="165dp"
-        android:layout_y="1732dp"
+        android:layout_width="60dp"
+        android:layout_height="30dp"
+        android:layout_x="25dp"
+        android:layout_y="494dp"
         android:background="@drawable/button_radius"
         android:text="@string/return_btn"
-        android:textSize="30dp" />
+        android:textSize="8dp" />
 
     <Button
         android:id="@+id/to_input_take_code_btn"
-        android:layout_width="500dp"
-        android:layout_height="150dp"
-        android:layout_x="553dp"
-        android:layout_y="1315dp"
+        android:layout_width="130dp"
+        android:layout_height="50dp"
+        android:layout_x="180dp"
+        android:layout_y="404dp"
         android:background="@drawable/button_radius"
         android:text="@string/android_take"
-        android:textSize="50dp" />
+        android:textSize="20dp" />
+
+    <TextView
+        android:id="@+id/fast_take_send_bg1"
+        android:layout_width="160dp"
+        android:layout_height="250dp"
+        android:layout_x="9dp"
+        android:layout_y="238dp"
+        android:background="@drawable/textview_border"
+        android:gravity="center_horizontal"
+        android:paddingTop="15dp"
+        android:text="@string/wx_scan_take"
+        android:textSize="20dp" />
 
     <TextView
         android:id="@+id/textView3"
-        android:layout_width="500dp"
-        android:layout_height="181dp"
-        android:layout_x="553dp"
-        android:layout_y="1068dp"
+        android:layout_width="130dp"
+        android:layout_height="50dp"
+        android:layout_x="180dp"
+        android:layout_y="337dp"
         android:gravity="center"
         android:text="@string/prompt_word_bottom"
-        android:textSize="50dp" />
+        android:textSize="12dp" />
 
     <TextView
         android:id="@+id/textView2"
-        android:layout_width="500dp"
-        android:layout_height="181dp"
-        android:layout_marginEnd="160dp"
-        android:layout_x="553dp"
-        android:layout_y="860dp"
+        android:layout_width="130dp"
+        android:layout_height="50dp"
+        android:layout_x="180dp"
+        android:layout_y="275dp"
         android:gravity="center"
         android:text="@string/prompt_word_top"
-        android:textSize="50dp" />
-
-    <TextView
-        android:id="@+id/fast_take_send_bg1"
-        android:layout_width="500dp"
-        android:layout_height="800dp"
-        android:layout_x="34dp"
-        android:layout_y="870dp"
-        android:background="@drawable/textview_border"
-        android:gravity="center_horizontal"
-        android:text="@string/wx_scan_take"
-        android:textSize="60dp" />
+        android:textSize="12dp" />
 
     <TextView
         android:id="@+id/textView"
-        android:layout_width="460dp"
-        android:layout_height="460dp"
-        android:layout_x="53dp"
-        android:layout_y="1057dp"
+        android:layout_width="134dp"
+        android:layout_height="135dp"
+        android:layout_x="21dp"
+        android:layout_y="295dp"
         android:background="@drawable/e_mp_qrcode_8x8_backup" />
 
 </AbsoluteLayout>

+ 103 - 102
app/src/main/res/layout/fragment_take_code.xml

@@ -7,151 +7,152 @@
 
     <Button
         android:id="@+id/return_btn"
-        android:layout_width="115dp"
-        android:layout_height="70dp"
-        android:layout_x="165dp"
-        android:layout_y="1732dp"
+        android:layout_width="60dp"
+        android:layout_height="30dp"
+        android:layout_x="25dp"
+        android:layout_y="494dp"
         android:background="@drawable/button_radius"
         android:text="@string/return_btn"
-        android:textSize="30dp" />
+        android:textSize="8dp" />
 
     <TextView
         android:id="@+id/fast_take_send_bg1"
-        android:layout_width="500dp"
-        android:layout_height="800dp"
-        android:layout_x="28dp"
-        android:layout_y="841dp"
+        android:layout_width="160dp"
+        android:layout_height="250dp"
+        android:layout_x="3dp"
+        android:layout_y="240dp"
         android:background="@drawable/textview_border"
         android:gravity="center_horizontal"
+        android:paddingTop="15dp"
         android:text="@string/wx_scan_take"
-        android:textSize="60dp" />
+        android:textSize="20dp" />
 
     <TextView
         android:id="@+id/textView"
-        android:layout_width="460dp"
-        android:layout_height="460dp"
-        android:layout_x="48dp"
-        android:layout_y="1029dp"
+        android:layout_width="134dp"
+        android:layout_height="135dp"
+        android:layout_x="17dp"
+        android:layout_y="297dp"
         android:background="@drawable/e_mp_qrcode_8x8_backup" />
 
     <Button
-        android:id="@+id/take_input_button_cancel"
-        android:layout_width="310dp"
-        android:layout_height="80dp"
-        android:layout_x="711dp"
-        android:layout_y="1241dp"
-        android:text="@string/cancel_btn"
-        android:textSize="40dp" />
+        android:id="@+id/take_input_button2"
+        android:layout_width="48dp"
+        android:layout_height="40dp"
+        android:layout_x="216dp"
+        android:layout_y="300dp"
+        android:text="@string/number_2"
+        android:textSize="10dp" />
 
     <Button
         android:id="@+id/take_input_button7"
-        android:layout_width="150dp"
-        android:layout_height="80dp"
-        android:layout_x="551dp"
-        android:layout_y="1161dp"
+        android:layout_width="48dp"
+        android:layout_height="40dp"
+        android:layout_x="166dp"
+        android:layout_y="360dp"
         android:text="@string/number_7"
-        android:textSize="40dp" />
+        android:textSize="10dp" />
 
     <Button
-        android:id="@+id/take_input_button2"
-        android:layout_width="150dp"
-        android:layout_height="80dp"
-        android:layout_x="711dp"
-        android:layout_y="1001dp"
-        android:text="@string/number_2"
-        android:textSize="40dp" />
-
-    <Button
-        android:id="@+id/take_input_button5"
-        android:layout_width="150dp"
-        android:layout_height="80dp"
-        android:layout_x="711dp"
-        android:layout_y="1081dp"
-        android:text="@string/number_5"
-        android:textSize="40dp" />
+        android:id="@+id/take_input_button8"
+        android:layout_width="48dp"
+        android:layout_height="40dp"
+        android:layout_x="216dp"
+        android:layout_y="360dp"
+        android:text="@string/number_8"
+        android:textSize="10dp" />
 
     <Button
         android:id="@+id/take_input_button3"
-        android:layout_width="150dp"
-        android:layout_height="80dp"
-        android:layout_x="871dp"
-        android:layout_y="1001dp"
+        android:layout_width="48dp"
+        android:layout_height="40dp"
+        android:layout_x="266dp"
+        android:layout_y="300dp"
         android:text="@string/number_3"
-        android:textSize="40dp" />
-
-    <Button
-        android:id="@+id/take_input_button9"
-        android:layout_width="150dp"
-        android:layout_height="80dp"
-        android:layout_x="871dp"
-        android:layout_y="1161dp"
-        android:text="@string/number_9"
-        android:textSize="40dp" />
+        android:textSize="10dp" />
 
     <Button
-        android:id="@+id/take_input_button6"
-        android:layout_width="150dp"
-        android:layout_height="80dp"
-        android:layout_x="871dp"
-        android:layout_y="1081dp"
-        android:text="@string/number_6"
-        android:textSize="40dp" />
+        android:id="@+id/take_input_button5"
+        android:layout_width="48dp"
+        android:layout_height="40dp"
+        android:layout_x="216dp"
+        android:layout_y="330dp"
+        android:text="@string/number_5"
+        android:textSize="10dp" />
 
     <Button
         android:id="@+id/take_input_button4"
-        android:layout_width="150dp"
-        android:layout_height="80dp"
-        android:layout_x="551dp"
-        android:layout_y="1081dp"
+        android:layout_width="48dp"
+        android:layout_height="40dp"
+        android:layout_x="166dp"
+        android:layout_y="330dp"
         android:text="@string/number_4"
-        android:textSize="40dp" />
+        android:textSize="10dp" />
+
+    <Button
+        android:id="@+id/take_input_button_cancel"
+        android:layout_width="98dp"
+        android:layout_height="40dp"
+        android:layout_x="216dp"
+        android:layout_y="390dp"
+        android:text="@string/cancel_btn"
+        android:textSize="10dp" />
 
     <Button
         android:id="@+id/take_input_button0"
-        android:layout_width="150dp"
-        android:layout_height="80dp"
-        android:layout_x="551dp"
-        android:layout_y="1241dp"
+        android:layout_width="48dp"
+        android:layout_height="40dp"
+        android:layout_x="166dp"
+        android:layout_y="390dp"
         android:text="@string/number_0"
-        android:textSize="40dp" />
+        android:textSize="10dp" />
 
     <Button
         android:id="@+id/take_input_button_confirm"
-        android:layout_width="470dp"
-        android:layout_height="80dp"
-        android:layout_x="551dp"
-        android:layout_y="1321dp"
+        android:layout_width="148dp"
+        android:layout_height="40dp"
+        android:layout_x="166dp"
+        android:layout_y="420dp"
         android:text="@string/confirm_btn"
-        android:textSize="40dp" />
+        android:textSize="10dp" />
 
-    <EditText
-        android:id="@+id/editTextTextPersonName6"
-        android:layout_width="470dp"
-        android:layout_height="80dp"
-        android:layout_x="551dp"
-        android:layout_y="893dp"
-        android:ems="15"
-        android:longClickable="false"
-        android:textSize="30dp"
-        android:hint="@string/input_take_code"
-        android:inputType="phone" />
+    <Button
+        android:id="@+id/take_input_button6"
+        android:layout_width="48dp"
+        android:layout_height="40dp"
+        android:layout_x="266dp"
+        android:layout_y="330dp"
+        android:text="@string/number_6"
+        android:textSize="10dp" />
+
+    <Button
+        android:id="@+id/take_input_button9"
+        android:layout_width="48dp"
+        android:layout_height="40dp"
+        android:layout_x="266dp"
+        android:layout_y="360dp"
+        android:text="@string/number_9"
+        android:textSize="10dp" />
 
     <Button
         android:id="@+id/take_input_button1"
-        android:layout_width="150dp"
-        android:layout_height="80dp"
-        android:layout_x="551dp"
-        android:layout_y="1001dp"
+        android:layout_width="48dp"
+        android:layout_height="40dp"
+        android:layout_x="166dp"
+        android:layout_y="300dp"
         android:text="@string/number_1"
-        android:textSize="40dp" />
+        android:textSize="10dp" />
 
-    <Button
-        android:id="@+id/take_input_button8"
-        android:layout_width="150dp"
-        android:layout_height="80dp"
-        android:layout_x="711dp"
-        android:layout_y="1161dp"
-        android:text="@string/number_8"
-        android:textSize="40dp" />
+    <EditText
+        android:id="@+id/editTextTextPersonName6"
+        android:layout_width="148dp"
+        android:layout_height="50dp"
+        android:layout_x="166dp"
+        android:layout_y="250dp"
+        android:ems="15"
+        android:hint="@string/input_take_code"
+        android:inputType="phone"
+        android:longClickable="false"
+        android:textSize="15dp" />
 
 </AbsoluteLayout>

+ 39 - 38
app/src/main/res/layout/fragment_take_success.xml

@@ -8,61 +8,62 @@
 
     <Button
         android:id="@+id/return_main_btn"
-        android:layout_width="115dp"
-        android:layout_height="70dp"
-        android:layout_x="165dp"
-        android:layout_y="1732dp"
+        android:layout_width="60dp"
+        android:layout_height="30dp"
+        android:layout_x="25dp"
+        android:layout_y="494dp"
         android:background="@drawable/button_radius"
         android:text="@string/return_main_btn"
-        android:textSize="50dp" />
-
-    <TextView
-        android:id="@+id/open_cabinet_count_down_hint"
-        android:layout_width="475dp"
-        android:layout_height="300dp"
-        android:layout_x="158dp"
-        android:layout_y="941dp"
-        android:gravity="center"
-        android:textSize="50dp" />
+        android:textSize="6dp" />
 
     <TextView
         android:id="@+id/open_cabinet_hint3"
-        android:layout_width="475dp"
-        android:layout_height="300dp"
-        android:layout_x="158dp"
-        android:layout_y="941dp"
+        android:layout_width="200dp"
+        android:layout_height="50dp"
+        android:layout_x="61dp"
+        android:layout_y="254dp"
         android:gravity="center_horizontal"
         android:text="@string/open_cabinet_hint_ok"
-        android:textSize="50dp" />
+        android:textSize="30dp" />
+
+    <TextView
+        android:id="@+id/open_cabinet_count_down_hint"
+        android:layout_width="200dp"
+        android:layout_height="50dp"
+        android:layout_x="62dp"
+        android:layout_y="364dp"
+        android:gravity="center"
+        android:textSize="15dp" />
 
     <TextView
         android:id="@+id/open_cabinet_hint_no"
-        android:layout_width="475dp"
-        android:layout_height="300dp"
-        android:layout_x="158dp"
-        android:layout_y="941dp"
+        android:layout_width="200dp"
+        android:layout_height="60dp"
+        android:layout_x="61dp"
+        android:layout_y="304dp"
         android:gravity="center"
         android:text="006"
-        android:textSize="100dp" />
+        android:textSize="50dp"
+        android:textStyle="bold" />
 
     <Button
-        android:id="@+id/re_open_cabinet_btn"
-        android:layout_width="272dp"
-        android:layout_height="143dp"
-        android:layout_x="71dp"
-        android:layout_y="1266dp"
+        android:id="@+id/continue_take_btn"
+        android:layout_width="80dp"
+        android:layout_height="40dp"
+        android:layout_x="182dp"
+        android:layout_y="420dp"
         android:background="@drawable/button_radius"
-        android:text="@string/re_open_cabinet"
-        android:textSize="50dp" />
+        android:text="@string/continue_take"
+        android:textSize="10dp" />
 
     <Button
-        android:id="@+id/continue_take_btn"
-        android:layout_width="272dp"
-        android:layout_height="143dp"
-        android:layout_x="412dp"
-        android:layout_y="1266dp"
+        android:id="@+id/re_open_cabinet_btn"
+        android:layout_width="80dp"
+        android:layout_height="40dp"
+        android:layout_x="62dp"
+        android:layout_y="420dp"
         android:background="@drawable/button_radius"
-        android:text="@string/continue_take"
-        android:textSize="50dp" />
+        android:text="@string/re_open_cabinet"
+        android:textSize="10dp" />
 
 </AbsoluteLayout>

+ 1 - 1
app/src/main/res/values/colors.xml

@@ -10,6 +10,6 @@
     <color name="send_btn">#44CE3B</color>
     <color name="take_btn">#EBBA3A</color>
     <color name="main_label_bg">#4E4C4D</color>
-    <color name="choose_cabinet_view">#B2DDAF</color>
+    <color name="choose_cabinet_view">#9DDA99</color>
 
 </resources>

+ 1 - 1
app/src/main/res/values/strings.xml

@@ -20,7 +20,7 @@
     <string name="number_9">9</string>
     <string name="number_0">0</string>
     <string name="cancel_btn">X</string>
-    <string name="confirm_btn">确认</string>
+    <string name="confirm_btn">确 认</string>
     <string name="input_recipients_phone_confirm">请再次输入取件人手机号</string>
     <string name="input_send_password">请输入投递人密码</string>
     <string name="input_recipients_phone">请输入收件人手机号</string>