From 9cffe03d76840520bfbfeaf85933fcb2ed8385b8 Mon Sep 17 00:00:00 2001 From: zuoxiao <470321431@qq.com> Date: 星期三, 05 三月 2025 10:19:46 +0800 Subject: [PATCH] feat(generallibrary): 新增主界面和相关功能模块 - 新增 MainActivity 作为主界面,包含三个底部导航栏选项卡- 新增 BSCardFragment、RechargeFragment 和 MyFragment 作为三个选项卡对应的页面 - 新增 NewCardActivity 用于新建卡片 - 新增 AreaCard 类用于处理区域表号卡数据 - 新增 BaseCard 类作为卡片数据的基础类 - 新增 TabAdapter 用于管理选项卡页面 - 更新 AndroidManifest.xml 设置主活动为 MainActivity - 更新 build.gradle 添加 generallibrary 依赖 --- app/src/main/res/layout/activity_login.xml | 32 ++++++++++++++++++++++++++++---- 1 files changed, 28 insertions(+), 4 deletions(-) diff --git a/app/src/main/res/layout/activity_login.xml b/app/src/main/res/layout/activity_login.xml index 40c5678..a3d7357 100644 --- a/app/src/main/res/layout/activity_login.xml +++ b/app/src/main/res/layout/activity_login.xml @@ -7,11 +7,12 @@ <TextView + android:id="@+id/title" android:layout_width="match_parent" android:layout_height="0dp" android:layout_marginLeft="20dp" android:layout_marginRight="20dp" - android:layout_weight="1.5" + android:layout_weight="1.3" android:gravity="center" android:text="@string/login_title" android:textSize="30sp" @@ -22,7 +23,30 @@ android:layout_height="0dp" android:layout_weight="1" android:orientation="vertical"> + <LinearLayout + android:id="@+id/nameLL" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:layout_marginLeft="20dp" + android:layout_marginTop="20dp" + android:visibility="gone" + android:layout_marginRight="20dp"> + <TextView + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:text="璐﹀彿锛�" + android:textSize="@dimen/text_size" /> + + <EditText + android:id="@+id/login_name" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:hint="璇疯緭鍏ヨ处鍙�" + android:maxLines="1" + android:singleLine="true" + android:text="zuoxiao" /> + </LinearLayout> <LinearLayout android:layout_width="match_parent" android:layout_height="wrap_content" @@ -42,7 +66,8 @@ android:layout_height="wrap_content" android:hint="鍒濆瀵嗙爜涓烘暟瀛�1-6" android:inputType="textPassword" - android:text="" /> + + android:text="ZX@@123qwA" /> </LinearLayout> @@ -63,7 +88,6 @@ android:id="@+id/versionName" android:layout_width="wrap_content" android:layout_height="wrap_content" - android:text="v2.0" - /> + android:text="v2.0" /> </LinearLayout> \ No newline at end of file -- Gitblit v1.8.0