2020-05-17 12:40:10 +00:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
|
|
|
<androidx.coordinatorlayout.widget.CoordinatorLayout style="@style/UiKit.ViewGroup.Page"
|
|
|
|
xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto">
|
|
|
|
<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:gravity="center" 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" android:layout_toStartOf="@id/settings_account_verification_resend" style="@style/UiKit.TextView.Semibold" />
|
2020-09-02 04:07:20 +00:00
|
|
|
<com.google.android.material.button.MaterialButton android:textSize="@dimen/uikit_textsize_small" android:id="@id/settings_account_verification_resend" android:layout_width="wrap_content" android:minHeight="0.0dip" android:text="@string/verify_account" android:layout_centerVertical="true" android:layout_marginStart="8.0dip" android:layout_alignParentEnd="true" style="@style/UiKit.Material.Button.White.Outline" />
|
2020-05-17 12:40:10 +00:00
|
|
|
</RelativeLayout>
|
2020-09-02 04:07:20 +00:00
|
|
|
<RelativeLayout android:background="?primary_630" android:paddingTop="32.0dip" android:paddingBottom="16.0dip" style="@style/UiKit.ViewGroup.RelativeLayout">
|
|
|
|
<LinearLayout android:gravity="center_vertical" android:id="@id/settings_account_avatar_wrap" android:layout_marginLeft="16.0dip" android:layout_marginRight="16.0dip" android:layout_marginBottom="8.0dip" style="@style/UiKit.ViewGroup.LinearLayout.Horizontal">
|
2020-08-26 17:47:03 +00:00
|
|
|
<FrameLayout android:id="@id/settings_account_avatar_container" android:background="?selectableItemBackgroundBorderless" android:layout_width="wrap_content" android:layout_height="wrap_content" android:contentDescription="@string/change_avatar">
|
2020-05-17 12:40:10 +00:00
|
|
|
<com.facebook.drawee.view.SimpleDraweeView android:id="@id/settings_account_avatar" app:roundWithOverlayColor="?primary_630" style="@style/Avatar.Large.ExtraAccount" />
|
|
|
|
<ImageView android:layout_gravity="center|right|top" android:id="@id/settings_account_avatar_edit" android:background="@drawable/drawable_circle_white_1" android:layout_width="24.0dip" android:layout_height="24.0dip" android:src="@drawable/ic_upload_image_34dp" android:scaleType="center" />
|
|
|
|
</FrameLayout>
|
2020-09-02 04:07:20 +00:00
|
|
|
<LinearLayout android:layout_marginStart="8.0dip" style="@style/UiKit.ViewGroup.LinearLayout">
|
2020-05-17 12:40:10 +00:00
|
|
|
<TextView android:id="@id/settings_account_tag" style="@style/UiKit.TextView.Large.SingleLine" />
|
|
|
|
<TextView android:textColor="?primary_400" android:id="@id/settings_account_email" style="@style/UiKit.TextView" />
|
2020-09-02 04:07:20 +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:layout_marginTop="4.0dip" android:text="@string/remove_icon" style="@style/UiKit.TextView.Semibold" />
|
2020-05-17 12:40:10 +00:00
|
|
|
</LinearLayout>
|
|
|
|
</LinearLayout>
|
2020-09-02 04:07:20 +00:00
|
|
|
<LinearLayout android:paddingLeft="16.0dip" android:paddingRight="16.0dip" android:weightSum="2.0" android:layout_below="@id/settings_account_avatar_wrap" style="@style/UiKit.ViewGroup.LinearLayout.Horizontal">
|
2020-05-17 12:40:10 +00:00
|
|
|
<com.google.android.material.button.MaterialButton android:ellipsize="end" android:id="@id/settings_account_edit" android:layout_width="0.0dip" android:text="@string/user_settings_edit_account" android:maxLines="1" android:layout_weight="1.0" style="@style/UiKit.Material.Button" />
|
2020-09-02 04:07:20 +00:00
|
|
|
<com.google.android.material.button.MaterialButton android:ellipsize="end" android:id="@id/settings_account_change_password" android:layout_width="0.0dip" android:layout_marginLeft="8.0dip" android:text="@string/change_password" android:maxLines="1" android:layout_weight="1.0" style="@style/UiKit.Material.Button.Secondary" />
|
2020-05-17 12:40:10 +00:00
|
|
|
</LinearLayout>
|
|
|
|
</RelativeLayout>
|
|
|
|
<View style="@style/UiKit.Divider" />
|
|
|
|
<LinearLayout android:id="@id/settings_account_mfa_container" style="@style/UiKit.ViewGroup.LinearLayout">
|
|
|
|
<LinearLayout style="@style/UiKit.ViewGroup.LinearLayout.Horizontal">
|
|
|
|
<TextView android:layout_width="0.0dip" android:text="@string/two_fa" android:layout_weight="1.0" style="@style/UiKit.Settings.Item.Header" />
|
2020-09-16 23:45:23 +00:00
|
|
|
<TextView android:textColor="@color/status_green_500" android:id="@id/settings_account_mfa_enabled_header" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="@string/user_settings_mfa_enabled" android:textAllCaps="true" android:layout_marginEnd="16.0dip" app:drawableStartCompat="@drawable/ic_small_lock_green_24dp" style="@style/UiKit.TextView.Semibold" />
|
2020-05-17 12:40:10 +00:00
|
|
|
</LinearLayout>
|
|
|
|
<com.discord.app.AppViewFlipper android:id="@id/settings_account_mfa_flipper" android:layout_width="fill_parent" android:layout_height="wrap_content">
|
|
|
|
<LinearLayout android:id="@id/settings_account_mfa_enabled_container" style="@style/UiKit.ViewGroup.LinearLayout">
|
2020-09-16 23:45:23 +00:00
|
|
|
<TextView android:id="@id/settings_account_view_backup_codes" android:text="@string/two_fa_view_backup_codes" app:drawableEndCompat="?ic_navigate_next" style="@style/UiKit.Settings.Item" />
|
2020-05-17 12:40:10 +00:00
|
|
|
<TextView android:id="@id/settings_account_remove_two_fa" android:text="@string/two_fa_remove" style="@style/UiKit.Settings.Item" />
|
|
|
|
<com.discord.views.CheckedSetting android:id="@id/settings_account_sms_backup" app:cs_subtext="@string/mfa_sms_auth_sales_pitch" app:cs_text="@string/mfa_sms_auth" app:cs_view_type="switchview" style="@style/UiKit.CheckedSetting.Themed" />
|
2020-09-02 04:07:20 +00:00
|
|
|
<TextView android:id="@id/settings_account_sms_phone" android:layout_marginLeft="16.0dip" android:layout_marginRight="16.0dip" android:layout_marginBottom="8.0dip" style="@style/UiKit.TextView" />
|
2020-05-17 12:40:10 +00:00
|
|
|
</LinearLayout>
|
2020-09-02 04:07:20 +00:00
|
|
|
<LinearLayout android:gravity="center" android:id="@id/settings_account_mfa_disabled_container" android:layout_marginBottom="8.0dip" style="@style/UiKit.ViewGroup.LinearLayout">
|
2020-05-17 12:40:10 +00:00
|
|
|
<com.airbnb.lottie.LottieAnimationView android:id="@id/settings_account_mfa_lottie" android:visibility="gone" android:layout_width="110.0dip" android:layout_height="118.0dip" app:lottie_autoPlay="true" app:lottie_fileName="animations/anim_verify_by_phone.json" app:lottie_loop="true" />
|
|
|
|
<TextView android:id="@id/settings_account_mfa_sales_pitch" android:visibility="gone" android:text="@string/two_fa_sales_pitch" style="@style/UiKit.Settings.Item.SubText" />
|
2020-09-02 04:07:20 +00:00
|
|
|
<com.google.android.material.button.MaterialButton android:id="@id/settings_account_mfa_enable" android:visibility="gone" android:layout_marginLeft="8.0dip" android:layout_marginRight="8.0dip" android:text="@string/two_fa_enable" style="@style/UiKit.Material.Button.Secondary" />
|
2020-05-17 12:40:10 +00:00
|
|
|
</LinearLayout>
|
|
|
|
</com.discord.app.AppViewFlipper>
|
|
|
|
</LinearLayout>
|
|
|
|
<View style="@style/UiKit.Divider" />
|
2020-09-16 23:45:23 +00:00
|
|
|
<TextView android:textColor="?primary_100" android:id="@id/settings_blocked_users" android:text="@string/user_settings_blocked_users" app:drawableEndCompat="?ic_navigate_next" style="@style/UiKit.Settings.Item" />
|
2020-05-17 12:40:10 +00:00
|
|
|
<View style="@style/UiKit.Divider" />
|
|
|
|
<TextView android:text="@string/account_management" style="@style/UiKit.Settings.Item.Header" />
|
|
|
|
<LinearLayout android:id="@id/settings_account_private_data_wrap" style="@style/UiKit.ViewGroup.LinearLayout">
|
|
|
|
<TextView android:textColor="?primary_100" 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>
|
|
|
|
</LinearLayout>
|
|
|
|
</androidx.core.widget.NestedScrollView>
|
|
|
|
<com.google.android.material.floatingactionbutton.FloatingActionButton android:id="@id/settings_account_save" style="@style/Settings.FloatingActionButton.Save" />
|
|
|
|
<com.discord.utilities.dimmer.DimmerView style="@style/UiKit.DimmerView" />
|
|
|
|
</androidx.coordinatorlayout.widget.CoordinatorLayout>
|