1、主界面login.xml
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@color/white"
android:orientation="vertical" >
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@color/white"
android:layout_margin="20dp"
android:orientation="vertical" >
<!-- 输入框内容 -->
<LinearLayout
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_weight="3"
android:layout_marginBottom="20dp"
android:orientation="horizontal"
>
<!-- logo -->
<LinearLayout
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="1"
android:background="@drawable/logo4"
>
</LinearLayout>
<!-- 输入框 -->
<LinearLayout
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="2"
android:layout_marginLeft="20dp"
android:orientation="vertical"
>
<!-- 账号-->
<LinearLayout
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_weight="1"
android:background="@drawable/login_username"
android:layout_marginBottom="8dp"
>
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
>
<EditText
android:id="@+id/username"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_marginLeft="15sp"
android:layout_marginRight="15sp"
android:hint="请输入雷霆账号"
android:textColor="@android:color/darker_gray"
android:background="@null"
/>
<ImageView
android:layout_width="20dp"
android:layout_height="20dp"
android:background="@drawable/list_20_50"
android:layout_cent