2025.4.25(周五)
<?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent" android:orientation="vertical" android:background="@drawable/bg5"> <RelativeLayout android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_marginTop="50dp"> <de.hdodenhof.circleimageview.CircleImageView xmlns:app="http://schemas.android.com/apk/res-auto" android:id="@+id/img_head" android:layout_width="96dp" android:layout_height="96dp" android:src="@drawable/head" app:civ_border_width="2dp" app:civ_border_color="#ffffffff" android:layout_centerInParent="true" /> </RelativeLayout> <RelativeLayout android:layout_width="match_parent" android:layout_height="wrap_content" android:minHeight="50dp" android:layout_marginLeft="50dp" android:layout_marginRight="50dp" android:layout_marginTop="50dp"> <EditText android:id="@+id/et_name" android:layout_width="match_parent" android:layout_height="wrap_content" android:hint="请输入用户名" android:textSize="18sp" android:layout_marginBottom="10dp" android:layout_marginLeft="10dp" android:layout_marginRight="10dp" android:background="@drawable/editview" android:layout_centerInParent="true"/> </RelativeLayout> <RelativeLayout android:layout_width="match_parent" android:layout_height="wrap_content" android:minHeight="50dp" android:layout_marginLeft="50dp" android:layout_marginRight="50dp" android:layout_marginTop="10dp"> <EditText android:id="@+id/et_password" android:layout_width="match_parent" android:layout_height="wrap_content" android:hint="请输入密码" android:textSize="18sp" android:layout_marginBottom="10dp" android:layout_marginLeft="10dp" android:layout_marginRight="10dp" android:background="@drawable/editview" android:layout_centerInParent="true" android:inputType="textPassword"/> <ImageButton android:id="@+id/img_look" android:layout_alignRight="@+id/et_password" android:layout_width="30dp" android:layout_height="30dp" android:background="@drawable/unlook" android:layout_centerVertical="true" android:layout_marginRight="5dp"/> </RelativeLayout> <Spinner android:id="@+id/sp_role" android:layout_width="180dp" android:layout_height="wrap_content" android:spinnerMode= "dropdown" android:layout_gravity="center" android:layout_marginTop="10dp" /> <LinearLayout android:layout_width="match_parent" android:layout_height="wrap_content" android:orientation="horizontal" android:layout_marginTop="30dp"> <Button android:id="@+id/btn_login" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="登录" android:layout_marginLeft="100dp" android:background="@drawable/button_gray" android:textColor="@color/black" /> <Button android:id="@+id/btn_register" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="20dp" android:layout_marginRight="10dp" android:background="@drawable/button_gray" android:text="注册" android:textColor="@color/black" /> </LinearLayout> </LinearLayout>