|
@@ -1,146 +1,186 @@
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
|
|
-<android.support.constraint.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
|
+<RelativeLayout 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"
|
|
|
android:fitsSystemWindows="true"
|
|
|
android:orientation="vertical"
|
|
|
android:layout_width="match_parent"
|
|
|
android:layout_height="match_parent">
|
|
|
+
|
|
|
<android.support.design.widget.AppBarLayout
|
|
|
android:id="@+id/app_bar_layout"
|
|
|
- android:layout_width="0dp"
|
|
|
+ android:layout_width="match_parent"
|
|
|
android:layout_height="wrap_content"
|
|
|
android:theme="@style/AppTheme.AppBarOverlay"
|
|
|
- app:elevation="0dp"
|
|
|
android:weightSum="1"
|
|
|
- app:layout_constraintRight_toRightOf="parent"
|
|
|
- app:layout_constraintLeft_toLeftOf="parent"
|
|
|
+ app:elevation="0dp"
|
|
|
app:layout_constraintHorizontal_bias="0.0"
|
|
|
+ app:layout_constraintLeft_toLeftOf="parent"
|
|
|
+ app:layout_constraintRight_toRightOf="parent"
|
|
|
app:layout_constraintTop_toTopOf="parent">
|
|
|
|
|
|
<android.support.v7.widget.Toolbar
|
|
|
android:id="@+id/toolbar"
|
|
|
android:layout_width="match_parent"
|
|
|
android:layout_height="wrap_content"
|
|
|
+ android:layout_weight="1.21"
|
|
|
android:background="?attr/colorPrimary"
|
|
|
- app:titleTextAppearance="@style/Toolbar.TitleText"
|
|
|
- android:layout_weight="1.21">
|
|
|
- </android.support.v7.widget.Toolbar>
|
|
|
+ app:titleTextAppearance="@style/Toolbar.TitleText"></android.support.v7.widget.Toolbar>
|
|
|
</android.support.design.widget.AppBarLayout>
|
|
|
|
|
|
- <TextView
|
|
|
- android:layout_width="wrap_content"
|
|
|
- android:layout_height="wrap_content"
|
|
|
- android:text="欢迎来到谁说"
|
|
|
- android:layout_marginTop="25dp"
|
|
|
- app:layout_constraintTop_toBottomOf="@+id/app_bar_layout"
|
|
|
- android:layout_marginStart="36dp"
|
|
|
- android:textStyle="bold"
|
|
|
- android:textSize="25sp"
|
|
|
- android:typeface="monospace"
|
|
|
- android:id="@+id/textView3"
|
|
|
- android:layout_marginLeft="36dp"
|
|
|
- app:layout_constraintLeft_toLeftOf="parent" />
|
|
|
- <TextView
|
|
|
- android:layout_width="wrap_content"
|
|
|
- android:layout_height="wrap_content"
|
|
|
- android:text="请输入您的登录信息"
|
|
|
- android:layout_marginLeft="36dp"
|
|
|
- android:layout_marginStart="36dp"
|
|
|
- app:layout_constraintLeft_toLeftOf="parent"
|
|
|
- android:layout_marginTop="8dp"
|
|
|
- app:layout_constraintTop_toBottomOf="@+id/textView3"
|
|
|
- android:id="@+id/textView4"
|
|
|
- android:layout_marginBottom="8dp"
|
|
|
- app:layout_constraintBottom_toTopOf="@+id/login_tel"
|
|
|
- app:layout_constraintVertical_bias="0.074" />
|
|
|
-
|
|
|
- <com.netease.nim.uikit.common.ui.widget.ClearableEditTextWithIcon
|
|
|
- android:id="@+id/login_tel"
|
|
|
- android:layout_width="300dp"
|
|
|
- android:layout_height="wrap_content"
|
|
|
- android:maxLines="1"
|
|
|
- android:hint="@string/please_input_tel_num"
|
|
|
- android:layout_marginStart="36dp"
|
|
|
- android:layout_marginRight="8dp"
|
|
|
- app:layout_constraintRight_toRightOf="@+id/app_bar_layout"
|
|
|
- android:layout_marginLeft="36dp"
|
|
|
- app:layout_constraintLeft_toLeftOf="@+id/app_bar_layout"
|
|
|
- app:layout_constraintHorizontal_bias="0.117"
|
|
|
- android:layout_marginTop="195dp"
|
|
|
- app:layout_constraintTop_toBottomOf="@+id/app_bar_layout"
|
|
|
- android:layout_marginEnd="8dp" />
|
|
|
-
|
|
|
- <com.netease.nim.uikit.common.ui.widget.ClearableEditTextWithIcon
|
|
|
- android:id="@+id/login_password"
|
|
|
- android:layout_width="300dp"
|
|
|
- android:layout_height="wrap_content"
|
|
|
- android:maxLines="1"
|
|
|
- android:hint="@string/please_input_pwd"
|
|
|
- android:layout_marginTop="22dp"
|
|
|
- app:layout_constraintTop_toBottomOf="@+id/login_tel"
|
|
|
- app:layout_constraintLeft_toLeftOf="@+id/login_tel"
|
|
|
- android:inputType="textPassword"
|
|
|
- android:layout_marginRight="8dp"
|
|
|
- app:layout_constraintRight_toRightOf="@+id/login_tel"
|
|
|
- android:layout_marginEnd="8dp"
|
|
|
- app:layout_constraintHorizontal_bias="0.0" />
|
|
|
-
|
|
|
- <TextView
|
|
|
- android:id="@+id/forgot_password"
|
|
|
- android:layout_width="wrap_content"
|
|
|
- android:layout_height="wrap_content"
|
|
|
- android:text="忘记密码?"
|
|
|
- android:textColor="@color/grey_light"
|
|
|
- android:layout_marginTop="9dp"
|
|
|
- app:layout_constraintTop_toBottomOf="@+id/login_password"
|
|
|
- app:layout_constraintRight_toRightOf="@+id/login_password" />
|
|
|
-
|
|
|
- <Button
|
|
|
- android:id="@+id/login_btn"
|
|
|
- android:layout_width="300dp"
|
|
|
- android:layout_height="wrap_content"
|
|
|
- style="@style/NormalBtnStyle"
|
|
|
- android:layout_marginTop="47dp"
|
|
|
- app:layout_constraintTop_toBottomOf="@+id/login_password"
|
|
|
- app:layout_constraintLeft_toLeftOf="@+id/login_password"
|
|
|
- android:text="@string/login"
|
|
|
- android:layout_marginRight="8dp"
|
|
|
- app:layout_constraintRight_toRightOf="@+id/login_password"
|
|
|
- android:layout_marginEnd="8dp"
|
|
|
- app:layout_constraintHorizontal_bias="0.0" />
|
|
|
-
|
|
|
- <com.sheishuo.app.common.views.PartlyHighLightTextView xmlns:app="http://schemas.android.com/apk/res-auto"
|
|
|
- android:id="@+id/rules_tv"
|
|
|
- android:layout_width="wrap_content"
|
|
|
- android:layout_height="wrap_content"
|
|
|
- app:normal_str="登录代表您已同意"
|
|
|
- app:hightlight_str=" 《用户注册协议》 "
|
|
|
- android:layout_marginTop="8dp"
|
|
|
- app:layout_constraintTop_toBottomOf="@+id/login_btn"
|
|
|
- android:layout_marginLeft="8dp"
|
|
|
- app:layout_constraintLeft_toLeftOf="@+id/login_btn"
|
|
|
- android:layout_marginRight="8dp"
|
|
|
- app:layout_constraintRight_toRightOf="@+id/login_btn"
|
|
|
- android:layout_marginStart="8dp"
|
|
|
- android:layout_marginEnd="8dp" />
|
|
|
-
|
|
|
-
|
|
|
- <com.sheishuo.app.common.views.PartlyHighLightTextView
|
|
|
- android:id="@+id/register_tv"
|
|
|
- android:layout_width="wrap_content"
|
|
|
- android:layout_height="wrap_content"
|
|
|
- app:normal_str="还没有账号?"
|
|
|
- app:hightlight_str="现在注册"
|
|
|
- android:layout_marginTop="98dp"
|
|
|
- app:layout_constraintTop_toBottomOf="@+id/rules_tv"
|
|
|
- android:layout_marginLeft="8dp"
|
|
|
- app:layout_constraintLeft_toLeftOf="@+id/rules_tv"
|
|
|
- android:layout_marginRight="8dp"
|
|
|
- app:layout_constraintRight_toRightOf="@+id/rules_tv"
|
|
|
- app:layout_constraintHorizontal_bias="0.43"
|
|
|
- app:layout_constraintBottom_toBottomOf="parent"
|
|
|
- android:layout_marginBottom="8dp"
|
|
|
- android:layout_marginStart="8dp"
|
|
|
- android:layout_marginEnd="8dp" />
|
|
|
-</android.support.constraint.ConstraintLayout>
|
|
|
+ <LinearLayout
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="match_parent"
|
|
|
+ android:layout_marginTop="56dp"
|
|
|
+ android:orientation="vertical">
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ android:id="@+id/textView3"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_marginLeft="15dp"
|
|
|
+ android:layout_marginTop="25dp"
|
|
|
+ android:text="欢迎来到谁说"
|
|
|
+ android:textSize="25sp"
|
|
|
+ android:textStyle="bold"
|
|
|
+ android:typeface="monospace"
|
|
|
+ app:layout_constraintLeft_toLeftOf="parent"
|
|
|
+ app:layout_constraintTop_toBottomOf="@+id/app_bar_layout" />
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ android:id="@+id/textView4"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_marginLeft="15dp"
|
|
|
+ android:layout_marginTop="5dp"
|
|
|
+ android:text="请输入您的登录信息"
|
|
|
+ app:layout_constraintBottom_toTopOf="@+id/login_tel"
|
|
|
+ app:layout_constraintLeft_toLeftOf="parent"
|
|
|
+ app:layout_constraintTop_toBottomOf="@+id/textView3"
|
|
|
+ app:layout_constraintVertical_bias="0.074" />
|
|
|
+
|
|
|
+ <com.netease.nim.uikit.common.ui.widget.ClearableEditTextWithIcon
|
|
|
+ android:id="@+id/login_tel"
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_marginLeft="15dp"
|
|
|
+ android:layout_marginRight="15dp"
|
|
|
+ android:layout_marginTop="30dp"
|
|
|
+ android:background="@android:drawable/editbox_background"
|
|
|
+ android:hint="@string/please_input_tel_num"
|
|
|
+ android:maxLines="1"
|
|
|
+ android:padding="15dp"
|
|
|
+ app:layout_constraintHorizontal_bias="0.117"
|
|
|
+ app:layout_constraintLeft_toLeftOf="@+id/app_bar_layout"
|
|
|
+ app:layout_constraintRight_toRightOf="@+id/app_bar_layout"
|
|
|
+ app:layout_constraintTop_toBottomOf="@+id/app_bar_layout" />
|
|
|
+
|
|
|
+ <com.netease.nim.uikit.common.ui.widget.ClearableEditTextWithIcon
|
|
|
+ android:id="@+id/login_password"
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_marginLeft="15dp"
|
|
|
+ android:layout_marginRight="15dp"
|
|
|
+ android:layout_marginTop="20dp"
|
|
|
+ android:background="@android:drawable/editbox_background"
|
|
|
+ android:hint="@string/please_input_pwd"
|
|
|
+ android:inputType="textPassword"
|
|
|
+ android:maxLines="1"
|
|
|
+ android:padding="15dp"
|
|
|
+ app:layout_constraintHorizontal_bias="0.0"
|
|
|
+ app:layout_constraintLeft_toLeftOf="@+id/login_tel"
|
|
|
+ app:layout_constraintRight_toRightOf="@+id/login_tel"
|
|
|
+ app:layout_constraintTop_toBottomOf="@+id/login_tel" />
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ android:id="@+id/forgot_password"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_gravity="right"
|
|
|
+ android:layout_marginRight="15dp"
|
|
|
+ android:layout_marginTop="9dp"
|
|
|
+ android:text="忘记密码?"
|
|
|
+ android:visibility="gone"
|
|
|
+ android:textColor="@color/grey_light"
|
|
|
+ app:layout_constraintRight_toRightOf="@+id/login_password"
|
|
|
+ app:layout_constraintTop_toBottomOf="@+id/login_password" />
|
|
|
+
|
|
|
+ <Button
|
|
|
+ android:id="@+id/login_btn"
|
|
|
+ style="@style/NormalBtnStyle"
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_marginLeft="15dp"
|
|
|
+ android:layout_marginRight="15dp"
|
|
|
+ android:layout_marginTop="20dp"
|
|
|
+ android:text="@string/login"
|
|
|
+ app:layout_constraintHorizontal_bias="0.0"
|
|
|
+ app:layout_constraintLeft_toLeftOf="@+id/login_password"
|
|
|
+ app:layout_constraintRight_toRightOf="@+id/login_password"
|
|
|
+ app:layout_constraintTop_toBottomOf="@+id/login_password" />
|
|
|
+
|
|
|
+ <LinearLayout
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_gravity="center"
|
|
|
+ android:layout_marginTop="15dp"
|
|
|
+ android:gravity="center_vertical|center_horizontal|center"
|
|
|
+ android:orientation="horizontal">
|
|
|
+
|
|
|
+
|
|
|
+ <RadioButton
|
|
|
+ android:id="@+id/agree_radio"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_weight="1"
|
|
|
+ android:checked="true"
|
|
|
+ android:text="登录代表您已同意"
|
|
|
+ android:textColor="@color/color_grey_666666"
|
|
|
+ android:textColorLink="@color/color_green_00ae8c"
|
|
|
+ app:buttonTint="@color/color_green_00ae8c" />
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ android:id="@+id/agree_txt"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_weight="1"
|
|
|
+ android:text="《用户注册协议》"
|
|
|
+ android:textColor="@color/color_green_00ae8c" />
|
|
|
+
|
|
|
+ </LinearLayout>
|
|
|
+
|
|
|
+ </LinearLayout>
|
|
|
+
|
|
|
+ <LinearLayout
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="match_parent"
|
|
|
+ android:gravity="center"
|
|
|
+ android:orientation="horizontal"
|
|
|
+ android:layout_alignParentTop="true"
|
|
|
+ android:layout_alignParentLeft="true"
|
|
|
+ android:layout_alignParentStart="true">
|
|
|
+
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_gravity="bottom"
|
|
|
+ android:layout_marginBottom="5dp"
|
|
|
+ android:layout_weight="1"
|
|
|
+ android:text="还没有账号?"
|
|
|
+ android:textAlignment="textEnd" />
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ android:id="@+id/register_txt"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_gravity="bottom"
|
|
|
+ android:layout_marginBottom="5dp"
|
|
|
+ android:layout_weight="1"
|
|
|
+ android:text="现在注册"
|
|
|
+ android:textAlignment="textStart"
|
|
|
+ android:textColor="@color/color_green_00ae8c" />
|
|
|
+
|
|
|
+ </LinearLayout>
|
|
|
+
|
|
|
+</RelativeLayout>
|