22 lines
4.5 KiB
XML
22 lines
4.5 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<androidx.coordinatorlayout.widget.CoordinatorLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" android:background="?attr/auth_ptrn" style="@style/UiKit_ViewGroup_Page">
|
|
<include layout="@layout/widget_auth_header"/>
|
|
<androidx.core.widget.NestedScrollView android:paddingLeft="8dp" android:paddingRight="8dp" android:paddingBottom="8dp" style="@style/UiKit_ViewGroup_NestedScrollView_AppBarScrollingViewBehavior">
|
|
<LinearLayout android:orientation="vertical" android:paddingLeft="8dp" android:paddingRight="8dp" android:layout_width="match_parent" android:layout_height="match_parent">
|
|
<com.discord.views.ScreenTitleView android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_marginTop="16dp" android:layout_marginBottom="24dp" app:stv_title="@string/register"/>
|
|
<TextView android:textAppearance="@style/UiKit_TextAppearance_ListItem_Label" android:textSize="@dimen/uikit_textsize_small" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginBottom="8dp" android:text="@string/form_placeholder_username"/>
|
|
<com.google.android.material.textfield.TextInputLayout android:id="@+id/auth_register_account_information_username_wrap" android:layout_marginBottom="8dp" android:hint="@string/form_label_username" app:endIconMode="2" style="@style/UiKit_TextInputLayout">
|
|
<com.google.android.material.textfield.TextInputEditText android:nextFocusForward="@+id/auth_register_account_information_password_wrap" style="@style/UiKit_TextInputLayout_EditText_SingleLine_Username"/>
|
|
</com.google.android.material.textfield.TextInputLayout>
|
|
<TextView android:textAppearance="@style/UiKit_TextView" android:textSize="@dimen/uikit_textsize_small" android:textColor="?attr/colorTextMuted" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="@string/register_username_hint"/>
|
|
<com.google.android.material.textfield.TextInputLayout android:id="@+id/auth_register_account_information_password_wrap" android:layout_marginTop="16dp" android:layout_marginBottom="8dp" android:hint="@string/form_label_password" style="@style/UiKit_TextInputLayout_Password">
|
|
<com.google.android.material.textfield.TextInputEditText android:imeOptions="actionDone" style="@style/UiKit_TextInputLayout_EditText_SingleLine_Password"/>
|
|
</com.google.android.material.textfield.TextInputLayout>
|
|
<androidx.constraintlayout.widget.ConstraintLayout android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_marginBottom="16dp" style="@style/UiKit_ViewGroup">
|
|
<com.google.android.material.checkbox.MaterialCheckBox android:id="@+id/auth_tos_opt_in" android:layout_width="wrap_content" app:layout_constraintBottom_toBottomOf="0" app:layout_constraintEnd_toStartOf="@+id/auth_policy_links" app:layout_constraintLeft_toLeftOf="0" app:layout_constraintRight_toLeftOf="@+id/auth_policy_links" app:layout_constraintStart_toStartOf="0" app:layout_constraintTop_toTopOf="0" app:layout_constraintVertical_bias="0.5" style="@style/UiKit_Checkbox"/>
|
|
<com.discord.utilities.view.text.LinkifiedTextView android:textSize="@dimen/uikit_textsize_small" android:textColor="?attr/colorHeaderSecondary" android:id="@+id/auth_policy_links" android:visibility="visible" android:layout_width="0dp" android:lineSpacingMultiplier="1" app:layout_constraintBottom_toBottomOf="0" app:layout_constraintEnd_toEndOf="0" app:layout_constraintLeft_toRightOf="@+id/auth_tos_opt_in" app:layout_constraintRight_toRightOf="0" app:layout_constraintStart_toEndOf="@+id/auth_tos_opt_in" app:layout_constraintTop_toTopOf="0" app:layout_constraintVertical_bias="0.5" app:layout_goneMarginLeft="8dp" app:layout_goneMarginStart="8dp" style="@style/UiKit_TextView"/>
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
|
<com.discord.views.LoadingButton android:id="@+id/auth_register_account_information_button" android:layout_width="match_parent" android:layout_height="wrap_content" android:text="@string/next" app:lb_disable_elevation="true" app:lb_padding_bottom="18dp" app:lb_padding_top="18dp" app:lb_progress_color="@color/white" app:lb_text_color="@color/uikit_btn_text_color_selector" app:lb_text_size="@dimen/uikit_textsize_large"/>
|
|
</LinearLayout>
|
|
</androidx.core.widget.NestedScrollView>
|
|
</androidx.coordinatorlayout.widget.CoordinatorLayout>
|