From 798128053bb17ed293aa8d5424db3b5ed007d375 Mon Sep 17 00:00:00 2001
From: zuoxiao <470321431@qq.com>
Date: 星期一, 23 十二月 2024 10:20:57 +0800
Subject: [PATCH] 1.优化订单列表框架,升级为viewPager2,提升性能。 2.添加收到新工单后的红点提醒。 3.修复查询数据为空时报错。 4.优化修改经纬度的流程。 5.修复mqtt的CLIENT_ID一致导致的连接错误。 6.修复收到新工单后点击消息通知栏跳转详情时不更新数据的bug。
---
app/src/main/res/layout/fragment_order.xml | 38 ++++++++++++++++++++++++++++----------
1 files changed, 28 insertions(+), 10 deletions(-)
diff --git a/app/src/main/res/layout/fragment_order.xml b/app/src/main/res/layout/fragment_order.xml
index ede1ea9..a4bb63f 100644
--- a/app/src/main/res/layout/fragment_order.xml
+++ b/app/src/main/res/layout/fragment_order.xml
@@ -148,22 +148,40 @@
android:background="@drawable/top_state_bg"
android:orientation="horizontal">
- <TextView
- android:id="@+id/manage_state_progress"
- android:layout_width="wrap_content"
+ <RelativeLayout
+ android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_margin="5dp"
android:layout_weight="1"
- android:background="@drawable/ic_choose_bg_whit"
- android:gravity="center"
- android:text="鏈畬鎴�"
- android:textColor="@color/title_color"
- android:textSize="@dimen/top_state_text_size"
- android:textStyle="bold" />
+ android:background="@drawable/ic_choose_bg_whit">
+
+ <TextView
+ android:id="@+id/manage_state_progress"
+ android:layout_width="wrap_content"
+ android:layout_height="match_parent"
+ android:layout_centerHorizontal="true"
+ android:layout_centerVertical="true"
+ android:gravity="center"
+ android:text="鏈畬鎴�"
+ android:textColor="@color/title_color"
+ android:textSize="@dimen/top_state_text_size"
+ android:textStyle="bold" />
+
+ <ImageView
+ android:id="@+id/red_dot_img"
+ android:layout_width="9dp"
+ android:layout_height="9dp"
+ android:layout_centerVertical="true"
+ android:layout_marginLeft="5dp"
+ android:layout_toEndOf="@+id/manage_state_progress"
+ android:src="@drawable/ic_red_dot"
+ android:visibility="gone" />
+ </RelativeLayout>
+
<TextView
android:id="@+id/manage_state_finish"
- android:layout_width="wrap_content"
+ android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_margin="5dp"
android:layout_weight="1"
--
Gitblit v1.8.0