|
|
@@ -5,167 +5,113 @@
|
|
|
android:layout_height="match_parent"
|
|
|
android:background="@color/colorPrimary"
|
|
|
android:fitsSystemWindows="true"
|
|
|
- android:orientation="vertical"
|
|
|
android:focusable="true"
|
|
|
- android:focusableInTouchMode="true">
|
|
|
+ android:focusableInTouchMode="true"
|
|
|
+ android:orientation="vertical">
|
|
|
<!--启用深色模式之后,需要使用fitsSystemWindows来不让布局上滑-->
|
|
|
|
|
|
<include layout="@layout/view_toolbar" />
|
|
|
<!--阴影效果android:background="?android:attr/listDivider"-->
|
|
|
|
|
|
- <FrameLayout
|
|
|
+
|
|
|
+ <com.google.android.material.textfield.TextInputLayout
|
|
|
+ style="@style/Widget.MaterialComponents.TextInputLayout.OutlinedBox"
|
|
|
android:layout_width="match_parent"
|
|
|
android:layout_height="wrap_content"
|
|
|
+ android:layout_marginStart="@dimen/margin_default"
|
|
|
android:layout_marginTop="@dimen/margin_default"
|
|
|
+ android:layout_marginEnd="@dimen/margin_default"
|
|
|
+ android:hint="请输入邮箱"
|
|
|
+ app:boxBackgroundMode="outline"
|
|
|
+ app:boxCornerRadiusBottomEnd="4dp"
|
|
|
+ app:boxCornerRadiusBottomStart="4dp"
|
|
|
+ app:boxCornerRadiusTopEnd="4dp"
|
|
|
+ app:boxCornerRadiusTopStart="4dp"
|
|
|
+ app:boxStrokeWidth="@dimen/width_stroke"
|
|
|
+ app:boxStrokeWidthFocused="@dimen/width_stroke">
|
|
|
+
|
|
|
+ <com.google.android.material.textfield.TextInputEditText
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:inputType="textEmailAddress"
|
|
|
+ android:maxLength="50"
|
|
|
+ android:paddingEnd="90dp"
|
|
|
+ android:textSize="@dimen/text_normal_s" />
|
|
|
+ </com.google.android.material.textfield.TextInputLayout>
|
|
|
+
|
|
|
+
|
|
|
+ <FrameLayout
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
android:layout_marginStart="@dimen/margin_default"
|
|
|
+ android:layout_marginTop="@dimen/margin_default"
|
|
|
android:layout_marginEnd="@dimen/margin_default">
|
|
|
+
|
|
|
<com.google.android.material.textfield.TextInputLayout
|
|
|
+ style="@style/Widget.MaterialComponents.TextInputLayout.OutlinedBox"
|
|
|
android:layout_width="match_parent"
|
|
|
+
|
|
|
android:layout_height="wrap_content"
|
|
|
- android:hint="请输入邮箱"
|
|
|
+ android:hint="请输入邮箱验证码"
|
|
|
+ android:orientation="horizontal"
|
|
|
app:boxBackgroundMode="outline"
|
|
|
app:boxCornerRadiusBottomEnd="4dp"
|
|
|
app:boxCornerRadiusBottomStart="4dp"
|
|
|
app:boxCornerRadiusTopEnd="4dp"
|
|
|
app:boxCornerRadiusTopStart="4dp"
|
|
|
app:boxStrokeWidth="@dimen/width_stroke"
|
|
|
- app:boxStrokeWidthFocused="@dimen/width_stroke"
|
|
|
- style="@style/Widget.MaterialComponents.TextInputLayout.OutlinedBox">
|
|
|
+ app:boxStrokeWidthFocused="@dimen/width_stroke">
|
|
|
|
|
|
<com.google.android.material.textfield.TextInputEditText
|
|
|
android:layout_width="match_parent"
|
|
|
android:layout_height="wrap_content"
|
|
|
- android:paddingEnd="90dp"
|
|
|
- android:textSize="@dimen/text_normal_s"
|
|
|
- android:inputType="textEmailAddress"
|
|
|
- android:maxLength="50"/>
|
|
|
+ android:digits="0123456789"
|
|
|
+ android:inputType="number"
|
|
|
+ android:maxLength="6"
|
|
|
+ android:textSize="@dimen/text_normal_s" />
|
|
|
+
|
|
|
</com.google.android.material.textfield.TextInputLayout>
|
|
|
|
|
|
<!--去除按钮阴影style="?android:attr/borderlessButtonStyle"-->
|
|
|
<!--用android.widget.Button代替Button就不会有Material风格了,当前style下Button的background无效-->
|
|
|
<android.widget.Button
|
|
|
+ style="?android:attr/borderlessButtonStyle"
|
|
|
android:layout_width="@dimen/size_image_big"
|
|
|
- android:minWidth="0dp"
|
|
|
android:layout_height="match_parent"
|
|
|
- android:textColor="@color/white"
|
|
|
- android:minHeight="0dp"
|
|
|
- android:paddingTop="@dimen/margin_ss"
|
|
|
- android:layout_marginTop="9dp"
|
|
|
- android:layout_marginBottom="@dimen/margin_ss"
|
|
|
- android:paddingBottom="@dimen/margin_ss"
|
|
|
+ android:layout_gravity="end"
|
|
|
android:layout_marginStart="@dimen/margin_ss"
|
|
|
+ android:layout_marginTop="9dp"
|
|
|
android:layout_marginEnd="@dimen/margin_ss"
|
|
|
+ android:layout_marginBottom="@dimen/margin_ss"
|
|
|
+ android:elevation="0dp"
|
|
|
+ android:minWidth="0dp"
|
|
|
+ android:minHeight="0dp"
|
|
|
android:paddingStart="@dimen/margin_ss"
|
|
|
+ android:paddingTop="@dimen/margin_ss"
|
|
|
android:paddingEnd="@dimen/margin_ss"
|
|
|
+ android:paddingBottom="@dimen/margin_ss"
|
|
|
+ android:text="获取验证码"
|
|
|
+ android:textColor="@color/green_logo"
|
|
|
android:textSize="@dimen/text_s"
|
|
|
- android:text="验证码"
|
|
|
- android:elevation="0dp"
|
|
|
- style="?android:attr/borderlessButtonStyle"
|
|
|
- android:background="@drawable/selector_btn"
|
|
|
- android:layout_gravity="end"/>
|
|
|
+ android:textStyle="bold" />
|
|
|
</FrameLayout>
|
|
|
|
|
|
-
|
|
|
- <com.google.android.material.textfield.TextInputLayout
|
|
|
+ <android.widget.Button
|
|
|
+ android:id="@+id/btn_next"
|
|
|
android:layout_width="match_parent"
|
|
|
android:layout_height="wrap_content"
|
|
|
- android:layout_marginStart="@dimen/margin_default"
|
|
|
- android:layout_marginEnd="@dimen/margin_default"
|
|
|
+ android:minHeight="0dp"
|
|
|
android:layout_marginTop="@dimen/margin_default"
|
|
|
- android:hint="请输入邮箱验证码"
|
|
|
- app:boxBackgroundMode="outline"
|
|
|
- app:boxCornerRadiusBottomEnd="4dp"
|
|
|
- app:boxCornerRadiusBottomStart="4dp"
|
|
|
- app:boxCornerRadiusTopEnd="4dp"
|
|
|
- app:boxCornerRadiusTopStart="4dp"
|
|
|
- app:boxStrokeWidth="@dimen/width_stroke"
|
|
|
- app:boxStrokeWidthFocused="@dimen/width_stroke"
|
|
|
- style="@style/Widget.MaterialComponents.TextInputLayout.OutlinedBox"
|
|
|
- android:orientation="horizontal">
|
|
|
-
|
|
|
- <com.google.android.material.textfield.TextInputEditText
|
|
|
- android:layout_width="match_parent"
|
|
|
- android:layout_height="wrap_content"
|
|
|
- android:inputType="number"
|
|
|
- android:digits="0123456789"
|
|
|
- android:textSize="@dimen/text_normal_s"
|
|
|
- android:maxLength="6"/>
|
|
|
-
|
|
|
- </com.google.android.material.textfield.TextInputLayout>
|
|
|
-
|
|
|
- <com.google.android.material.textfield.TextInputLayout
|
|
|
- android:layout_width="match_parent"
|
|
|
- android:layout_height="wrap_content"
|
|
|
android:layout_marginStart="@dimen/margin_default"
|
|
|
android:layout_marginEnd="@dimen/margin_default"
|
|
|
- android:layout_marginTop="@dimen/margin_default"
|
|
|
- android:hint="请设置密码"
|
|
|
- app:boxBackgroundMode="outline"
|
|
|
- app:boxCornerRadiusBottomEnd="4dp"
|
|
|
- app:boxCornerRadiusBottomStart="4dp"
|
|
|
- app:boxCornerRadiusTopEnd="4dp"
|
|
|
- app:boxCornerRadiusTopStart="4dp"
|
|
|
- app:boxStrokeWidth="@dimen/width_stroke"
|
|
|
- app:boxStrokeWidthFocused="@dimen/width_stroke"
|
|
|
- style="@style/Widget.MaterialComponents.TextInputLayout.OutlinedBox">
|
|
|
-
|
|
|
- <com.google.android.material.textfield.TextInputEditText
|
|
|
- android:layout_width="match_parent"
|
|
|
- android:layout_height="wrap_content"
|
|
|
- android:inputType="textPassword"
|
|
|
- android:textSize="@dimen/text_normal_s"
|
|
|
- android:maxLength="20"/>
|
|
|
-
|
|
|
- </com.google.android.material.textfield.TextInputLayout>
|
|
|
+ android:paddingTop="@dimen/padding_full_width"
|
|
|
+ android:paddingBottom="@dimen/padding_full_width"
|
|
|
+ android:text="下一步 完善提现信息"
|
|
|
+ android:textColor="@color/white"
|
|
|
+ android:textStyle="bold"
|
|
|
+ android:background="@drawable/selector_btn"
|
|
|
+ style="?android:attr/borderlessButtonStyle"/>
|
|
|
|
|
|
|
|
|
|
|
|
-
|
|
|
- <com.google.android.material.textfield.TextInputLayout
|
|
|
- android:layout_width="match_parent"
|
|
|
- android:layout_height="wrap_content"
|
|
|
- android:layout_marginStart="@dimen/margin_default"
|
|
|
- android:layout_marginEnd="@dimen/margin_default"
|
|
|
- android:layout_marginTop="@dimen/margin_default"
|
|
|
- android:hint="请输入昵称"
|
|
|
- app:boxBackgroundMode="outline"
|
|
|
- app:boxCornerRadiusBottomEnd="4dp"
|
|
|
- app:boxCornerRadiusBottomStart="4dp"
|
|
|
- app:boxCornerRadiusTopEnd="4dp"
|
|
|
- app:boxCornerRadiusTopStart="4dp"
|
|
|
- app:boxStrokeWidth="@dimen/width_stroke"
|
|
|
- app:boxStrokeWidthFocused="@dimen/width_stroke"
|
|
|
- style="@style/Widget.MaterialComponents.TextInputLayout.OutlinedBox">
|
|
|
-
|
|
|
- <com.google.android.material.textfield.TextInputEditText
|
|
|
- android:layout_width="match_parent"
|
|
|
- android:layout_height="wrap_content"
|
|
|
- android:textSize="@dimen/text_normal_s"
|
|
|
- android:inputType="textEmailAddress"
|
|
|
- android:maxLength="50"/>
|
|
|
- </com.google.android.material.textfield.TextInputLayout>
|
|
|
-
|
|
|
- <com.google.android.material.textfield.TextInputLayout
|
|
|
- android:layout_width="match_parent"
|
|
|
- android:layout_height="wrap_content"
|
|
|
- android:layout_marginStart="@dimen/margin_default"
|
|
|
- android:layout_marginEnd="@dimen/margin_default"
|
|
|
- android:layout_marginTop="@dimen/margin_default"
|
|
|
- android:hint="请输入提现账号(目前仅支持支付宝)"
|
|
|
- app:boxBackgroundMode="outline"
|
|
|
- app:boxCornerRadiusBottomEnd="4dp"
|
|
|
- app:boxCornerRadiusBottomStart="4dp"
|
|
|
- app:boxCornerRadiusTopEnd="4dp"
|
|
|
- app:boxCornerRadiusTopStart="4dp"
|
|
|
- app:boxStrokeWidth="@dimen/width_stroke"
|
|
|
- app:boxStrokeWidthFocused="@dimen/width_stroke"
|
|
|
- style="@style/Widget.MaterialComponents.TextInputLayout.OutlinedBox">
|
|
|
-
|
|
|
- <com.google.android.material.textfield.TextInputEditText
|
|
|
- android:layout_width="match_parent"
|
|
|
- android:layout_height="wrap_content"
|
|
|
- android:textSize="@dimen/text_normal_s"
|
|
|
- android:inputType="textEmailAddress"
|
|
|
- android:maxLength="50"/>
|
|
|
- </com.google.android.material.textfield.TextInputLayout>
|
|
|
</LinearLayout>
|