apkfuckery/com.discord/res/layout/widget_settings.xml

51 lines
8.6 KiB
XML
Raw Normal View History

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 android:background="?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="fill_parent" android:layout_height="wrap_content" android:layout_marginTop="?actionBarSize" app:layout_collapseMode="parallax" app:user_profile_header_background_color="?toolbarColor" />
2020-08-26 17:47:03 +00:00
<androidx.appcompat.widget.Toolbar app:layout_collapseMode="pin" app:navigationContentDescription="@string/back" style="@style/AppTheme.Toolbar" />
2020-05-17 12:40:10 +00:00
</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">
2020-08-20 22:29:33 +00:00
<TextView android:id="@id/settings_user_settings_header" android:text="@string/user_settings" style="@style/UiKit.Settings.Item.Header" />
2020-07-08 16:44:49 +00:00
<LinearLayout android:gravity="center_vertical" android:id="@id/settings_set_status_container" android:background="?selectableItemBackground" style="@style/UiKit.ViewGroup.LinearLayout.Horizontal">
2020-09-09 19:21:20 +00:00
<TextView android:background="@color/transparent" android:layout_width="0.0dip" android:text="@string/set_status" android:layout_weight="1.0" app:drawableStartCompat="@drawable/ic_status_24dp" app:drawableTint="?colorInteractiveNormal" style="@style/UiKit.Settings.Item.Icon" />
2020-09-02 04:07:20 +00:00
<com.discord.views.StatusView android:id="@id/settings_status_view" android:layout_width="16.0dip" android:layout_height="wrap_content" android:layout_marginStart="16.0dip" app:sv_background_color="?colorPrimary" app:sv_border_width="2.0dip" app:sv_corner_radius="4.0dip" />
<TextView android:id="@id/settings_presence_text" android:background="@color/transparent" android:layout_width="wrap_content" android:layout_marginEnd="8.0dip" style="@style/UiKit.Settings.Item" />
2020-05-17 12:40:10 +00:00
</LinearLayout>
2020-09-09 19:21:20 +00:00
<TextView android:id="@id/settings_account" android:text="@string/user_settings_my_account" app:drawableStartCompat="@drawable/ic_my_account_24dp" app:drawableTint="?colorInteractiveNormal" style="@style/UiKit.Settings.Item.Icon" />
<TextView android:id="@id/settings_privacy" android:text="@string/privacy_and_safety" app:drawableStartCompat="@drawable/ic_privacy_24dp" app:drawableTint="?colorInteractiveNormal" style="@style/UiKit.Settings.Item.Icon" />
<TextView android:id="@id/settings_authorized_apps" android:text="@string/authorized_apps" app:drawableStartCompat="@drawable/ic_authed_apps_24dp" app:drawableTint="?colorInteractiveNormal" style="@style/UiKit.Settings.Item.Icon" />
<TextView android:id="@id/settings_connections" android:text="@string/connections" app:drawableStartCompat="@drawable/ic_phonelink_24dp" app:drawableTint="?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="?colorInteractiveNormal" style="@style/UiKit.Settings.Item.Icon" />
<TextView android:id="@id/settings_qr_scanner" android:text="@string/user_settings_scan_qr_code" app:drawableStartCompat="@drawable/ic_qr_code_24dp" app:drawableTint="?colorInteractiveNormal" style="@style/UiKit.Settings.Item.Icon" />
2020-05-17 12:40:10 +00:00
<LinearLayout android:id="@id/settings_nitro_settings" style="@style/UiKit.ViewGroup.LinearLayout">
<View style="@style/UiKit.Settings.Divider" />
2020-08-20 22:29:33 +00:00
<TextView android:id="@id/settings_nitro_header" android:text="@string/premium_settings" style="@style/UiKit.Settings.Item.Header" />
2020-09-09 19:21:20 +00:00
<TextView android:textColor="@color/brand_500" android:id="@id/settings_nitro" app:drawableStartCompat="@drawable/ic_nitro_rep" style="@style/UiKit.Settings.Item.Icon" />
<TextView android:id="@id/settings_nitro_boosting" android:text="@string/premium_guild_subscription_title" app:drawableStartCompat="@drawable/ic_settings_boost_24dp" app:drawableTint="?colorInteractiveNormal" style="@style/UiKit.Settings.Item.Icon" />
<TextView android:id="@id/settings_nitro_gifting" android:text="@string/premium_gifting_title" app:drawableStartCompat="@drawable/ic_gift_24dp" app:drawableTint="?colorInteractiveNormal" style="@style/UiKit.Settings.Item.Icon" />
2020-05-17 12:40:10 +00:00
</LinearLayout>
<View style="@style/UiKit.Settings.Divider" />
2020-08-20 22:29:33 +00:00
<TextView android:id="@id/settings_app_settings_header" android:text="@string/app_settings" style="@style/UiKit.Settings.Item.Header" />
2020-09-09 19:21:20 +00:00
<TextView android:id="@id/settings_voice" android:text="@string/voice_and_video" app:drawableStartCompat="@drawable/ic_voice_settings_24dp" app:drawableTint="?colorInteractiveNormal" style="@style/UiKit.Settings.Item.Icon" />
<TextView android:id="@id/settings_notifications" android:text="@string/notifications" app:drawableStartCompat="@drawable/ic_notification_settings_24dp" app:drawableTint="?colorInteractiveNormal" style="@style/UiKit.Settings.Item.Icon" />
<TextView android:id="@id/settings_game_activity" android:text="@string/game_activity" app:drawableStartCompat="@drawable/ic_games_24dp" app:drawableTint="?colorInteractiveNormal" style="@style/UiKit.Settings.Item.Icon" />
<TextView android:id="@id/settings_text_images" android:text="@string/text_and_images" app:drawableStartCompat="@drawable/ic_text_image_24dp" app:drawableTint="?colorInteractiveNormal" style="@style/UiKit.Settings.Item.Icon" />
<TextView android:id="@id/settings_appearance" android:text="@string/appearance" app:drawableStartCompat="@drawable/ic_theme_24dp" app:drawableTint="?colorInteractiveNormal" style="@style/UiKit.Settings.Item.Icon" />
<TextView android:id="@id/settings_behavior" android:text="@string/form_label_mobile_notifications_behavior" app:drawableStartCompat="@drawable/ic_behavior_24dp" app:drawableTint="?colorInteractiveNormal" style="@style/UiKit.Settings.Item.Icon" />
<TextView android:id="@id/settings_language" android:text="@string/language" app:drawableStartCompat="@drawable/ic_locale_24dp" app:drawableTint="?colorInteractiveNormal" style="@style/UiKit.Settings.Item.Icon" />
2020-05-17 12:40:10 +00:00
<View android:id="@id/settings_developer_options_divider" android:visibility="gone" style="@style/UiKit.Settings.Divider" />
<TextView android:id="@id/settings_developer_options_header" android:visibility="gone" android:text="@string/developer_options" style="@style/UiKit.Settings.Item.Header" />
2020-09-09 19:21:20 +00:00
<TextView android:id="@id/settings_developer_options" android:visibility="gone" android:text="@string/developer_options" app:drawableStartCompat="@drawable/ic_security_24dp" app:drawableTint="?colorInteractiveNormal" style="@style/UiKit.Settings.Item.Icon" />
2020-05-17 12:40:10 +00:00
<View style="@style/UiKit.Settings.Divider" />
<TextView android:id="@id/settings_app_info" style="@style/UiKit.Settings.Item.Header" />
2020-09-09 19:21:20 +00:00
<TextView android:id="@id/settings_changelog" android:text="@string/change_log" app:drawableStartCompat="@drawable/ic_info_24dp" app:drawableTint="?colorInteractiveNormal" style="@style/UiKit.Settings.Item.Icon" />
<TextView android:id="@id/settings_support" android:text="@string/support" app:drawableStartCompat="@drawable/ic_help_24dp" app:drawableTint="?colorInteractiveNormal" style="@style/UiKit.Settings.Item.Icon" />
<TextView android:id="@id/settings_upload_debug_logs" android:text="@string/upload_debug_logs" app:drawableStartCompat="@drawable/ic_info_24dp" app:drawableTint="?colorInteractiveNormal" style="@style/UiKit.Settings.Item.Icon" />
<TextView android:id="@id/settings_acknowledgements" android:text="@string/acknowledgements" app:drawableStartCompat="@drawable/ic_info_24dp" app:drawableTint="?colorInteractiveNormal" style="@style/UiKit.Settings.Item.Icon" />
2020-05-17 12:40:10 +00:00
</androidx.appcompat.widget.LinearLayoutCompat>
</androidx.core.widget.NestedScrollView>
</androidx.coordinatorlayout.widget.CoordinatorLayout>