|
@@ -1,5 +1,5 @@
|
|
|
<?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:layout_width="match_parent"
|
|
@@ -7,57 +7,119 @@
|
|
|
android:fitsSystemWindows="true"
|
|
|
tools:context="com.sheishuo.app.login.LoginAndRegActivity">
|
|
|
|
|
|
- <ImageView
|
|
|
- android:id="@+id/activity_login_an_reg_logo"
|
|
|
- android:layout_width="100dp"
|
|
|
- android:layout_height="100dp"
|
|
|
- app:srcCompat="@drawable/logo"
|
|
|
- app:layout_constraintTop_toTopOf="parent"
|
|
|
- android:layout_marginTop="64dp"
|
|
|
- android:layout_marginLeft="8dp"
|
|
|
+ <LinearLayout
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:orientation="vertical">
|
|
|
+
|
|
|
+ <ImageView
|
|
|
+ android:id="@+id/activity_login_an_reg_logo"
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="100dp"
|
|
|
+ android:layout_marginEnd="8dp"
|
|
|
+ android:layout_marginLeft="8dp"
|
|
|
+ android:layout_marginRight="8dp"
|
|
|
+ android:layout_marginStart="8dp"
|
|
|
+ android:layout_marginTop="64dp"
|
|
|
+ app:layout_constraintLeft_toLeftOf="parent"
|
|
|
+ app:layout_constraintRight_toRightOf="parent"
|
|
|
+ app:layout_constraintTop_toTopOf="parent"
|
|
|
+ app:srcCompat="@drawable/logo" />
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ android:id="@+id/tv_app_name"
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_marginEnd="8dp"
|
|
|
+ android:layout_marginLeft="8dp"
|
|
|
+ android:layout_marginRight="8dp"
|
|
|
+ android:layout_marginStart="8dp"
|
|
|
+ android:layout_marginTop="8dp"
|
|
|
+ android:text="SHEI SHUO"
|
|
|
+ android:textAlignment="center"
|
|
|
+ android:typeface="sans"
|
|
|
+ app:layout_constraintLeft_toLeftOf="@+id/activity_login_an_reg_logo"
|
|
|
+ app:layout_constraintRight_toRightOf="@+id/activity_login_an_reg_logo"
|
|
|
+ app:layout_constraintTop_toBottomOf="@+id/activity_login_an_reg_logo" />
|
|
|
+
|
|
|
+ <Button
|
|
|
+ android:id="@+id/btn_login"
|
|
|
+ style="@style/NormalBtnStyle"
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_marginLeft="20dp"
|
|
|
+ android:layout_marginRight="20dp"
|
|
|
+ android:layout_marginTop="56dp"
|
|
|
+ android:text="登录"
|
|
|
+ app:layout_constraintLeft_toLeftOf="@+id/tv_app_name"
|
|
|
+ app:layout_constraintRight_toRightOf="@+id/tv_app_name"
|
|
|
+ app:layout_constraintTop_toBottomOf="@+id/tv_app_name" />
|
|
|
+
|
|
|
+ <Button
|
|
|
+ android:id="@+id/btn_register"
|
|
|
+ style="@style/NormalBtnStyle"
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_marginLeft="20dp"
|
|
|
+ android:layout_marginRight="20dp"
|
|
|
+ android:layout_marginTop="25dp"
|
|
|
+ android:text="注册"
|
|
|
+ app:layout_constraintLeft_toLeftOf="@+id/btn_login"
|
|
|
+ app:layout_constraintRight_toRightOf="@+id/btn_login"
|
|
|
+ app:layout_constraintTop_toBottomOf="@+id/btn_login" />
|
|
|
+ </LinearLayout>
|
|
|
+
|
|
|
+ <RelativeLayout
|
|
|
+ android:id="@+id/intro_layout"
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="match_parent"
|
|
|
+ android:background="@color/GreyWhite"
|
|
|
+ app:layout_constraintBottom_toBottomOf="parent"
|
|
|
app:layout_constraintLeft_toLeftOf="parent"
|
|
|
- android:layout_marginRight="8dp"
|
|
|
- app:layout_constraintRight_toRightOf="parent" />
|
|
|
+ app:layout_constraintRight_toRightOf="parent"
|
|
|
+ app:layout_constraintTop_toTopOf="parent">
|
|
|
|
|
|
- <TextView
|
|
|
- android:id="@+id/tv_app_name"
|
|
|
- android:layout_width="wrap_content"
|
|
|
- android:layout_height="wrap_content"
|
|
|
- android:text="SHEI SHUO"
|
|
|
- android:typeface="sans"
|
|
|
- android:layout_marginLeft="8dp"
|
|
|
- app:layout_constraintLeft_toLeftOf="@+id/activity_login_an_reg_logo"
|
|
|
- android:layout_marginTop="8dp"
|
|
|
- app:layout_constraintTop_toBottomOf="@+id/activity_login_an_reg_logo"
|
|
|
- android:layout_marginRight="8dp"
|
|
|
- app:layout_constraintRight_toRightOf="@+id/activity_login_an_reg_logo" />
|
|
|
-
|
|
|
- <Button
|
|
|
- android:id="@+id/btn_login"
|
|
|
- android:layout_width="300dp"
|
|
|
- android:layout_height="wrap_content"
|
|
|
- android:text="登录"
|
|
|
- style="@style/NormalBtnStyle"
|
|
|
- android:layout_marginLeft="0dp"
|
|
|
- app:layout_constraintLeft_toLeftOf="@+id/tv_app_name"
|
|
|
- android:layout_marginRight="0dp"
|
|
|
- app:layout_constraintRight_toRightOf="@+id/tv_app_name"
|
|
|
- android:layout_marginTop="56dp"
|
|
|
- app:layout_constraintTop_toBottomOf="@+id/tv_app_name" />
|
|
|
-
|
|
|
- <Button
|
|
|
- android:id="@+id/btn_register"
|
|
|
- android:layout_width="300dp"
|
|
|
- android:layout_height="wrap_content"
|
|
|
- android:text="注册"
|
|
|
- style="@style/NormalBtnStyle"
|
|
|
- android:layout_marginLeft="8dp"
|
|
|
- app:layout_constraintLeft_toLeftOf="@+id/btn_login"
|
|
|
- android:layout_marginRight="8dp"
|
|
|
- app:layout_constraintRight_toRightOf="@+id/btn_login"
|
|
|
- android:layout_marginTop="25dp"
|
|
|
- app:layout_constraintTop_toBottomOf="@+id/btn_login" />
|
|
|
+ <android.support.v4.view.ViewPager
|
|
|
+ android:id="@+id/view_pager"
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="match_parent">
|
|
|
+
|
|
|
+ </android.support.v4.view.ViewPager>
|
|
|
+
|
|
|
+ <LinearLayout
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:gravity="right"
|
|
|
+ android:orientation="horizontal"
|
|
|
+ android:paddingRight="5dp"
|
|
|
+ android:paddingTop="5dp">
|
|
|
+
|
|
|
+ <Button
|
|
|
+ android:id="@+id/skip_btn"
|
|
|
+ android:layout_width="60dp"
|
|
|
+ android:layout_height="40dp"
|
|
|
+ android:layout_weight="0"
|
|
|
+ android:text="跳过"
|
|
|
+ android:textColor="@color/white" />
|
|
|
+
|
|
|
+ </LinearLayout>
|
|
|
+
|
|
|
+ <LinearLayout
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="match_parent"
|
|
|
+ android:gravity="bottom"
|
|
|
+ android:orientation="horizontal">
|
|
|
+
|
|
|
+ <Button
|
|
|
+ android:id="@+id/start_btn"
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="60dp"
|
|
|
+ android:layout_marginBottom="15dp"
|
|
|
+ android:background="@null"
|
|
|
+ android:elevation="11dp" />
|
|
|
+ </LinearLayout>
|
|
|
|
|
|
+ </RelativeLayout>
|
|
|
|
|
|
|
|
|
-</android.support.constraint.ConstraintLayout>
|
|
|
+</RelativeLayout>
|