<?xml version="1.0" encoding="utf-8"?>
|
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
android:layout_width="match_parent"
|
android:layout_height="match_parent"
|
android:background="@color/page_content_bg_color"
|
android:orientation="vertical">
|
|
<include layout="@layout/view_status_bar" />
|
|
|
<LinearLayout
|
android:layout_width="match_parent"
|
android:layout_height="match_parent"
|
android:orientation="vertical">
|
|
<FrameLayout
|
android:layout_width="match_parent"
|
android:layout_height="48dp"
|
android:background="@color/page_content_bg_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_youth_back"
|
android:drawablePadding="3dp"
|
android:gravity="center_vertical"
|
android:padding="8dp"
|
android:text="返回"
|
android:textColor="@color/page_title_text_color"
|
android:textSize="16sp" />
|
|
<TextView
|
android:id="@+id/tv_title"
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:layout_gravity="center"
|
android:paddingTop="6dp"
|
android:paddingBottom="6dp"
|
android:text="帐号登录"
|
android:textColor="@color/page_title_text_color"
|
android:textSize="20sp" />
|
</FrameLayout>
|
|
<ScrollView
|
android:layout_width="match_parent"
|
android:layout_height="0dp"
|
android:layout_weight="1">
|
|
<LinearLayout
|
android:layout_width="match_parent"
|
android:layout_height="match_parent"
|
android:orientation="vertical">
|
|
|
<LinearLayout
|
android:id="@+id/ll_third_login"
|
android:layout_width="match_parent"
|
android:layout_height="match_parent"
|
android:gravity="center_horizontal"
|
android:orientation="vertical"
|
android:paddingBottom="20dp"
|
android:visibility="gone">
|
|
<com.lcjian.library.widget.RatioLayout
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:background="@drawable/ic_login_bg_w"
|
app:ratio="1.024">
|
|
|
<FrameLayout
|
android:layout_width="match_parent"
|
android:layout_height="match_parent">
|
|
<LinearLayout
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:layout_gravity="center_horizontal|bottom"
|
android:layout_marginBottom="80dp">
|
|
<LinearLayout
|
android:visibility="gone"
|
android:layout_marginRight="58dp"
|
android:id="@+id/ll_login_qq"
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:gravity="center_horizontal"
|
android:orientation="vertical">
|
|
<ImageView
|
android:layout_width="55dp"
|
android:layout_height="55dp"
|
android:src="@drawable/img_qq"></ImageView>
|
|
<TextView
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:layout_marginTop="7.5dp"
|
android:drawablePadding="6dp"
|
android:gravity="center_horizontal"
|
android:padding="4dp"
|
android:text="QQ登录"
|
android:textColor="@color/login_login_name_text_color"
|
android:textSize="12sp" />
|
</LinearLayout>
|
|
<LinearLayout
|
android:id="@+id/ll_login_wx"
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:gravity="center_horizontal"
|
android:orientation="vertical">
|
|
<ImageView
|
android:layout_width="55dp"
|
android:layout_height="55dp"
|
android:src="@drawable/img_wx"></ImageView>
|
|
<TextView
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:layout_marginTop="7.5dp"
|
android:drawablePadding="6dp"
|
android:gravity="center_horizontal"
|
android:padding="4dp"
|
android:text="微信登录"
|
android:textColor="@color/login_login_name_text_color"
|
android:textSize="12sp" />
|
</LinearLayout>
|
|
</LinearLayout>
|
|
|
</FrameLayout>
|
|
</com.lcjian.library.widget.RatioLayout>
|
|
</LinearLayout>
|
|
|
<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_marginTop="120dp"
|
android:layout_marginRight="50dp"
|
android:focusable="true"
|
android:focusableInTouchMode="true"
|
android:orientation="vertical"
|
android:visibility="visible">
|
|
|
<LinearLayout
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:layout_marginTop="15dp"
|
android:background="@drawable/shape_login_input_bg"
|
android:gravity="center_vertical"
|
android:orientation="horizontal"
|
android:paddingLeft="20dp"
|
android:paddingTop="12dp"
|
android:paddingRight="20dp"
|
android:paddingBottom="12dp">
|
|
<ImageView
|
android:layout_width="wrap_content"
|
android:layout_height="18dp"
|
android:src="@drawable/icon_login_account"></ImageView>
|
|
<EditText
|
android:id="@+id/et_name"
|
style="@style/loginInputStyle"
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:layout_marginLeft="18dp"
|
android:background="@null"
|
android:digits="@string/rule_email"
|
android:hint="请输入账户邮箱"
|
android:inputType="textEmailAddress" />
|
</LinearLayout>
|
|
<LinearLayout
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:layout_marginTop="15dp"
|
android:background="@drawable/shape_login_input_bg"
|
android:gravity="center_vertical"
|
android:orientation="horizontal"
|
android:paddingLeft="20dp"
|
android:paddingTop="12dp"
|
android:paddingRight="20dp"
|
android:paddingBottom="12dp">
|
|
<ImageView
|
android:layout_width="wrap_content"
|
android:layout_height="18dp"
|
android:src="@drawable/icon_login_password"></ImageView>
|
|
<EditText
|
android:id="@+id/et_pwd"
|
style="@style/loginInputStyle"
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:layout_marginLeft="18dp"
|
android:background="@null"
|
android:digits="@string/rule_password"
|
android:hint="请输入您的密码"
|
android:inputType="textPassword" />
|
</LinearLayout>
|
|
|
<LinearLayout
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:layout_marginTop="32dp"
|
android:orientation="horizontal">
|
|
|
<TextView
|
android:id="@+id/tv_login"
|
android:layout_width="match_parent"
|
|
android:layout_height="44dp"
|
android:background="@drawable/shape_login_btn"
|
android:gravity="center"
|
android:paddingLeft="14dp"
|
android:paddingRight="14dp"
|
android:text="登录"
|
android:textColor="#F4DE4A"
|
android:textSize="17sp" />
|
</LinearLayout>
|
|
|
<FrameLayout
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:padding="28dp">
|
|
|
<TextView
|
android:id="@+id/tv_register"
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:text="注册帐号"
|
android:textColor="@color/login_other_login_text_color"
|
android:textSize="11sp" />
|
|
|
<TextView
|
android:id="@+id/tv_forget_pwd"
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:layout_gravity="right"
|
android:text="忘记密码"
|
android:textColor="@color/login_other_login_text_color"
|
android:textSize="11sp" />
|
|
</FrameLayout>
|
|
|
</LinearLayout>
|
|
</LinearLayout>
|
</ScrollView>
|
|
|
<TextView
|
android:padding="10dp"
|
android:id="@+id/tv_other_login"
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:layout_gravity="center_horizontal"
|
android:layout_marginBottom="53dp"
|
android:text="其他登录方式"
|
android:textColor="@color/login_other_login_text_color"
|
android:textSize="12sp" />
|
|
|
<LinearLayout
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:layout_gravity="center_horizontal"
|
android:layout_marginBottom="18dp"
|
android:gravity="center_horizontal"
|
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"
|
android:visibility="visible" />
|
|
<TextView
|
android:layout_width="wrap_content"
|
android:layout_height="match_parent"
|
android:layout_marginLeft="6.5dp"
|
android:text="勾选即代表同意"
|
android:textColor="#B3B8D3"
|
android:textSize="11sp" />
|
|
<TextView
|
android:id="@+id/tv_user_agreement"
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:text="@string/user_agreement"
|
android:textColor="@color/login_protocol_highlight_text_color"
|
android:textSize="11sp" />
|
|
<TextView
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:text="、"
|
android:textColor="@color/login_protocol_text_color"
|
android:textSize="11sp" />
|
|
<TextView
|
android:id="@+id/tv_privacy_policy"
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:text="@string/privacy_policy"
|
android:textColor="@color/login_protocol_highlight_text_color"
|
android:textSize="11sp" />
|
</LinearLayout>
|
|
|
</LinearLayout>
|
</LinearLayout>
|