212 lines
9.2 KiB
XML
212 lines
9.2 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<layout 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"
|
|
|
|
>
|
|
|
|
<RelativeLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:fitsSystemWindows="true">
|
|
|
|
<RelativeLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:background="@color/f7">
|
|
|
|
<ImageView
|
|
android:id="@+id/logotop"
|
|
android:layout_width="100dp"
|
|
android:layout_height="100dp"
|
|
android:layout_centerHorizontal="true"
|
|
android:layout_marginTop="80dip"
|
|
android:background="@mipmap/ic_launcher" />
|
|
|
|
<TextView
|
|
android:id="@+id/logotoptext"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_below="@+id/logotop"
|
|
android:layout_centerHorizontal="true"
|
|
android:layout_marginTop="15dip"
|
|
android:textColor="#333333"
|
|
android:text="@string/app_name"
|
|
android:textSize="20sp" />
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:layout_below="@+id/logotoptext"
|
|
android:layout_marginTop="16dp"
|
|
android:orientation="vertical">
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="50dip"
|
|
android:layout_marginTop="10dip"
|
|
android:background="@color/white"
|
|
android:focusable="true"
|
|
android:gravity="center_vertical">
|
|
|
|
<ImageView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginLeft="16dip"
|
|
android:src="@mipmap/id" />
|
|
|
|
<EditText
|
|
android:id="@+id/phone"
|
|
android:layout_width="0dp"
|
|
android:layout_height="match_parent"
|
|
android:layout_weight="1"
|
|
android:layout_marginStart="24dip"
|
|
android:layout_marginEnd="16dp"
|
|
android:inputType="number"
|
|
android:singleLine="true"
|
|
android:maxLength="11"
|
|
android:layout_gravity="left|center_vertical"
|
|
android:background="@null"
|
|
android:hint="@string/registerphone" />
|
|
</LinearLayout>
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="50dip"
|
|
android:layout_marginTop="10dip"
|
|
android:background="@color/white"
|
|
android:gravity="center_vertical">
|
|
|
|
<ImageView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginLeft="16dip"
|
|
android:src="@mipmap/mima" />
|
|
|
|
<EditText
|
|
android:id="@+id/pwd"
|
|
android:layout_width="0dp"
|
|
android:layout_height="match_parent"
|
|
android:layout_weight="1"
|
|
android:layout_marginStart="24dip"
|
|
android:layout_marginEnd="16dp"
|
|
android:maxLength="20"
|
|
android:inputType="textPassword"
|
|
android:singleLine="true"
|
|
android:layout_gravity="left|center_vertical"
|
|
android:background="@null"
|
|
android:hint="请输入密码" />
|
|
</LinearLayout>
|
|
|
|
<TextView
|
|
android:id="@+id/logintext"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="45dp"
|
|
android:layout_marginLeft="20dip"
|
|
android:layout_marginRight="20dip"
|
|
android:layout_marginTop="45dip"
|
|
android:background="@drawable/selector_common_btn"
|
|
android:gravity="center"
|
|
android:text="登录"
|
|
android:textColor="@color/white"
|
|
android:textSize="16sp" />
|
|
|
|
<RelativeLayout
|
|
android:id="@+id/rlzhuce"
|
|
android:visibility="gone"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginLeft="20dip"
|
|
android:layout_marginRight="20dip"
|
|
android:layout_marginTop="16dp"
|
|
android:gravity="center"
|
|
android:textColor="@color/white">
|
|
|
|
<TextView
|
|
android:id="@+id/gotoregister"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:paddingBottom="12dp"
|
|
android:paddingTop="12dp"
|
|
android:textColor="#333333"
|
|
android:layout_alignParentLeft="true"
|
|
android:textSize="16sp"
|
|
android:text="新用户注册" />
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/forgetpaw"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:paddingBottom="12dp"
|
|
android:paddingTop="12dp"
|
|
android:textColor="#333333"
|
|
android:layout_alignParentRight="true"
|
|
android:textSize="16sp"
|
|
android:text="@string/forgetpsw" />
|
|
</RelativeLayout>
|
|
|
|
<LinearLayout
|
|
android:id="@+id/lyfuwu"
|
|
android:layout_width="match_parent"
|
|
android:visibility="gone"
|
|
android:layout_height="40dp"
|
|
android:layout_marginTop="8dp"
|
|
android:layout_marginLeft="16dip"
|
|
android:gravity="center_vertical"
|
|
android:orientation="horizontal">
|
|
<CheckBox
|
|
android:id="@+id/agreewhitemeg"
|
|
android:button="@drawable/checkbox_style"
|
|
android:layout_width="wrap_content"
|
|
android:checked="false"
|
|
android:layout_height="wrap_content" />
|
|
<TextView
|
|
android:layout_marginStart="10dp"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="match_parent"
|
|
android:paddingBottom="8dp"
|
|
android:paddingTop="8dp"
|
|
android:textColor="#333333"
|
|
android:onClick="agreementEvent"
|
|
android:layout_gravity="center_vertical"
|
|
android:gravity="center_vertical"
|
|
android:text="@string/agreewhitemeg1"
|
|
android:textSize="16sp"/>
|
|
|
|
</LinearLayout>
|
|
|
|
<LinearLayout
|
|
android:id="@+id/lyyinsi"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="40dp"
|
|
android:visibility="gone"
|
|
android:layout_marginTop="8dp"
|
|
android:layout_marginLeft="16dip"
|
|
android:gravity="center_vertical"
|
|
android:orientation="horizontal">
|
|
<CheckBox
|
|
android:id="@+id/agreewhitemegy"
|
|
android:button="@drawable/checkbox_style"
|
|
android:layout_width="wrap_content"
|
|
android:checked="false"
|
|
android:layout_height="wrap_content" />
|
|
<TextView
|
|
android:layout_marginStart="10dp"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="match_parent"
|
|
android:paddingBottom="8dp"
|
|
android:paddingTop="8dp"
|
|
android:textColor="#333333"
|
|
android:onClick="yinagreementEvent"
|
|
android:layout_gravity="center_vertical"
|
|
android:gravity="center_vertical"
|
|
android:text="@string/agreewhitemeg2"
|
|
android:textSize="16sp"/>
|
|
|
|
</LinearLayout>
|
|
|
|
</LinearLayout>
|
|
</RelativeLayout>
|
|
</RelativeLayout>
|
|
</layout> |