From d9c886270d66782df9de5f6a7b877a269a273aa5 Mon Sep 17 00:00:00 2001 From: zuoxiao <470321431@qq.com> Date: 星期二, 12 十二月 2023 09:25:52 +0800 Subject: [PATCH] 卡标识设置添加选择器 --- app/src/main/res/layout/activity_identyfying.xml | 39 ++++++++++++++++++++++++++++++++++++--- 1 files changed, 36 insertions(+), 3 deletions(-) diff --git a/app/src/main/res/layout/activity_identyfying.xml b/app/src/main/res/layout/activity_identyfying.xml index 3828a17..cb2323b 100644 --- a/app/src/main/res/layout/activity_identyfying.xml +++ b/app/src/main/res/layout/activity_identyfying.xml @@ -13,17 +13,50 @@ app:centerText="姘磋〃鑴夊啿璁剧疆" app:leftImage="@mipmap/icon_back" /> + + <RelativeLayout + android:id="@+id/chooseCardType" + android:layout_width="match_parent" + android:layout_height="45dp" + android:layout_below="@id/titleBar" + android:layout_marginLeft="20dp" + android:layout_marginTop="20dp" + android:layout_marginRight="20dp" + android:background="@drawable/ic_choose_gray_edge"> + + <TextView + android:id="@+id/chooseCardTypeText" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_centerVertical="true" + android:layout_marginLeft="10dp" + android:hint="璇烽�夋嫨鍗$被鍨�" + android:text="@{data.getBuildYearStr}" + android:textColor="#000000" + android:textSize="18sp" /> + + <ImageView + android:layout_width="15dp" + android:layout_height="15dp" + android:layout_alignParentRight="true" + android:layout_centerVertical="true" + android:layout_marginRight="8dp" + android:src="@mipmap/icon_bottom" /> + </RelativeLayout> + <LinearLayout android:id="@+id/electric_ll" android:layout_width="match_parent" android:layout_height="wrap_content" - android:layout_below="@id/titleBar" + android:layout_below="@id/chooseCardType" android:layout_margin="20dp" + android:orientation="horizontal"> <TextView android:layout_width="wrap_content" android:layout_height="wrap_content" + android:textColor="#000000" android:text="褰撳墠鍗℃爣璇嗭細" android:textSize="@dimen/text_size" /> @@ -43,8 +76,8 @@ android:layout_below="@+id/electric_ll" android:layout_alignParentStart="true" android:layout_margin="20dp" - android:inputType="number" - android:hint="璇疯緭鍏ユ柊鐨勫崱鏍囪瘑" /> + android:hint="璇疯緭鍏ユ柊鐨勫崱鏍囪瘑" + android:inputType="number" /> <TextView android:id="@+id/electric_ok" -- Gitblit v1.8.0