apkfuckery/com.discord/res/layout-v22/widget_settings_account.xml

62 lines
9.6 KiB
XML
Raw Normal View History

2019-02-04 20:08:30 +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: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" />
</RelativeLayout>
2019-02-17 02:24:41 +00:00
<RelativeLayout android:background="?primary_630" android:paddingTop="@dimen/uikit_spacing_xxlarge" android:paddingBottom="@dimen/uikit_spacing_large" style="@style/UiKit.ViewGroup.RelativeLayout">
<LinearLayout android:gravity="center_vertical" android:id="@id/settings_account_avatar_wrap" android:layout_marginLeft="@dimen/uikit_spacing_large" android:layout_marginRight="@dimen/uikit_spacing_large" android:layout_marginBottom="@dimen/uikit_spacing_medium" style="@style/UiKit.ViewGroup.LinearLayout.Horizontal">
<FrameLayout android:id="@id/settings_account_avatar_container" android:background="?selectableItemBackgroundBorderless" 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.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>
<LinearLayout android:layout_marginLeft="@dimen/uikit_spacing_medium" android:layout_marginStart="@dimen/uikit_spacing_medium" style="@style/UiKit.ViewGroup.LinearLayout">
<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" />
<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="@dimen/uikit_spacing_small" android:text="@string/remove_icon" style="@style/UiKit.TextView.Semibold" />
</LinearLayout>
</LinearLayout>
<LinearLayout android:paddingLeft="@dimen/uikit_spacing_large" android:paddingRight="@dimen/uikit_spacing_large" android:weightSum="2.0" android:layout_below="@id/settings_account_avatar_wrap" style="@style/UiKit.ViewGroup.LinearLayout.Horizontal">
<Button 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.Button" />
<Button android:ellipsize="end" android:id="@id/settings_account_change_password" android:layout_width="0.0dip" android:text="@string/change_password" android:maxLines="1" android:layout_weight="1.0" style="@style/UiKit.Button.Grey" />
2019-02-04 20:08:30 +00:00
</LinearLayout>
</RelativeLayout>
<View style="@style/UiKit.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" android:drawableTint="@color/status_orange_500" style="@style/UiKit.Settings.Item.Header" />
2019-02-17 02:24:41 +00:00
<View style="@style/UiKit.Divider" />
2019-02-21 02:16:48 +00:00
<LinearLayout android:id="@id/settings_account_mfa_container" style="@style/UiKit.ViewGroup.LinearLayout">
2019-04-10 00:07:03 +00:00
<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" />
<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:layout_marginRight="@dimen/uikit_spacing_large" android:text="@string/user_settings_mfa_enabled" android:drawableLeft="@drawable/ic_small_lock_green_24dp" android:textAllCaps="true" android:drawableStart="@drawable/ic_small_lock_green_24dp" android:layout_marginEnd="@dimen/uikit_spacing_large" style="@style/UiKit.TextView.Semibold" />
</LinearLayout>
2019-02-21 02:16:48 +00:00
<com.discord.app.AppViewFlipper android:id="@id/settings_account_mfa_flipper" android:layout_width="fill_parent" android:layout_height="wrap_content">
2019-02-22 00:19:04 +00:00
<LinearLayout android:id="@id/settings_account_mfa_enabled_container" style="@style/UiKit.ViewGroup.LinearLayout">
2019-02-21 02:16:48 +00:00
<TextView android:id="@id/settings_account_view_backup_codes" android:text="@string/two_fa_view_backup_codes" android:drawableRight="@drawable/ic_chevron_right_grey_24dp" android:drawableEnd="@drawable/ic_chevron_right_grey_24dp" style="@style/UiKit.Settings.Item" />
<TextView android:id="@id/settings_account_remove_two_fa" android:text="@string/two_fa_remove" style="@style/UiKit.Settings.Item" />
2019-04-03 00:06:05 +00:00
<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" />
<TextView android:id="@id/settings_account_sms_phone" android:layout_marginLeft="@dimen/uikit_spacing_large" android:layout_marginRight="@dimen/uikit_spacing_large" android:layout_marginBottom="@dimen/uikit_spacing_medium" style="@style/UiKit.TextView" />
2019-02-21 02:16:48 +00:00
</LinearLayout>
2019-02-22 00:19:04 +00:00
<LinearLayout android:gravity="center" android:id="@id/settings_account_mfa_disabled_container" android:layout_marginBottom="@dimen/uikit_spacing_medium" style="@style/UiKit.ViewGroup.LinearLayout">
2019-02-21 02:16:48 +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" />
<Button android:id="@id/settings_account_mfa_enable" android:visibility="gone" android:layout_marginLeft="@dimen/uikit_spacing_medium" android:layout_marginRight="@dimen/uikit_spacing_medium" android:text="@string/two_fa_enable" style="@style/UiKit.Button.Grey" />
</LinearLayout>
</com.discord.app.AppViewFlipper>
2019-02-14 22:50:29 +00:00
</LinearLayout>
2019-02-06 20:30:57 +00:00
<View style="@style/UiKit.Divider" />
2019-02-17 02:24:41 +00:00
<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" />
2019-02-04 20:08:30 +00:00
<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>
2019-02-17 00:24:05 +00:00
<com.google.android.material.floatingactionbutton.FloatingActionButton android:id="@id/settings_account_save" style="@style/Settings.FloatingActionButton.Save" />
2019-02-17 02:24:41 +00:00
<com.discord.utilities.dimmer.DimmerView style="@style/UiKit.DimmerView" />
2019-02-04 20:08:30 +00:00
</androidx.coordinatorlayout.widget.CoordinatorLayout>