<?xml version="1.0" encoding="utf-8"?>
|
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
android:layout_width="match_parent"
|
android:layout_height="match_parent"
|
android:orientation="vertical">
|
|
|
<EditText
|
android:id="@+id/name"
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:layout_above="@+id/psLL"
|
android:layout_marginLeft="20dp"
|
android:layout_marginRight="20dp"
|
android:layout_marginBottom="10dp"
|
android:hint="请输入账号" />
|
|
<RelativeLayout
|
android:id="@+id/psLL"
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:layout_above="@+id/loginBtn"
|
android:layout_marginLeft="20dp"
|
android:layout_marginRight="20dp"
|
android:layout_marginBottom="20dp"
|
android:orientation="horizontal">
|
|
<EditText
|
android:id="@+id/password"
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:layout_toLeftOf="@+id/passwordBtn"
|
android:hint="请输入密码"
|
android:inputType="textPassword" />
|
|
<ImageButton
|
android:id="@+id/passwordBtn"
|
android:layout_width="40dp"
|
android:layout_height="40dp"
|
android:layout_alignParentRight="true"
|
android:layout_centerVertical="true" />
|
</RelativeLayout>
|
|
<TextView
|
android:id="@+id/loginBtn"
|
android:layout_width="match_parent"
|
android:layout_height="45dp"
|
android:layout_alignParentBottom="true"
|
android:layout_marginLeft="20dp"
|
android:layout_marginRight="20dp"
|
android:layout_marginBottom="20dp"
|
android:background="@drawable/ic_blue_background"
|
android:gravity="center"
|
android:text="登录"
|
android:textColor="@color/white"
|
android:textSize="20sp" />
|
|
|
</RelativeLayout>
|