From c3edd4a3122b711bc6a0bfef56b6ff6bf5ae03e2 Mon Sep 17 00:00:00 2001 From: zuoxiao <470321431@qq.com> Date: 星期二, 13 五月 2025 09:09:23 +0800 Subject: [PATCH] feat(generallibrary): 优化用户开卡流程并添加支付方式功能 --- generallibrary/src/main/res/layout/activity_new_card_1_ge.xml | 350 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 346 insertions(+), 4 deletions(-) diff --git a/generallibrary/src/main/res/layout/activity_new_card_1_ge.xml b/generallibrary/src/main/res/layout/activity_new_card_1_ge.xml index 86e7d76..4567eec 100644 --- a/generallibrary/src/main/res/layout/activity_new_card_1_ge.xml +++ b/generallibrary/src/main/res/layout/activity_new_card_1_ge.xml @@ -1,9 +1,11 @@ <?xml version="1.0" encoding="utf-8"?> <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android" + xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="match_parent" - xmlns:app="http://schemas.android.com/apk/res-auto"> + android:background="@color/base_list_bg"> + <com.dayu.baselibrary.view.TitleBar android:id="@+id/titleBar" android:layout_width="match_parent" @@ -14,7 +16,6 @@ app:leftImage="@mipmap/icon_back" tools:ignore="MissingConstraints" /> - <androidx.cardview.widget.CardView android:id="@+id/nfcContainer" android:layout_width="match_parent" @@ -23,6 +24,7 @@ android:layout_marginTop="24dp" android:layout_marginEnd="16dp" android:layout_marginBottom="24dp" + android:visibility="visible" app:cardBackgroundColor="@android:color/white" app:cardCornerRadius="12dp" app:cardElevation="4dp" @@ -43,9 +45,19 @@ android:layout_width="match_parent" android:layout_height="wrap_content" android:gravity="center" - android:text="璇峰皢鏂板崱璐村湪璁惧涓婅繘琛屽啓鍗�" + android:text="璇峰皢鏂板崱璐村湪璁惧涓婅繘琛岃鍗�" android:textColor="#333333" android:textSize="18sp" + android:textStyle="bold" /> + + <TextView + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:gravity="center" + android:text="灏嗚繘琛屽垵濮嬪寲鍗$墖\n鑰楁椂杈冮暱璇蜂笉瑕佺Щ鍔ㄥ崱鐗�" + android:textColor="@color/base_blue_bg" + android:textSize="18sp" + android:layout_marginTop="20dp" android:textStyle="bold" /> <ImageView @@ -61,12 +73,342 @@ android:layout_height="wrap_content" android:layout_marginTop="16dp" android:gravity="center" - android:text="璇蜂繚鎸佹墜鏈哄拰鍗$墖涓嶈绉诲姩" + android:text="璇蜂繚鎸佹墜鎸佹満鍜屽崱鐗囦笉瑕佺Щ鍔�" android:textColor="#666666" android:textSize="14sp" /> </LinearLayout> </androidx.cardview.widget.CardView> + <ScrollView + android:id="@+id/center_scroll" + android:layout_width="match_parent" + android:layout_height="0dp" + android:fillViewport="true" + android:scrollbars="none" + android:visibility="gone" + app:layout_constraintBottom_toBottomOf="parent" + app:layout_constraintTop_toBottomOf="@+id/titleBar"> + <LinearLayout + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:orientation="vertical" + android:paddingBottom="16dp" + android:paddingLeft="16dp" + android:paddingRight="16dp" + android:paddingTop="10dp"> + + <androidx.cardview.widget.CardView + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:layout_marginBottom="10dp" + app:cardCornerRadius="8dp" + app:cardElevation="2dp"> + + <LinearLayout + android:id="@+id/center_data" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:orientation="vertical" + android:padding="16dp"> + + <TextView + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_marginBottom="10dp" + android:text="鍩烘湰淇℃伅" + android:textColor="#333333" + android:textSize="18sp" + android:textStyle="bold" /> + + <LinearLayout + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:layout_marginBottom="6dp" + android:gravity="center_vertical" + android:orientation="horizontal"> + + <TextView + android:layout_width="105dp" + android:layout_height="wrap_content" + android:text="鍗″彿锛�" + android:textColor="#666666" + android:textSize="@dimen/new_card_size" /> + + <TextView + android:id="@+id/newCard_arerNumber" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:layout_marginStart="8dp" + android:textColor="#333333" + android:textSize="@dimen/new_card_size" /> + </LinearLayout> + + <LinearLayout + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:layout_marginBottom="6dp" + android:gravity="center_vertical" + android:orientation="horizontal"> + + <TextView + android:layout_width="105dp" + android:layout_height="wrap_content" + android:text="濮撳悕锛�" + android:textColor="#666666" + android:textSize="@dimen/new_card_size" /> + + <TextView + android:id="@+id/newCard_userName" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:layout_marginStart="8dp" + android:textColor="#333333" + android:textSize="@dimen/new_card_size" /> + </LinearLayout> + + <LinearLayout + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:layout_marginBottom="6dp" + android:gravity="center_vertical" + android:orientation="horizontal"> + + <TextView + android:layout_width="105dp" + android:layout_height="wrap_content" + android:text="韬唤璇佸彿锛�" + android:textColor="#666666" + android:textSize="@dimen/new_card_size" /> + + <TextView + android:id="@+id/newCard_idCard" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:layout_marginStart="8dp" + android:textColor="#333333" + android:textSize="@dimen/new_card_size" /> + </LinearLayout> + + <LinearLayout + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:layout_marginBottom="5dp" + android:gravity="center_vertical" + android:orientation="horizontal"> + + <TextView + android:layout_width="105dp" + android:layout_height="wrap_content" + android:text="鍐滄埛缂栧彿锛�" + android:textColor="#666666" + android:textSize="@dimen/new_card_size" /> + + <TextView + android:id="@+id/newCard_farmerCode" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:layout_marginStart="8dp" + android:textColor="#333333" + android:textSize="@dimen/new_card_size" /> + </LinearLayout> + </LinearLayout> + </androidx.cardview.widget.CardView> + + <androidx.cardview.widget.CardView + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:layout_marginBottom="10dp" + app:cardCornerRadius="8dp" + app:cardElevation="2dp"> + + <LinearLayout + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:orientation="vertical" + android:padding="16dp"> + + <TextView + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_marginBottom="10dp" + android:text="璐圭敤淇℃伅" + android:textColor="#333333" + android:textSize="18sp" + android:textStyle="bold" /> + + <LinearLayout + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:layout_marginBottom="12dp" + android:gravity="center_vertical" + android:orientation="horizontal"> + + <TextView + android:layout_width="105dp" + android:layout_height="wrap_content" + android:text="鍏呭�奸噾棰濓細" + android:textColor="#666666" + android:textSize="@dimen/new_card_size" /> + + <LinearLayout + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:background="@drawable/edit_text_bg_selector" + android:orientation="horizontal" + android:gravity="center_vertical" + android:paddingStart="10dp" + android:paddingEnd="10dp" + android:paddingTop="8dp" + android:paddingBottom="8dp"> + + <EditText + android:id="@+id/newCard_rechargeAmount" + android:layout_width="0dp" + android:layout_weight="1" + android:layout_height="wrap_content" + android:background="@null" + android:hint="璇疯緭鍏ュ厖鍊奸噾棰�(閫夊~)" + android:inputType="numberDecimal" + android:textColor="#333333" + android:textColorHint="#BBBBBB" + android:textSize="@dimen/new_card_size" /> + + <TextView + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:text="鍏�" + android:textColor="#666666" + android:textSize="@dimen/new_card_size" /> + </LinearLayout> + </LinearLayout> + + <LinearLayout + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:layout_marginBottom="12dp" + android:gravity="center_vertical" + android:orientation="horizontal"> + + <TextView + android:layout_width="105dp" + android:layout_height="wrap_content" + android:text="宸ユ湰璐癸細" + android:textColor="#666666" + android:textSize="@dimen/new_card_size" /> + + <LinearLayout + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:background="@drawable/edit_text_bg_selector" + android:orientation="horizontal" + android:gravity="center_vertical" + android:paddingStart="10dp" + android:paddingEnd="10dp" + android:paddingTop="8dp" + android:paddingBottom="8dp"> + + <EditText + android:id="@+id/newCard_cardFee" + android:layout_width="0dp" + android:layout_weight="1" + android:layout_height="wrap_content" + android:background="@null" + android:hint="璇疯緭鍏ュ伐鏈垂(閫夊~)" + android:inputType="numberDecimal" + android:textColor="#333333" + android:textColorHint="#BBBBBB" + android:textSize="@dimen/new_card_size" /> + + <TextView + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:text="鍏�" + android:textColor="#666666" + android:textSize="@dimen/new_card_size" /> + </LinearLayout> + </LinearLayout> + + <LinearLayout + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:layout_marginBottom="5dp" + android:gravity="center_vertical" + android:orientation="horizontal"> + + <TextView + android:layout_width="105dp" + android:layout_height="wrap_content" + android:text="澶囨敞锛�" + android:textColor="#666666" + android:textSize="@dimen/new_card_size" /> + + <LinearLayout + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:background="@drawable/edit_text_bg_selector" + android:orientation="vertical" + android:paddingStart="10dp" + android:paddingEnd="10dp" + android:paddingTop="8dp" + android:paddingBottom="8dp"> + + <EditText + android:id="@+id/newCard_remark" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:background="@null" + android:hint="璇疯緭鍏ュ娉�(閫夊~)" + android:textColor="#333333" + android:textColorHint="#BBBBBB" + android:textSize="@dimen/new_card_size" /> + </LinearLayout> + </LinearLayout> + </LinearLayout> + </androidx.cardview.widget.CardView> + + <androidx.cardview.widget.CardView + android:layout_width="match_parent" + android:layout_height="wrap_content" + app:cardCornerRadius="8dp" + app:cardElevation="2dp"> + + <LinearLayout + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:orientation="vertical" + android:padding="16dp"> + + <TextView + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_marginBottom="10dp" + android:text="鏀粯鏂瑰紡" + android:textColor="#333333" + android:textSize="18sp" + android:textStyle="bold" /> + + <RadioGroup + android:id="@+id/newCard_paymentMethod" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:orientation="horizontal"> + <!-- 鍔ㄦ�佹坊鍔燫adioButton锛岀Щ闄ゅ浐瀹氱殑RadioButton --> + </RadioGroup> + </LinearLayout> + </androidx.cardview.widget.CardView> + <TextView + android:id="@+id/newCard_registBtn" + android:layout_width="match_parent" + android:layout_height="56dp" + android:layout_marginTop="15dp" + android:background="@color/bottom_color" + android:visibility="visible" + android:gravity="center" + android:text="纭寮�鍗�" + android:textColor="#FFFFFF" + android:textSize="16sp" /> + </LinearLayout> + </ScrollView> </androidx.constraintlayout.widget.ConstraintLayout> \ No newline at end of file -- Gitblit v1.8.0