123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153 |
- <?xml version="1.0" encoding="utf-8"?>
- <android.support.design.widget.CoordinatorLayout 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:fitsSystemWindows="true">
- <android.support.design.widget.AppBarLayout
- android:id="@+id/appBarLayout"
- android:layout_width="match_parent"
- android:layout_height="240dp"
- android:fitsSystemWindows="true"
- android:theme="@style/AppTheme.AppBarOverlay">
- <android.support.design.widget.CollapsingToolbarLayout
- android:id="@+id/toolbarLayout"
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:fitsSystemWindows="true"
- app:contentScrim="?attr/colorPrimary"
- app:layout_scrollFlags="scroll|exitUntilCollapsed">
- <ImageView
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:layout_margin="48dp"
- android:fitsSystemWindows="true"
- android:scaleType="fitCenter"
- android:src="@drawable/ic_launcher_white_128"
- app:layout_collapseMode="parallax" />
- <android.support.v7.widget.Toolbar
- android:id="@+id/toolbar"
- android:layout_width="match_parent"
- android:layout_height="?attr/actionBarSize"
- app:layout_collapseMode="pin" />
- </android.support.design.widget.CollapsingToolbarLayout>
- </android.support.design.widget.AppBarLayout>
- <android.support.v4.widget.NestedScrollView
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- app:layout_behavior="@string/appbar_scrolling_view_behavior">
- <RelativeLayout
- android:layout_width="match_parent"
- android:layout_height="wrap_content">
- <android.support.v7.widget.CardView
- android:id="@+id/cardView"
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:layout_margin="24dp"
- app:cardBackgroundColor="@color/white"
- app:cardCornerRadius="5dp"
- app:cardPreventCornerOverlap="true"
- app:cardUseCompatPadding="true">
- <RelativeLayout
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:padding="24dp">
- <android.support.design.widget.TextInputLayout
- android:id="@+id/usernameLayout"
- android:layout_width="match_parent"
- android:layout_height="wrap_content">
- <cn.minbb.evaluation.views.ClearTextInputEditText
- android:id="@+id/username"
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:drawableLeft="@drawable/ic_action_person_dark"
- android:hint="用户名" />
- </android.support.design.widget.TextInputLayout>
- <android.support.design.widget.TextInputLayout
- android:id="@+id/passwordLayout"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:layout_below="@id/usernameLayout">
- <cn.minbb.evaluation.views.ClearTextInputEditText
- android:id="@+id/password"
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:layout_below="@id/usernameLayout"
- android:drawableLeft="@drawable/ic_action_lock_dark"
- android:hint="密码"
- android:inputType="textPassword" />
- </android.support.design.widget.TextInputLayout>
- <android.support.design.widget.TextInputLayout
- android:id="@+id/repeatPasswordLayout"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:layout_below="@id/passwordLayout">
- <cn.minbb.evaluation.views.ClearTextInputEditText
- android:id="@+id/repeatPassword"
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:layout_below="@id/usernameLayout"
- android:drawableLeft="@drawable/ic_action_lock_dark"
- android:hint="重复密码"
- android:inputType="textPassword" />
- </android.support.design.widget.TextInputLayout>
- <CheckBox
- android:id="@+id/alreadyRead"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_below="@id/repeatPasswordLayout"
- android:layout_marginTop="20dp"
- android:checked="false"
- android:text="我已阅读" />
- <TextView
- android:id="@+id/userInstructions"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_alignBaseline="@+id/alreadyRead"
- android:layout_toRightOf="@id/alreadyRead"
- android:background="@color/text_gray_background_selector"
- android:text="《用户须知》"
- android:textColor="@android:color/holo_blue_dark" />
- </RelativeLayout>
- </android.support.v7.widget.CardView>
- <android.support.design.widget.FloatingActionButton
- android:id="@+id/register"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_alignBaseline="@id/cardView"
- android:layout_alignBottom="@id/cardView"
- android:layout_alignParentRight="true"
- android:layout_marginBottom="36dp"
- android:layout_marginRight="6dp"
- android:rotation="180"
- app:srcCompat="@drawable/ic_arrow_back_white_24dp" />
- </RelativeLayout>
- </android.support.v4.widget.NestedScrollView>
- </android.support.design.widget.CoordinatorLayout>
|