<?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" >
|
|
<FrameLayout
|
android:layout_width="match_parent"
|
android:layout_height="48dp"
|
android:background="@color/top_bar_color" >
|
|
<TextView
|
android:id="@+id/login_tv_cancel"
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:layout_gravity="center_vertical"
|
android:drawableLeft="@drawable/ic_back"
|
android:drawablePadding="3dp"
|
android:gravity="center_vertical"
|
android:padding="8dp"
|
android:text="返回"
|
android:textColor="@color/white"
|
android:textSize="16sp" />
|
|
<TextView
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:layout_gravity="center"
|
android:paddingBottom="6dp"
|
android:paddingTop="6dp"
|
android:text="帐号登录"
|
android:textColor="@color/white"
|
android:textSize="20sp" />
|
</FrameLayout>
|
|
<ScrollView
|
android:layout_width="match_parent"
|
android:layout_height="match_parent" >
|
|
<LinearLayout
|
android:layout_width="match_parent"
|
android:layout_height="match_parent"
|
android:orientation="vertical" >
|
|
<LinearLayout
|
android:id="@+id/ll_login_content"
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:layout_gravity="center_horizontal"
|
android:layout_marginLeft="50dp"
|
android:layout_marginRight="50dp"
|
android:layout_marginTop="50dp"
|
android:orientation="vertical" >
|
|
<ImageView
|
android:id="@+id/iv_login_top"
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:layout_gravity="center"
|
android:src="@drawable/ic_login_top" />
|
|
<LinearLayout
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:layout_marginTop="40dp"
|
android:orientation="horizontal" >
|
|
<TextView
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:text="账号:" />
|
|
<EditText
|
android:id="@+id/et_name"
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:background="@null"
|
android:digits="@string/rule_email"
|
android:inputType="textEmailAddress"
|
android:singleLine="true" />
|
</LinearLayout>
|
|
<View
|
android:layout_width="match_parent"
|
android:layout_height="1px"
|
android:layout_marginTop="6dp"
|
android:background="@color/light_gray" />
|
|
<LinearLayout
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:layout_marginTop="10dp"
|
android:orientation="horizontal" >
|
|
<TextView
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:text="密码:" />
|
|
<EditText
|
android:id="@+id/et_pwd"
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:background="@null"
|
android:digits="@string/rule_password"
|
android:inputType="textPassword"
|
android:singleLine="true" />
|
</LinearLayout>
|
|
<View
|
android:layout_width="match_parent"
|
android:layout_height="1px"
|
android:layout_marginTop="6dp"
|
android:background="@color/light_gray" />
|
|
<LinearLayout
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:layout_gravity="left"
|
android:layout_marginTop="10dp"
|
android:orientation="horizontal" >
|
|
<CheckBox
|
android:id="@+id/cb_user_agreement"
|
android:layout_width="15dp"
|
android:layout_height="15dp"
|
android:layout_gravity="center_vertical"
|
android:background="@drawable/selector_user_agreement_checkbox"
|
android:button="@null"
|
android:checked="false"
|
android:gravity="center" />
|
|
<TextView
|
android:id="@+id/tv_user_agreement"
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:layout_marginLeft="5dp"
|
android:text="用户使用协议"
|
android:textColor="@color/blue4" />
|
|
<TextView
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:ellipsize="end"
|
android:singleLine="true"
|
android:text="&"
|
android:textColor="@color/gray" />
|
|
<TextView
|
android:id="@+id/tv_privacy"
|
android:layout_width="0dp"
|
android:layout_height="wrap_content"
|
android:layout_weight="1"
|
android:text="隐私政策"
|
android:textColor="@color/blue4" />
|
|
<TextView
|
android:id="@+id/tv_forget_pwd"
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:layout_marginLeft="20dp"
|
android:ellipsize="end"
|
android:singleLine="true"
|
android:text="忘记密码?"
|
android:textColor="@color/gray" />
|
</LinearLayout>
|
|
<LinearLayout
|
android:layout_width="match_parent"
|
android:layout_height="50dp"
|
android:layout_marginTop="20dp"
|
android:orientation="horizontal" >
|
|
<TextView
|
android:id="@+id/tv_register"
|
android:layout_width="0dp"
|
android:layout_height="38dp"
|
android:layout_marginRight="5dp"
|
android:layout_weight="1"
|
android:background="@drawable/shape_register"
|
android:gravity="center"
|
android:text="注册"
|
android:textColor="@color/blue2" />
|
|
<TextView
|
android:id="@+id/tv_login"
|
android:layout_width="0dp"
|
android:layout_height="38dp"
|
android:layout_marginLeft="5dp"
|
android:layout_weight="1"
|
android:background="@drawable/shape_login1"
|
android:gravity="center"
|
android:text="登陆"
|
android:textColor="@color/white" />
|
</LinearLayout>
|
</LinearLayout>
|
|
<LinearLayout
|
android:id="@+id/ll_third_login"
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:layout_marginTop="30dp"
|
android:background="@color/white"
|
android:orientation="vertical"
|
android:paddingBottom="20dp" >
|
|
<TextView
|
android:id="@+id/textView"
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:layout_marginTop="30dp"
|
android:gravity="center"
|
android:text="第三方账号登陆"
|
android:textColor="@color/gray"
|
android:textSize="18sp" />
|
|
<TextView
|
android:id="@+id/login_tv_qq"
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:layout_gravity="center_horizontal"
|
android:layout_marginTop="15dp"
|
android:drawablePadding="6dp"
|
android:drawableTop="@drawable/img_qq"
|
android:gravity="center_horizontal"
|
android:padding="4dp"
|
android:text="QQ登陆"
|
android:textColor="@drawable/selector_qqblue_font"
|
android:textSize="16sp" />
|
</LinearLayout>
|
</LinearLayout>
|
</ScrollView>
|
|
</LinearLayout>
|