2019-02-04 20:05:16 +00:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
2019-02-04 20:08:30 +00:00
|
|
|
<androidx.coordinatorlayout.widget.CoordinatorLayout style="@style/UiKit.ViewGroup.Page"
|
2019-02-04 20:05:16 +00:00
|
|
|
xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto">
|
2019-02-04 20:08:30 +00:00
|
|
|
<com.google.android.material.appbar.AppBarLayout style="@style/AppTheme.AppBarLayout.Flat">
|
|
|
|
<androidx.appcompat.widget.Toolbar style="@style/AppTheme.Toolbar" />
|
|
|
|
</com.google.android.material.appbar.AppBarLayout>
|
|
|
|
<androidx.core.widget.NestedScrollView android:id="@id/settings_account_scroll" style="@style/UiKit.ViewGroup.NestedScrollView.AppBarScrollingViewBehavior">
|
|
|
|
<LinearLayout android:paddingBottom="@dimen/padding_bottom_fab_screen" android:animateLayoutChanges="true" style="@style/UiKit.ViewGroup.LinearLayout">
|
|
|
|
<RelativeLayout android:id="@id/settings_account_verification" android:background="@color/status_red_500" android:visibility="gone" style="@style/UiKit.ViewGroup.RelativeLayout">
|
|
|
|
<TextView android:textSize="@dimen/uikit_textsize_small" android:textColor="@color/primary_100" android:text="@string/unverified_account_title" android:layout_centerInParent="true" style="@style/UiKit.TextView.Semibold" />
|
|
|
|
<TextView android:textSize="@dimen/uikit_textsize_small" android:textColor="@color/primary_100" android:id="@id/settings_account_verification_resend" android:background="@drawable/drawable_button_white" android:paddingLeft="12.0dip" android:paddingTop="@dimen/uikit_spacing_small" android:paddingRight="12.0dip" android:paddingBottom="@dimen/uikit_spacing_small" android:layout_margin="@dimen/uikit_spacing_medium" android:text="@string/verify_account" android:layout_alignParentRight="true" android:layout_centerVertical="true" android:layout_alignParentEnd="true" style="@style/UiKit.TextView" />
|
2019-02-04 20:05:16 +00:00
|
|
|
</RelativeLayout>
|
2019-02-04 20:08:30 +00:00
|
|
|
<RelativeLayout android:background="?primary_630" android:paddingTop="@dimen/uikit_spacing_xlarge" android:paddingBottom="@dimen/uikit_spacing_large" style="@style/UiKit.ViewGroup.RelativeLayout">
|
|
|
|
<LinearLayout android:gravity="center_horizontal" android:id="@id/settings_account_avatar_wrap" style="@style/UiKit.ViewGroup.LinearLayout">
|
|
|
|
<RelativeLayout android:background="@drawable/drawable_circle_white_5" android:layout_width="wrap_content" android:layout_height="wrap_content">
|
|
|
|
<com.facebook.drawee.view.SimpleDraweeView android:id="@id/settings_account_avatar" app:roundWithOverlayColor="?primary_630" style="@style/Avatar.Hero" />
|
2019-02-04 20:05:16 +00:00
|
|
|
</RelativeLayout>
|
2019-02-04 20:08:30 +00:00
|
|
|
<TextView android:textSize="@dimen/uikit_textsize_small" android:textColor="@color/purple_brand" android:id="@id/settings_account_remove_avatar" android:background="?selectableItemBackground" android:padding="@dimen/uikit_spacing_medium" android:layout_marginTop="@dimen/uikit_spacing_small" android:text="@string/remove" style="@style/UiKit.TextView.Semibold" />
|
2019-02-04 20:05:16 +00:00
|
|
|
</LinearLayout>
|
|
|
|
</RelativeLayout>
|
2019-02-04 20:08:30 +00:00
|
|
|
<View style="@style/UiKit.Divider" />
|
|
|
|
<com.google.android.material.textfield.TextInputLayout android:paddingLeft="@dimen/uikit_spacing_large" android:paddingRight="@dimen/uikit_spacing_large" style="@style/UiKit.Form.Field.EditText.Wrap">
|
|
|
|
<androidx.appcompat.widget.AppCompatEditText android:id="@id/settings_account_username" android:hint="@string/username" android:inputType="textPersonName" style="@style/UiKit.Form.Field.EditText.SingleLine" />
|
|
|
|
</com.google.android.material.textfield.TextInputLayout>
|
|
|
|
<View style="@style/UiKit.Settings.Divider" />
|
|
|
|
<TextView android:textColor="@color/status_orange_500" android:id="@id/settings_account_claim_btn" android:visibility="gone" android:text="@string/claim_account" android:drawableRight="@drawable/ic_chevron_right_grey_12dp" android:drawableEnd="@drawable/ic_chevron_right_grey_12dp" style="@style/UiKit.Settings.Item.Header" />
|
|
|
|
<LinearLayout android:id="@id/settings_account_credentials_wrap" style="@style/UiKit.ViewGroup.LinearLayout">
|
|
|
|
<com.google.android.material.textfield.TextInputLayout android:paddingLeft="@dimen/uikit_spacing_large" android:paddingRight="@dimen/uikit_spacing_large" style="@style/UiKit.Form.Field.EditText.Wrap">
|
|
|
|
<androidx.appcompat.widget.AppCompatEditText android:id="@id/settings_account_email" android:hint="@string/form_label_email" android:inputType="textEmailAddress" style="@style/UiKit.Form.Field.EditText.SingleLine" />
|
|
|
|
</com.google.android.material.textfield.TextInputLayout>
|
|
|
|
<com.google.android.material.textfield.TextInputLayout android:id="@id/settings_account_password_wrap" android:paddingLeft="@dimen/uikit_spacing_large" android:paddingRight="@dimen/uikit_spacing_large" style="@style/UiKit.Form.Field.EditText.Wrap">
|
|
|
|
<androidx.appcompat.widget.AppCompatEditText android:id="@id/settings_account_password" android:hint="@string/form_label_current_password" android:inputType="textPassword" style="@style/UiKit.Form.Field.EditText.SingleLine" />
|
|
|
|
</com.google.android.material.textfield.TextInputLayout>
|
|
|
|
<View style="@style/UiKit.Settings.Divider" />
|
|
|
|
<TextView android:id="@id/settings_account_change_password" android:text="@string/change_password" android:drawableRight="@drawable/ic_chevron_right_grey_12dp" android:drawableEnd="@drawable/ic_chevron_right_grey_12dp" style="@style/UiKit.Settings.Item.Header" />
|
|
|
|
</LinearLayout>
|
|
|
|
<View style="@style/UiKit.Divider" />
|
|
|
|
<TextView android:id="@id/settings_account_private_data_header" android:focusable="true" android:focusableInTouchMode="false" android:clickable="true" android:text="@string/account_management" android:drawableRight="?ic_plus_a60" android:drawableEnd="?ic_plus_a60" style="@style/UiKit.Settings.Item.Header" />
|
|
|
|
<LinearLayout android:id="@id/settings_account_private_data_wrap" android:visibility="gone" style="@style/UiKit.ViewGroup.LinearLayout">
|
|
|
|
<TextView android:textColor="@color/status_red_500" android:id="@id/settings_account_private_data_disable" android:text="@string/disable_account" style="@style/UiKit.Settings.Item" />
|
|
|
|
<TextView android:textColor="@color/status_red_500" android:id="@id/settings_account_private_data_delete" android:text="@string/delete_account" style="@style/UiKit.Settings.Item" />
|
|
|
|
</LinearLayout>
|
2019-02-04 20:05:16 +00:00
|
|
|
</LinearLayout>
|
2019-02-04 20:08:30 +00:00
|
|
|
</androidx.core.widget.NestedScrollView>
|
|
|
|
<com.discord.utilities.dimmer.DimmerView style="@style/UiKit.DimmerView" />
|
|
|
|
<com.google.android.material.floatingactionbutton.FloatingActionButton android:id="@id/settings_account_save" style="@style/Settings.FloatingActionButton.Save" />
|
|
|
|
</androidx.coordinatorlayout.widget.CoordinatorLayout>
|