|
|
|
@ -10,84 +10,84 @@
|
|
|
|
|
</data>
|
|
|
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
|
tools:context=".MainActivity"
|
|
|
|
|
android:background="@color/white"
|
|
|
|
|
android:orientation="vertical">
|
|
|
|
|
<ImageView
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
|
tools:context=".MainActivity"
|
|
|
|
|
android:background="@color/white"
|
|
|
|
|
android:orientation="vertical">
|
|
|
|
|
<ImageView
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="100dp"
|
|
|
|
|
android:layout_marginTop="50dp"
|
|
|
|
|
android:src="@drawable/logo"/>
|
|
|
|
|
android:layout_height="100dp"
|
|
|
|
|
android:layout_marginTop="50dp"
|
|
|
|
|
android:src="@drawable/logo"/>
|
|
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="45dp"
|
|
|
|
|
android:layout_marginLeft="20dp"
|
|
|
|
|
<TextView
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="45dp"
|
|
|
|
|
android:layout_marginLeft="20dp"
|
|
|
|
|
|
|
|
|
|
android:gravity="left|center"
|
|
|
|
|
android:text="登录:MES"
|
|
|
|
|
android:textColor="@color/black"
|
|
|
|
|
android:gravity="left|center"
|
|
|
|
|
android:text="登录:MES"
|
|
|
|
|
android:textColor="@color/black"
|
|
|
|
|
|
|
|
|
|
android:textSize="22sp" />
|
|
|
|
|
android:textSize="22sp" />
|
|
|
|
|
|
|
|
|
|
<com.google.android.material.textfield.TextInputLayout
|
|
|
|
|
android:id="@+id/textInputLayout"
|
|
|
|
|
<com.google.android.material.textfield.TextInputLayout
|
|
|
|
|
android:id="@+id/textInputLayout"
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="55dp"
|
|
|
|
|
android:layout_marginLeft="20dp"
|
|
|
|
|
android:layout_marginTop="20dp"
|
|
|
|
|
android:layout_marginRight="20dp"
|
|
|
|
|
android:hint="用户名">
|
|
|
|
|
|
|
|
|
|
<EditText
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="55dp"
|
|
|
|
|
android:layout_marginLeft="20dp"
|
|
|
|
|
android:layout_marginTop="20dp"
|
|
|
|
|
android:layout_marginRight="20dp"
|
|
|
|
|
android:hint="用户名">
|
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
|
android:text="@={user.username}" />
|
|
|
|
|
|
|
|
|
|
<EditText
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
|
android:text="@={user.username}" />
|
|
|
|
|
</com.google.android.material.textfield.TextInputLayout>
|
|
|
|
|
|
|
|
|
|
</com.google.android.material.textfield.TextInputLayout>
|
|
|
|
|
<com.google.android.material.textfield.TextInputLayout
|
|
|
|
|
android:id="@+id/textInputLayout2"
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="55dp"
|
|
|
|
|
android:layout_marginLeft="20dp"
|
|
|
|
|
android:layout_marginTop="15dp"
|
|
|
|
|
android:layout_marginRight="20dp"
|
|
|
|
|
android:hint="密码"
|
|
|
|
|
app:passwordToggleEnabled="true">
|
|
|
|
|
|
|
|
|
|
<com.google.android.material.textfield.TextInputLayout
|
|
|
|
|
android:id="@+id/textInputLayout2"
|
|
|
|
|
<EditText
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="55dp"
|
|
|
|
|
android:layout_marginLeft="20dp"
|
|
|
|
|
android:layout_marginTop="15dp"
|
|
|
|
|
android:layout_marginRight="20dp"
|
|
|
|
|
android:hint="密码"
|
|
|
|
|
app:passwordToggleEnabled="true">
|
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
|
android:inputType="textPassword"
|
|
|
|
|
android:layout_gravity="center"
|
|
|
|
|
android:imeOptions="actionDone"
|
|
|
|
|
android:text="@={user.password}" />
|
|
|
|
|
|
|
|
|
|
<EditText
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
|
android:inputType="textPassword"
|
|
|
|
|
android:layout_gravity="center"
|
|
|
|
|
android:imeOptions="actionDone"
|
|
|
|
|
android:text="@={user.password}" />
|
|
|
|
|
</com.google.android.material.textfield.TextInputLayout>
|
|
|
|
|
|
|
|
|
|
</com.google.android.material.textfield.TextInputLayout>
|
|
|
|
|
|
|
|
|
|
<CheckBox
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:layout_marginLeft="20dp"
|
|
|
|
|
android:layout_marginTop="10dp"
|
|
|
|
|
android:layout_marginRight="20dp"
|
|
|
|
|
android:checked="@={user.remember}"
|
|
|
|
|
android:text="记住我" />
|
|
|
|
|
<CheckBox
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:layout_marginLeft="20dp"
|
|
|
|
|
android:layout_marginTop="10dp"
|
|
|
|
|
android:layout_marginRight="20dp"
|
|
|
|
|
android:checked="@={user.remember}"
|
|
|
|
|
android:text="记住我" />
|
|
|
|
|
|
|
|
|
|
<Button
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="55dp"
|
|
|
|
|
android:layout_marginLeft="20dp"
|
|
|
|
|
android:layout_marginTop="10dp"
|
|
|
|
|
android:layout_marginRight="20dp"
|
|
|
|
|
android:letterSpacing="1"
|
|
|
|
|
android:text="登录"
|
|
|
|
|
android:textSize="20sp"
|
|
|
|
|
android:textStyle="bold"
|
|
|
|
|
android:onClick="login_click" />
|
|
|
|
|
<Button
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="55dp"
|
|
|
|
|
android:layout_marginLeft="20dp"
|
|
|
|
|
android:layout_marginTop="10dp"
|
|
|
|
|
android:layout_marginRight="20dp"
|
|
|
|
|
android:letterSpacing="1"
|
|
|
|
|
android:text="登录"
|
|
|
|
|
android:textSize="20sp"
|
|
|
|
|
android:textStyle="bold"
|
|
|
|
|
android:onClick="login_click" />
|
|
|
|
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
</layout>
|