冲刺05
activity_parent.xml
<?xml version="1.0" encoding="UTF-8" ?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" android:layout_height="match_parent" android:layout_width="match_parent" android:orientation="vertical" android:padding="20dp"> <TextView android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="童语者" android:textSize="40dp" android:layout_marginBottom="25dp"/> <TextView android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_gravity="center" android:text="登录" android:textSize="30dp" android:layout_marginBottom="25dp"/> <EditText android:id="@+id/et_username" android:layout_width="match_parent" android:layout_height="wrap_content" android:hint="用户名"/> <EditText android:id="@+id/et_password" android:layout_width="match_parent" android:layout_height="wrap_content" android:hint="密码"/> <LinearLayout android:layout_width="match_parent" android:layout_height="wrap_content" android:orientation="horizontal"> <CheckBox android:id="@+id/lg_remPassword" android:layout_width="wrap_content" android:layout_height="wrap_content" android:padding="5dp" android:text="记住密码"/> <CheckBox android:id="@+id/lg_autoLogin" android:layout_width="wrap_content" android:layout_height="wrap_content" android:padding="5dp" android:text="自动登录"/> </LinearLayout> <Button android:id="@+id/et_loginbut" android:background="@drawable/button" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_marginBottom="10dp" android:text="登录" /> <Button android:id="@+id/et_registerbut" android:layout_width="match_parent" android:layout_height="wrap_content" android:background="@drawable/button" android:text="注册" /> </LinearLayout>
activity_register.xml
<?xml version="1.0" encoding="UTF-8" ?> <FrameLayout 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_height="match_parent" android:layout_width="match_parent" android:id="@+id/registerFragmentContainer" android:orientation="vertical" android:padding="20dp"> </FrameLayout>
activity_register.xml
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】凌霞软件回馈社区,博客园 & 1Panel & Halo 联合会员上线
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】博客园社区专享云产品让利特惠,阿里云新客6.5折上折
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步