From ebc06a3ae3a42bd6ac1359a59c55d5e6f1a0e2f0 Mon Sep 17 00:00:00 2001 From: zuoxiao <470321431@qq.com> Date: 星期二, 26 三月 2024 16:18:08 +0800 Subject: [PATCH] 优化通讯 写卡界面添加二次确认 优化用户写卡逻辑,提高写卡速度。 --- app/src/main/res/layout/activity_new_card.xml | 40 +++++++++++++++++++++++++++------------- 1 files changed, 27 insertions(+), 13 deletions(-) diff --git a/app/src/main/res/layout/activity_new_card.xml b/app/src/main/res/layout/activity_new_card.xml index 99120f5..c365bc9 100644 --- a/app/src/main/res/layout/activity_new_card.xml +++ b/app/src/main/res/layout/activity_new_card.xml @@ -9,7 +9,7 @@ android:layout_width="match_parent" android:layout_height="@dimen/dimen_title_height" android:background="@drawable/title_bar_bg" - app:centerText="鏂板崱娉ㄥ唽" + app:centerText="鏂板崱寮�鎴�" app:leftImage="@mipmap/icon_back" /> <ScrollView @@ -47,7 +47,8 @@ <LinearLayout style="@style/newCardLL" android:layout_width="match_parent" - android:layout_height="wrap_content"> + android:layout_height="wrap_content" + android:orientation="horizontal"> <TextView android:layout_width="wrap_content" @@ -57,13 +58,21 @@ <EditText android:id="@+id/newCard_name" - android:layout_width="match_parent" + android:layout_width="0dp" android:layout_height="wrap_content" - + android:layout_weight="1" android:textSize="@dimen/new_card_size" /> + <ImageView + android:id="@+id/newCard_scanBtn" + android:layout_width="45dp" + android:layout_height="45dp" + android:visibility="gone" + android:padding="10dp" + android:src="@mipmap/icon_scan" /> </LinearLayout> + <LinearLayout style="@style/newCardLL" android:layout_width="match_parent" @@ -79,21 +88,29 @@ android:id="@+id/newCard_id" android:layout_width="match_parent" android:layout_height="wrap_content" - android:inputType="numberSigned" android:digits="0123456789Xx" - - android:maxLength="18" + android:inputType="text" + android:maxLength="18" android:textSize="@dimen/new_card_size" /> </LinearLayout> + <TextView + android:id="@+id/newCard_idTip" + style="@style/newCardLL" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:text="鎵弿鍚庤鏍稿韬唤淇℃伅鏃犺" + android:textColor="#FF4500" + android:visibility="gone" /> + <LinearLayout style="@style/newCardLL" - android:visibility="gone" android:layout_width="match_parent" - android:layout_height="wrap_content"> + android:layout_height="wrap_content" + android:visibility="gone"> <TextView android:layout_width="wrap_content" @@ -130,10 +147,7 @@ android:layout_height="wrap_content" android:inputType="number" android:maxLength="11" - android:textSize="@dimen/new_card_size" /> - - </LinearLayout> @@ -149,7 +163,7 @@ android:layout_alignParentBottom="true" android:background="@color/title_bg" android:gravity="center" - android:text="娉ㄥ唽" + android:text="寮�鎴�" android:textColor="#000000" android:textSize="@dimen/new_card_size" /> </RelativeLayout> \ No newline at end of file -- Gitblit v1.8.0