sdf
This commit is contained in:
149
app/src/main/res/layout/activity_login.xml
Normal file
149
app/src/main/res/layout/activity_login.xml
Normal file
@@ -0,0 +1,149 @@
|
||||
<?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: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>
|
||||
</RelativeLayout>
|
||||
</RelativeLayout>
|
||||
</layout>
|
||||
Reference in New Issue
Block a user