From fc6048b630901058ccd90529e32e031e612b8384 Mon Sep 17 00:00:00 2001 From: zuoxiao <470321431@qq.com> Date: 星期二, 21 十一月 2023 14:32:03 +0800 Subject: [PATCH] 补卡相关 --- app/src/main/res/layout/activity_new_card.xml | 36 +++++++++++++++++++++++++----------- 1 files changed, 25 insertions(+), 11 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..40d0c61 100644 --- a/app/src/main/res/layout/activity_new_card.xml +++ b/app/src/main/res/layout/activity_new_card.xml @@ -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> -- Gitblit v1.8.0