You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
160 lines
4.7 KiB
160 lines
4.7 KiB
<?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"
|
|
xmlns:tools="http://schemas.android.com/tools"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:hapticFeedbackEnabled="true"
|
|
android:orientation="vertical"
|
|
tools:context=".MainActivity">
|
|
|
|
<ImageView
|
|
android:id="@+id/imageView2"
|
|
android:layout_width="300dp"
|
|
android:layout_height="300dp"
|
|
android:layout_gravity="center"
|
|
app:srcCompat="@drawable/toast" />
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="60dp"
|
|
android:gravity="center">
|
|
|
|
<TextView
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:gravity="center"
|
|
android:text="@string/food"
|
|
android:textColor="#FFA764"
|
|
android:textSize="40sp"
|
|
android:textStyle="bold">
|
|
</TextView>
|
|
|
|
</LinearLayout>
|
|
|
|
<RelativeLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="70dp"
|
|
android:layout_marginTop="50dp"
|
|
android:layout_marginStart="50dp"
|
|
android:layout_marginEnd="50dp">
|
|
|
|
<TextView
|
|
android:id="@+id/text_1"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="60dp"
|
|
android:text="@string/username"
|
|
android:textColor="#FFA764"
|
|
android:textSize="25sp"
|
|
android:textStyle="bold">
|
|
</TextView>
|
|
|
|
<EditText
|
|
android:layout_width="match_parent"
|
|
android:layout_height="50dp"
|
|
android:layout_marginStart="5dp"
|
|
android:inputType="text"
|
|
android:maxLength="6"
|
|
android:hint="请输入账号"
|
|
android:textSize="20sp"
|
|
android:layout_toEndOf="@+id/text_1">
|
|
</EditText>
|
|
|
|
</RelativeLayout>
|
|
|
|
<RelativeLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="70dp"
|
|
android:layout_marginStart="50dp"
|
|
android:layout_marginEnd="50dp">
|
|
|
|
<TextView
|
|
android:id="@+id/text_2"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="60dp"
|
|
android:text="@string/password"
|
|
android:textColor="#FFA764"
|
|
android:textSize="25sp"
|
|
android:textStyle="bold">
|
|
</TextView>
|
|
|
|
<EditText
|
|
android:layout_width="match_parent"
|
|
android:layout_height="50dp"
|
|
android:layout_marginStart="5dp"
|
|
android:inputType="textPassword"
|
|
android:maxLength="9"
|
|
android:hint="请输入密码"
|
|
android:textSize="20sp"
|
|
android:layout_toEndOf="@+id/text_2">
|
|
</EditText>
|
|
|
|
</RelativeLayout>
|
|
|
|
<LinearLayout
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="30dp"
|
|
android:layout_gravity="center"
|
|
android:layout_marginStart="120dp">
|
|
|
|
<TextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:text="忘记密码?"
|
|
android:textSize="16sp">
|
|
|
|
</TextView>
|
|
|
|
</LinearLayout>
|
|
|
|
<LinearLayout
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_gravity="center">
|
|
|
|
<Button
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:backgroundTint="#FFA764"
|
|
android:text="@string/login"
|
|
android:textSize="18dp">
|
|
|
|
</Button>
|
|
|
|
<Button
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginLeft="10dp"
|
|
android:backgroundTint="#FFA764"
|
|
android:text="@string/enroll"
|
|
android:textSize="18dp">
|
|
|
|
</Button>
|
|
|
|
</LinearLayout>
|
|
|
|
<LinearLayout
|
|
android:layout_width="380dp"
|
|
android:layout_height="40dp"
|
|
android:layout_gravity="center">
|
|
|
|
<CheckBox
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:minHeight="30dp"
|
|
android:text="@string/xieyi"
|
|
android:textSize="16sp">
|
|
</CheckBox>
|
|
|
|
</LinearLayout>
|
|
|
|
<ImageView
|
|
android:id="@+id/imageView"
|
|
android:layout_width="50dp"
|
|
android:layout_height="50dp"
|
|
android:layout_gravity="right"
|
|
android:layout_marginTop="10dp"
|
|
app:srcCompat="@drawable/lemon" />
|
|
|
|
|
|
</LinearLayout> |