<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns="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:orientation="vertical"
tools:context="com.example.huoliquankai.mobileoffice.Classes.Main.LoginActivity">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:gravity="center_horizontal">
<ImageView
android:id="@+id/logo"
android:layout_width="90dp"
android:layout_height="90dp"
android:layout_marginTop="40dp"
android:src="@mipmap/logo"/>
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="40dp"
android:paddingLeft="40dp"
android:paddingRight="40dp"
android:layout_marginTop="20dp"
android:orientation="horizontal">
<TextView
android:layout_width="60dp"
android:layout_height="match_parent"
android:text="@string/account"
android:gravity="center_vertical"/>
<EditText
android:id="@+id/account"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:hint="@string/tip_input_account"
android:background="@drawable/edit_bg"
android:gravity="center"/>
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="40dp"
android:paddingLeft="40dp"
android:paddingRight="40dp"
android:layout_marginTop="20dp"
android:orientation="horizontal">
<TextView
android:layout_width="60dp"
android:layout_height="match_parent"
android:text="@string/password"
android:gravity="center_vertical"/>
<EditText
android:id="@+id/password"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:hint="@string/tip_input_password"
android:background="@drawable/edit_bg"
android:gravity="center"
android:inputType="textPassword"/>
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="40dp"
android:gravity="center_horizontal"
android:paddingLeft="40dp"
android:paddingRight="40dp"
android:layout_marginTop="20dp">
<Button
android:id="@+id/login_btn"
android:layout_width="match_parent"
android:layout_height="40dp"
android:text="@string/login"
android:background="@color/colorGreen"/>
</LinearLayout>
</LinearLayout>
网友评论