58 lines
11 KiB
XML
58 lines
11 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" style="@style/UiKit_ViewGroup_Page">
|
|
<com.google.android.material.appbar.AppBarLayout android:background="?attr/toolbarColor" style="@style/AppTheme_AppBarLayout">
|
|
<com.google.android.material.appbar.CollapsingToolbarLayout app:titleEnabled="false" style="@style/AppTheme_CollapsingToolbarLayout">
|
|
<com.discord.widgets.user.profile.UserProfileHeaderView android:id="@+id/user_settings_profile_header_view" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_marginTop="?attr/actionBarSize" app:layout_collapseMode="2" app:user_profile_header_background_color="?attr/toolbarColor"/>
|
|
<androidx.appcompat.widget.Toolbar app:layout_collapseMode="1" app:navigationContentDescription="@string/back" style="@style/AppTheme_Toolbar"/>
|
|
</com.google.android.material.appbar.CollapsingToolbarLayout>
|
|
</com.google.android.material.appbar.AppBarLayout>
|
|
<androidx.core.widget.NestedScrollView style="@style/UiKit_ViewGroup_NestedScrollView_AppBarScrollingViewBehavior">
|
|
<androidx.appcompat.widget.LinearLayoutCompat style="@style/UiKit_ViewGroup_LinearLayout">
|
|
<TextView android:id="@+id/user_settings_header" android:text="@string/user_settings" style="@style/UiKit_Settings_Item_Header"/>
|
|
<LinearLayout android:gravity="center_vertical" android:id="@+id/set_status_container" android:background="?attr/selectableItemBackground" style="@style/UiKit_ViewGroup_LinearLayout_Horizontal">
|
|
<TextView android:background="@color/transparent" android:layout_width="0dp" android:text="@string/set_status" android:layout_weight="1" app:drawableStartCompat="@drawable/ic_status_24dp" app:drawableTint="?attr/colorInteractiveNormal" style="@style/UiKit_Settings_Item_Icon"/>
|
|
<com.discord.views.StatusView android:id="@+id/settings_status_view" android:layout_width="16dp" android:layout_height="wrap_content" android:layout_marginStart="16dp" app:sv_background_color="?attr/colorPrimary" app:sv_border_width="2dp" app:sv_corner_radius="4dp"/>
|
|
<TextView android:id="@+id/settings_presence_text" android:background="@color/transparent" android:layout_width="wrap_content" android:layout_marginEnd="8dp" style="@style/UiKit_Settings_Item"/>
|
|
</LinearLayout>
|
|
<TextView android:id="@+id/account" android:text="@string/user_settings_my_account" app:drawableStartCompat="@drawable/ic_my_account_24dp" app:drawableTint="?attr/colorInteractiveNormal" style="@style/UiKit_Settings_Item_Icon"/>
|
|
<LinearLayout android:id="@+id/profile" android:background="?attr/selectableItemBackground" android:paddingStart="0dp" android:paddingEnd="8dp" style="@style/UiKit_ViewGroup_LinearLayout_Horizontal">
|
|
<TextView android:id="@+id/profile_text" android:background="@color/transparent" android:layout_width="wrap_content" android:text="@string/user_settings_user_profile" android:paddingStart="16dp" android:paddingEnd="8dp" app:drawableStartCompat="@drawable/ic_edit_24dp" app:drawableTint="?attr/colorInteractiveNormal" style="@style/UiKit_Settings_Item_Icon"/>
|
|
<TextView android:textAppearance="@style/UiKit_TextAppearance" android:textSize="@dimen/uikit_textsize_small" android:textColor="@color/white" android:id="@+id/profile_new_badge" android:background="@drawable/rounded_rectangle_16dp_radius" android:paddingLeft="4dp" android:paddingRight="4dp" android:visibility="gone" android:text="@string/_new" android:lineSpacingMultiplier="1.25" android:textAllCaps="true" android:backgroundTint="@color/status_red_530" android:paddingHorizontal="4dp" style="@style/UiKit_TextView"/>
|
|
</LinearLayout>
|
|
<TextView android:id="@+id/privacy" android:text="@string/privacy_and_safety" app:drawableStartCompat="@drawable/ic_privacy_24dp" app:drawableTint="?attr/colorInteractiveNormal" style="@style/UiKit_Settings_Item_Icon"/>
|
|
<TextView android:id="@+id/authorized_apps" android:text="@string/authorized_apps" app:drawableStartCompat="@drawable/ic_authed_apps_24dp" app:drawableTint="?attr/colorInteractiveNormal" style="@style/UiKit_Settings_Item_Icon"/>
|
|
<TextView android:id="@+id/connections" android:text="@string/connections" app:drawableStartCompat="@drawable/ic_phonelink_24dp" app:drawableTint="?attr/colorInteractiveNormal" style="@style/UiKit_Settings_Item_Icon"/>
|
|
<TextView android:id="@+id/settings_billing" android:visibility="gone" android:text="@string/billing" app:drawableStartCompat="@drawable/ic_billing_24dp" app:drawableTint="?attr/colorInteractiveNormal" style="@style/UiKit_Settings_Item_Icon"/>
|
|
<TextView android:id="@+id/qr_scanner" android:text="@string/user_settings_scan_qr_code" app:drawableStartCompat="@drawable/ic_qr_code_24dp" app:drawableTint="?attr/colorInteractiveNormal" style="@style/UiKit_Settings_Item_Icon"/>
|
|
<LinearLayout android:id="@+id/nitro_settings_container" style="@style/UiKit_ViewGroup_LinearLayout">
|
|
<View style="@style/UiKit_Settings_Divider"/>
|
|
<TextView android:id="@+id/nitro_header" android:text="@string/premium_settings" style="@style/UiKit_Settings_Item_Header"/>
|
|
<TextView android:textColor="?attr/colorControlBrandForeground" android:id="@+id/settings_nitro" app:drawableStartCompat="@drawable/ic_nitro_rep" app:drawableTint="?attr/colorControlBrandForeground" style="@style/UiKit_Settings_Item_Icon"/>
|
|
<TextView android:id="@+id/nitro_boosting" android:text="@string/premium_guild_subscription_title" app:drawableStartCompat="@drawable/ic_settings_boost_24dp" app:drawableTint="?attr/colorInteractiveNormal" style="@style/UiKit_Settings_Item_Icon"/>
|
|
<LinearLayout android:gravity="center_vertical" android:orientation="horizontal" android:id="@+id/nitroGiftingContainer" android:background="?attr/selectableItemBackground" android:layout_width="match_parent" android:layout_height="wrap_content">
|
|
<TextView android:id="@+id/nitro_gifting" android:background="@null" android:layout_width="0dp" android:text="@string/premium_gifting_title" android:layout_weight="1" app:drawableStartCompat="@drawable/ic_gift_24dp" app:drawableTint="?attr/colorInteractiveNormal" style="@style/UiKit_Settings_Item_Icon"/>
|
|
<TextView android:textSize="@dimen/uikit_textsize_small" android:id="@+id/nitroGiftingBadge" android:visibility="gone" android:layout_width="wrap_content" android:layout_height="wrap_content" android:includeFontPadding="false" android:paddingStart="4dp" android:paddingEnd="4dp" android:layout_marginEnd="20dp" style="@style/UiKit_TextView_Semibold"/>
|
|
</LinearLayout>
|
|
</LinearLayout>
|
|
<View style="@style/UiKit_Settings_Divider"/>
|
|
<TextView android:id="@+id/app_settings_header" android:text="@string/app_settings" style="@style/UiKit_Settings_Item_Header"/>
|
|
<TextView android:id="@+id/voice" android:text="@string/voice_and_video" app:drawableStartCompat="@drawable/ic_voice_settings_24dp" app:drawableTint="?attr/colorInteractiveNormal" style="@style/UiKit_Settings_Item_Icon"/>
|
|
<TextView android:id="@+id/notifications" android:text="@string/notifications" app:drawableStartCompat="@drawable/ic_notification_settings_24dp" app:drawableTint="?attr/colorInteractiveNormal" style="@style/UiKit_Settings_Item_Icon"/>
|
|
<TextView android:id="@+id/text_images_settings" android:text="@string/text_and_images" app:drawableStartCompat="@drawable/ic_text_image_24dp" app:drawableTint="?attr/colorInteractiveNormal" style="@style/UiKit_Settings_Item_Icon"/>
|
|
<TextView android:id="@+id/appearance" android:text="@string/appearance" app:drawableStartCompat="@drawable/ic_theme_24dp" app:drawableTint="?attr/colorInteractiveNormal" style="@style/UiKit_Settings_Item_Icon"/>
|
|
<TextView android:id="@+id/accessibility" android:text="@string/accessibility" app:drawableStartCompat="@drawable/ic_accessibility_24dp" app:drawableTint="?attr/colorInteractiveNormal" style="@style/UiKit_Settings_Item_Icon"/>
|
|
<TextView android:id="@+id/behavior" android:text="@string/form_label_mobile_notifications_behavior" app:drawableStartCompat="@drawable/ic_behavior_24dp" app:drawableTint="?attr/colorInteractiveNormal" style="@style/UiKit_Settings_Item_Icon"/>
|
|
<TextView android:id="@+id/language" android:text="@string/language" app:drawableStartCompat="@drawable/ic_locale_24dp" app:drawableTint="?attr/colorInteractiveNormal" style="@style/UiKit_Settings_Item_Icon"/>
|
|
<TextView android:id="@+id/activity_status" android:text="@string/activity_status" app:drawableStartCompat="@drawable/ic_activity_status_24dp" app:drawableTint="?attr/colorInteractiveNormal" style="@style/UiKit_Settings_Item_Icon"/>
|
|
<View android:id="@+id/developer_options_divider" android:visibility="gone" style="@style/UiKit_Settings_Divider"/>
|
|
<TextView android:id="@+id/developer_options_header" android:visibility="gone" android:text="@string/developer_options" style="@style/UiKit_Settings_Item_Header"/>
|
|
<TextView android:id="@+id/developer_options" android:visibility="gone" android:text="@string/developer_options" app:drawableStartCompat="@drawable/ic_security_24dp" app:drawableTint="?attr/colorInteractiveNormal" style="@style/UiKit_Settings_Item_Icon"/>
|
|
<View style="@style/UiKit_Settings_Divider"/>
|
|
<TextView android:id="@+id/app_info_header" style="@style/UiKit_Settings_Item_Header"/>
|
|
<TextView android:id="@+id/changelog" android:text="@string/change_log" app:drawableStartCompat="@drawable/ic_info_24dp" app:drawableTint="?attr/colorInteractiveNormal" style="@style/UiKit_Settings_Item_Icon"/>
|
|
<TextView android:id="@+id/support" android:text="@string/support" app:drawableStartCompat="@drawable/ic_help_24dp" app:drawableTint="?attr/colorInteractiveNormal" style="@style/UiKit_Settings_Item_Icon"/>
|
|
<TextView android:id="@+id/upload_debug_logs" android:text="@string/upload_debug_logs" app:drawableStartCompat="@drawable/ic_info_24dp" app:drawableTint="?attr/colorInteractiveNormal" style="@style/UiKit_Settings_Item_Icon"/>
|
|
<TextView android:id="@+id/acknowledgements" android:text="@string/acknowledgements" app:drawableStartCompat="@drawable/ic_info_24dp" app:drawableTint="?attr/colorInteractiveNormal" style="@style/UiKit_Settings_Item_Icon"/>
|
|
</androidx.appcompat.widget.LinearLayoutCompat>
|
|
</androidx.core.widget.NestedScrollView>
|
|
</androidx.coordinatorlayout.widget.CoordinatorLayout>
|