171 lines
6.3 KiB
XML
171 lines
6.3 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<RelativeLayout 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:id="@+id/main"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:background="@mipmap/icon_login_bg"
|
|
tools:context=".Login.Activity.LoginActivity">
|
|
|
|
<LinearLayout
|
|
android:layout_centerInParent="true"
|
|
android:layout_width="300dp"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="vertical"
|
|
android:padding="20dp"
|
|
android:background="@drawable/x94555f75_16round_bg"
|
|
android:elevation="4dp">
|
|
|
|
<TextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:text="用户登录"
|
|
android:textSize="16sp"
|
|
android:textColor="#ffffff"
|
|
android:layout_gravity="center_horizontal"
|
|
android:layout_marginBottom="10dp"/>
|
|
|
|
<EditText
|
|
android:text="admin1"
|
|
android:textSize="12sp"
|
|
android:id="@+id/et_username"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="28dp"
|
|
android:hint="用户名"
|
|
android:background="@drawable/ffffffff_4round_bg"
|
|
android:paddingStart="16dp"
|
|
android:paddingEnd="16dp"
|
|
android:layout_marginBottom="16dp"/>
|
|
|
|
<EditText
|
|
android:text="123456"
|
|
android:textSize="12sp"
|
|
android:id="@+id/et_password"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="28dp"
|
|
android:hint="密码"
|
|
android:inputType="textPassword"
|
|
android:background="@drawable/ffffffff_4round_bg"
|
|
android:paddingStart="16dp"
|
|
android:paddingEnd="16dp"
|
|
android:layout_marginBottom="16dp"/>
|
|
|
|
|
|
<!-- <RelativeLayout-->
|
|
<!-- android:orientation="horizontal"-->
|
|
<!-- android:layout_width="match_parent"-->
|
|
<!-- android:layout_height="wrap_content">-->
|
|
|
|
<!-- <RadioGroup-->
|
|
<!-- android:layout_centerVertical="true"-->
|
|
<!-- android:id="@+id/rg_layout"-->
|
|
<!-- android:orientation="vertical"-->
|
|
<!-- android:layout_width="wrap_content"-->
|
|
<!-- android:layout_height="wrap_content">-->
|
|
|
|
<!-- <androidx.appcompat.widget.AppCompatRadioButton-->
|
|
<!-- android:textColor="#ffffff"-->
|
|
<!-- android:checked="true"-->
|
|
<!-- android:id="@+id/rb_bt1"-->
|
|
<!-- android:textSize="12sp"-->
|
|
<!-- android:text="串口"-->
|
|
<!-- android:layout_width="wrap_content"-->
|
|
<!-- android:layout_height="20dp"/>-->
|
|
|
|
<!-- <androidx.appcompat.widget.AppCompatRadioButton-->
|
|
<!-- android:textColor="#ffffff"-->
|
|
<!-- android:layout_marginTop="15dp"-->
|
|
<!-- android:id="@+id/rb_bt2"-->
|
|
<!-- android:textSize="12sp"-->
|
|
<!-- android:text="UDP"-->
|
|
<!-- android:layout_width="wrap_content"-->
|
|
<!-- android:layout_height="20dp"/>-->
|
|
|
|
|
|
<!-- </RadioGroup>-->
|
|
|
|
<!-- <EditText-->
|
|
<!-- android:layout_marginTop="45dp"-->
|
|
<!-- android:id="@+id/et_port"-->
|
|
<!-- android:padding="5dp"-->
|
|
<!-- android:textSize="12sp"-->
|
|
<!-- android:hint="14551"-->
|
|
<!-- android:layout_marginLeft="10dp"-->
|
|
<!-- android:layout_marginBottom="12dp"-->
|
|
<!-- android:layout_toRightOf="@+id/rg_layout"-->
|
|
<!-- android:background="@drawable/ffffffff_4round_bg"-->
|
|
<!-- android:layout_width="60dp"-->
|
|
<!-- android:layout_height="30dp"/>-->
|
|
|
|
|
|
|
|
<!-- </RelativeLayout>-->
|
|
|
|
|
|
<TextView
|
|
android:gravity="center"
|
|
android:textSize="12sp"
|
|
android:id="@+id/btn_login"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="28dp"
|
|
android:text="登录"
|
|
android:textColor="@android:color/white"
|
|
android:background="@drawable/x94555f75_4round_bg"
|
|
android:layout_marginBottom="16dp"
|
|
/>
|
|
|
|
<RelativeLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginBottom="16dp">
|
|
|
|
<LinearLayout
|
|
android:id="@+id/ll_select_password"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content">
|
|
|
|
<ImageView
|
|
android:id="@+id/iv_select"
|
|
android:layout_marginTop="1dp"
|
|
android:src="@mipmap/icon_select_yes"
|
|
android:layout_width="14dp"
|
|
android:layout_height="14dp"/>
|
|
|
|
<TextView
|
|
android:layout_marginLeft="2dp"
|
|
android:layout_centerInParent="true"
|
|
android:textColor="#ffffff"
|
|
android:textSize="11sp"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:text="记住密码"
|
|
android:layout_gravity="center_vertical"/>
|
|
</LinearLayout>
|
|
|
|
<TextView
|
|
android:layout_centerInParent="true"
|
|
android:textColor="#ffffff"
|
|
android:textSize="11sp"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:text="注册"
|
|
android:layout_gravity="center_horizontal"/>
|
|
|
|
<TextView
|
|
android:layout_alignParentRight="true"
|
|
android:textColor="#ffffff"
|
|
android:textSize="11sp"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:text="忘记密码?"
|
|
android:layout_gravity="center_horizontal"/>
|
|
|
|
|
|
</RelativeLayout>
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
</RelativeLayout> |