From 732e4481b8437719468cddfb4971ee54a4b36625 Mon Sep 17 00:00:00 2001 From: zuoxiao <470321431@qq.com> Date: 星期二, 02 四月 2024 09:48:38 +0800 Subject: [PATCH] 修复设备序列号没有设置地址时一直变化的bug --- app/src/main/res/layout/activity_red_card.xml | 36 ++++++++++++++++++++++++++++-------- 1 files changed, 28 insertions(+), 8 deletions(-) diff --git a/app/src/main/res/layout/activity_red_card.xml b/app/src/main/res/layout/activity_red_card.xml index 6b36e64..c5f78cb 100644 --- a/app/src/main/res/layout/activity_red_card.xml +++ b/app/src/main/res/layout/activity_red_card.xml @@ -34,13 +34,25 @@ android:text="鐢ㄦ埛濮撳悕锛�" android:textSize="@dimen/text_size" /> - <TextView - android:id="@+id/red_initCode" + <LinearLayout android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_marginTop="15dp" - android:text="鐢ㄦ埛娉ㄥ唽缂栧彿锛�" - android:textSize="@dimen/text_size" /> + android:orientation="horizontal"> + + <TextView + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:text="鐢ㄦ埛娉ㄥ唽缂栧彿锛�" + android:textSize="@dimen/text_size" /> + + <TextView + android:id="@+id/red_initCode" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:text="" + android:textSize="@dimen/text_size" /> + </LinearLayout> <TextView @@ -57,7 +69,8 @@ android:layout_height="wrap_content" android:layout_marginTop="15dp" android:text="鏈崱鏈�鍚庤喘姘存棩鏈燂細" - android:textSize="@dimen/text_size" /> + android:textSize="@dimen/text_size" + android:visibility="gone" /> <TextView android:id="@+id/red_rechargeNumber" @@ -65,7 +78,8 @@ android:layout_height="wrap_content" android:layout_marginTop="15dp" android:text="鏈崱鍏呭�兼鏁帮細" - android:textSize="@dimen/text_size" /> + android:textSize="@dimen/text_size" + android:visibility="gone" /> <TextView android:id="@+id/red_statu" @@ -74,7 +88,13 @@ android:layout_marginTop="15dp" android:text="鍗$姸鎬侊細" android:textSize="@dimen/text_size" /> - + <TextView + android:id="@+id/red_addressCode" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:layout_marginTop="15dp" + android:text="鍦板潃缂栫爜锛�" + android:textSize="@dimen/text_size" /> </LinearLayout> </ScrollView> @@ -129,7 +149,7 @@ android:layout_below="@id/titleBar" android:layout_marginTop="20dp" android:gravity="center" - android:text="璇峰皢鍗¤创鍦ㄨ澶囦笂杩涜璇诲崱" + android:text="璇峰皢鍗¤创鍦ㄨ澶囬《閮ㄨ繘琛岃鍗�" android:textSize="@dimen/text_size" /> -- Gitblit v1.8.0