Changes of com.discord v910

This commit is contained in:
root 2019-06-25 03:04:50 +02:00
parent edc2e083e2
commit 9b3211cb98
5848 changed files with 135214 additions and 113090 deletions

View file

@ -0,0 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout android:paddingTop="@dimen/uikit_spacing_small" android:paddingBottom="@dimen/uikit_spacing_medium" style="@style/UiKit.ViewGroup.ConstraintLayout"
xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto">
<ImageView android:id="@id/oauth_token_permission_detailed_icon" android:layout_margin="@dimen/uikit_spacing_small" android:src="@drawable/ic_check_circle_green_24dp" android:importantForAccessibility="no" app:layout_constraintStart_toStartOf="parent" app:layout_constraintTop_toTopOf="parent" style="@style/UiKit.ImageView" />
<TextView android:textSize="@dimen/uikit_textsize_large" android:id="@id/oauth_token_permission_detailed_name" android:layout_width="0.0dip" android:layout_marginLeft="@dimen/uikit_spacing_large" app:layout_constraintEnd_toEndOf="parent" app:layout_constraintHorizontal_bias="0.0" app:layout_constraintStart_toEndOf="@id/oauth_token_permission_detailed_icon" app:layout_constraintTop_toTopOf="parent" style="@style/UiKit.TextView.H1" />
<TextView android:id="@id/oauth_token_permission_detailed_desc" android:layout_width="0.0dip" android:lineSpacingMultiplier="1.0" app:layout_constraintEnd_toEndOf="parent" app:layout_constraintHorizontal_bias="0.0" app:layout_constraintStart_toStartOf="@id/oauth_token_permission_detailed_name" app:layout_constraintTop_toBottomOf="@id/oauth_token_permission_detailed_name" style="@style/UiKit.TextView.Subtext" />
</androidx.constraintlayout.widget.ConstraintLayout>

View file

@ -0,0 +1,3 @@
<?xml version="1.0" encoding="utf-8"?>
<TextView android:gravity="center" android:paddingTop="@dimen/uikit_spacing_small" android:paddingBottom="@dimen/uikit_spacing_small" android:drawableLeft="@drawable/ic_check_circle_green_24dp" android:drawablePadding="@dimen/uikit_spacing_medium" android:drawableStart="@drawable/ic_check_circle_green_24dp" style="@style/UiKit.TextView"
xmlns:android="http://schemas.android.com/apk/res/android" />

View file

@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout style="@style/UiKit.ViewGroup.Page"
xmlns:android="http://schemas.android.com/apk/res/android">
<com.discord.views.ScrollingViewPager android:id="@id/steps_viewpager" android:paddingLeft="@dimen/uikit_spacing_large" android:paddingRight="@dimen/uikit_spacing_large" android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_above="@id/steps_button_container" />
<com.discord.utilities.simple_pager.SimplePager android:id="@id/steps_viewpager" android:paddingLeft="@dimen/uikit_spacing_large" android:paddingRight="@dimen/uikit_spacing_large" android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_above="@id/steps_button_container" />
<ImageView android:id="@id/steps_close" android:layout_marginTop="@dimen/uikit_spacing_large" android:layout_marginRight="@dimen/uikit_spacing_large" android:foreground="?selectableItemBackgroundBorderless" android:src="?ic_close_24dp" android:layout_alignParentTop="true" android:layout_alignParentRight="true" style="@style/UiKit.ImageView" />
<LinearLayout android:id="@id/steps_button_container" android:layout_margin="@dimen/uikit_spacing_large" android:layout_alignParentBottom="true" style="@style/UiKit.ViewGroup.LinearLayout">
<Button android:id="@id/steps_done" android:visibility="gone" android:text="@string/done" style="@style/UiKit.Button.Grey" />

View file

@ -1,27 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<androidx.coordinatorlayout.widget.CoordinatorLayout android:background="?auth_ptrn" style="@style/UiKit.ViewGroup.Page"
xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto">
<include layout="@layout/widget_auth_header" />
<LinearLayout android:orientation="vertical" style="@style/AppTheme.AppBarScrollingViewBehavior">
<androidx.core.widget.NestedScrollView android:layout_gravity="center_vertical" android:layout_height="0.0dip" android:fillViewport="false" android:layout_weight="1.0" style="@style/UiKit.ViewGroup.NestedScrollView">
<com.discord.widgets.guilds.invite.WidgetInviteInfo android:id="@id/auth_register_invite_info" app:avatar_size="@dimen/avatar_size_extra_extra_large" app:user_avatar_size="@dimen/avatar_size_standard" style="@style/UiKit.Copy.Container" />
</androidx.core.widget.NestedScrollView>
<androidx.cardview.widget.CardView android:layout_marginLeft="@dimen/uikit_spacing_medium" android:layout_marginRight="@dimen/uikit_spacing_medium" android:layout_marginBottom="-2.0dip" app:cardBackgroundColor="?primary_600" app:cardCornerRadius="4.0dip" style="@style/UiKit.ViewGroup">
<ImageView android:layout_gravity="end|center|top" android:layout_margin="@dimen/uikit_spacing_medium" android:importantForAccessibility="no" style="@style/UiKit.Auth.Spots.Top" />
<LinearLayout android:id="@id/auth_register_button_container" android:padding="@dimen/uikit_spacing_large" style="@style/UiKit.ViewGroup.LinearLayout">
<TextView android:layout_marginLeft="@dimen/uikit_spacing_small" android:text="@string/form_label_username" android:lineSpacingMultiplier="1.0" android:textAllCaps="true" style="@style/UiKit.TextView.Subtext.Semibold.SingleLine" />
<com.google.android.material.textfield.TextInputLayout android:id="@id/auth_register_username_wrap" android:layout_marginTop="0.0dip" android:hint="@string/form_label_username" app:hintEnabled="false" style="@style/UiKit.Form.Field.EditText.Wrap">
<androidx.appcompat.widget.AppCompatEditText android:id="@id/auth_register_username" android:paddingTop="@dimen/uikit_spacing_medium" android:hint="@string/form_placeholder_username" android:imeOptions="actionNext" style="@style/UiKit.Form.Field.EditText.SingleLine" />
</com.google.android.material.textfield.TextInputLayout>
<androidx.constraintlayout.widget.ConstraintLayout android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_marginTop="@dimen/uikit_spacing_medium" android:layout_marginBottom="@dimen/uikit_spacing_medium" style="@style/UiKit.ViewGroup">
<CheckBox android:id="@id/auth_tos_opt_in" android:paddingLeft="0.0dip" android:layout_width="wrap_content" app:layout_constraintBottom_toBottomOf="parent" app:layout_constraintEnd_toStartOf="@id/auth_policy_links" app:layout_constraintLeft_toLeftOf="parent" app:layout_constraintRight_toLeftOf="@id/auth_policy_links" app:layout_constraintStart_toStartOf="parent" app:layout_constraintTop_toTopOf="parent" app:layout_constraintVertical_bias="0.5" style="@style/UiKit.Checkbox" />
<com.discord.utilities.view.text.LinkifiedTextView android:textSize="@dimen/uikit_textsize_small" android:textColor="@color/grey_2" android:id="@id/auth_policy_links" android:visibility="visible" android:layout_width="0.0dip" android:text="@string/terms_privacy" android:lineSpacingMultiplier="1.0" app:layout_constraintBottom_toBottomOf="parent" app:layout_constraintEnd_toEndOf="parent" app:layout_constraintLeft_toRightOf="@id/auth_tos_opt_in" app:layout_constraintRight_toRightOf="parent" app:layout_constraintStart_toEndOf="@id/auth_tos_opt_in" app:layout_constraintTop_toTopOf="parent" app:layout_constraintVertical_bias="0.5" app:layout_goneMarginLeft="@dimen/uikit_spacing_medium" app:layout_goneMarginStart="@dimen/uikit_spacing_medium" style="@style/UiKit.TextView" />
</androidx.constraintlayout.widget.ConstraintLayout>
<Button android:id="@id/auth_register_button" android:layout_marginLeft="0.0dip" android:layout_marginRight="0.0dip" android:text="@string/create_account" style="@style/UiKit.Button" />
<TextView android:layout_marginLeft="@dimen/uikit_spacing_small" android:layout_marginTop="@dimen/uikit_spacing_large" android:text="@string/already_have_account" android:textAllCaps="true" style="@style/UiKit.TextView.Subtext.Semibold.SingleLine" />
<Button android:id="@id/auth_register_cancel" android:layout_marginLeft="0.0dip" android:layout_marginRight="0.0dip" android:text="@string/common_signin_button_text" style="@style/UiKit.Button.Dark" />
</LinearLayout>
</androidx.cardview.widget.CardView>
</LinearLayout>
<com.discord.utilities.dimmer.DimmerView style="@style/UiKit.DimmerView" />
</androidx.coordinatorlayout.widget.CoordinatorLayout>

View file

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout android:gravity="center" android:id="@id/chat_input_verification" android:background="?primary_700_bg" android:paddingLeft="@dimen/chat_cell_horizontal_spacing_padding" android:paddingTop="@dimen/uikit_spacing_medium" android:paddingRight="@dimen/chat_cell_horizontal_spacing_padding" android:paddingBottom="@dimen/uikit_spacing_medium" android:visibility="gone" android:layout_margin="@dimen/uikit_spacing_medium" style="@style/UiKit.ViewGroup.LinearLayout"
<LinearLayout android:gravity="center" android:id="@id/chat_input_verification" android:background="?primary_700_bg" android:paddingLeft="@dimen/chat_cell_horizontal_spacing_padding" android:paddingTop="@dimen/uikit_spacing_medium" android:paddingRight="@dimen/chat_cell_horizontal_spacing_padding" android:paddingBottom="@dimen/uikit_spacing_medium" android:visibility="gone" style="@style/UiKit.ViewGroup.LinearLayout"
xmlns:android="http://schemas.android.com/apk/res/android">
<TextView android:textColor="?theme_chat_text" android:gravity="center" android:id="@id/chat_input_verification_text" android:paddingTop="@dimen/chat_cell_vertical_spacing_padding" android:paddingBottom="@dimen/chat_cell_vertical_spacing_padding" android:layout_width="fill_parent" style="@style/UiKit.TextView.Semibold" />
<TextView android:id="@id/chat_input_verification_action" android:text="@string/resend_verification_email" style="@style/UiKit.Button" />

View file

@ -0,0 +1,24 @@
<?xml version="1.0" encoding="utf-8"?>
<androidx.coordinatorlayout.widget.CoordinatorLayout android:fitsSystemWindows="true" style="@style/UiKit.ViewGroup.Page"
xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto">
<ImageView android:layout_width="fill_parent" android:layout_height="fill_parent" android:src="@drawable/drawable_auth_splash" android:scaleType="centerCrop" android:importantForAccessibility="no" />
<com.google.android.material.card.MaterialCardView android:layout_gravity="center" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_margin="@dimen/uikit_spacing_medium" app:cardBackgroundColor="@color/primary_630" app:cardCornerRadius="8.0dip" app:cardElevation="8.0dip" app:strokeColor="@color/primary_800" app:strokeWidth="1.0dip" style="@style/Widget.MaterialComponents.CardView">
<LinearLayout android:orientation="vertical" android:id="@id/oauth_authorize_content" android:visibility="gone" android:animateLayoutChanges="true" style="@style/UiKit.ViewGroup.LinearLayout">
<RelativeLayout android:background="@color/primary_700" android:padding="@dimen/uikit_spacing_large" style="@style/UiKit.ViewGroup.RelativeLayout">
<com.facebook.drawee.view.SimpleDraweeView android:id="@id/oauth_authorize_application_icon" android:layout_alignParentRight="true" android:layout_centerVertical="true" android:importantForAccessibility="no" app:placeholderImage="?ic_game_icon_placeholder" app:placeholderImageScaleType="fitCenter" app:roundingBorderColor="@color/primary_200_alpha_30" style="@style/Avatar.Large" />
<TextView android:id="@id/oauth_authorize_connect_label" android:text="@string/oauth2_connect_to_discord" android:layout_toLeftOf="@id/oauth_authorize_application_icon" android:layout_alignParentLeft="true" android:layout_alignParentTop="true" style="@style/UiKit.TextView.H2" />
<TextView android:textSize="24.0sp" android:id="@id/oauth_authorize_application_name" android:layout_toLeftOf="@id/oauth_authorize_application_icon" android:layout_below="@id/oauth_authorize_connect_label" android:layout_alignParentLeft="true" style="@style/UiKit.TextView.H1.Bold" />
</RelativeLayout>
<com.discord.app.AppTextView android:id="@id/oauth_authorize_permissions_label_tv" style="@style/UiKit.Settings.Item.Header" />
<androidx.recyclerview.widget.RecyclerView android:scrollbarAlwaysDrawVerticalTrack="true" android:id="@id/oauth_authorize_permissions_list" android:paddingBottom="@dimen/uikit_spacing_large" android:clipToPadding="false" android:layout_height="0.0dip" android:layout_marginLeft="@dimen/uikit_spacing_large" android:layout_marginRight="@dimen/uikit_spacing_large" android:layout_weight="1.0" android:fadeScrollbars="false" style="@style/UiKit.ViewGroup.RecyclerView" />
<View android:layout_marginLeft="@dimen/uikit_spacing_large" android:layout_marginRight="@dimen/uikit_spacing_large" style="@style/UiKit.Divider.Thick" />
<com.discord.app.AppTextView android:textColor="@color/primary_400" android:id="@id/oauth_authorize_security_notice" android:paddingTop="@dimen/uikit_spacing_large" android:paddingBottom="@dimen/uikit_spacing_large" android:layout_width="fill_parent" android:layout_marginLeft="@dimen/uikit_spacing_large" android:layout_marginRight="@dimen/uikit_spacing_large" android:lineSpacingMultiplier="1.0" app:tv_markdown_enabled="true" style="@style/UiKit.TextView" />
<Button android:id="@id/oauth_authorize_grant" android:layout_marginLeft="@dimen/uikit_spacing_large" android:layout_marginRight="@dimen/uikit_spacing_large" android:text="@string/authorize" style="@style/UiKit.Button" />
<Button android:id="@id/oauth_authorize_deny" android:layout_marginLeft="@dimen/uikit_spacing_large" android:layout_marginRight="@dimen/uikit_spacing_large" android:layout_marginBottom="@dimen/uikit_spacing_medium" android:text="@string/cancel" style="@style/UiKit.Button.Transparent" />
</LinearLayout>
<LinearLayout android:id="@id/oauth_authorize_loading" style="@style/UiKit.ViewGroup.LinearLayout">
<ProgressBar android:layout_gravity="center" android:padding="@dimen/uikit_spacing_large" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_margin="@dimen/uikit_spacing_large" />
<Button android:id="@id/oauth_authorize_loading_cancel" android:text="@string/cancel" style="@style/UiKit.Button.Transparent" />
</LinearLayout>
</com.google.android.material.card.MaterialCardView>
</androidx.coordinatorlayout.widget.CoordinatorLayout>

View file

@ -6,7 +6,7 @@
<LinearLayout android:gravity="center_vertical" android:id="@id/server_settings_members_header_container" android:background="@drawable/drawable_uikit_primary_100_bg_dark" android:padding="@dimen/uikit_spacing_medium" android:layout_marginLeft="10.0dip" android:layout_marginRight="10.0dip" android:layout_marginBottom="10.0dip" style="@style/UiKit.ViewGroup.LinearLayout.Horizontal">
<EditText android:textColor="@color/primary_500" android:id="@id/server_settings_members_name_search" android:padding="0.0dip" android:layout_width="0.0dip" android:hint="@string/members_search_placeholder" android:singleLine="true" android:maxLength="20" android:drawableLeft="@drawable/ic_search" android:drawablePadding="@dimen/uikit_spacing_medium" android:layout_weight="5.0" android:inputType="textNoSuggestions" android:imeOptions="actionDone" android:drawableStart="@drawable/ic_search" style="@style/UiKit.EditText.Themed" />
<View style="@style/UiKit.Divider.Vertical" />
<Spinner android:theme="@style/AppTheme.Light" android:gravity="center" android:id="@id/server_settings_members_roles_spinner" android:layout_width="0.0dip" android:layout_height="wrap_content" android:layout_weight="3.0" />
<Spinner android:theme="@style/AppTheme.Light.Legacy" android:gravity="center" android:id="@id/server_settings_members_roles_spinner" android:layout_width="0.0dip" android:layout_height="wrap_content" android:layout_weight="3.0" />
</LinearLayout>
</com.google.android.material.appbar.AppBarLayout>
<com.discord.app.AppViewFlipper android:id="@id/server_settings_members_view_flipper" android:inAnimation="@android:anim/fade_in" android:outAnimation="@android:anim/fade_out" style="@style/UiKit.ViewGroup.RelativeLayout.AppBarScrollingViewBehavior">

View file

@ -1,15 +1,9 @@
<?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">
xmlns:android="http://schemas.android.com/apk/res/android">
<com.google.android.material.appbar.AppBarLayout android:background="?primary_630" style="@style/AppTheme.AppBarLayout">
<com.google.android.material.appbar.CollapsingToolbarLayout style="@style/AppTheme.CollapsingToolbarLayout">
<LinearLayout android:layout_marginTop="?actionBarSize" app:layout_collapseMode="parallax" style="@style/UiKit.ViewGroup.LinearLayout">
<RelativeLayout android:id="@id/settings_account_unclaimed" android:background="@color/status_orange_500" android:visibility="gone" style="@style/UiKit.ViewGroup.RelativeLayout">
<TextView android:textSize="@dimen/uikit_textsize_small" android:textColor="@color/primary_100" android:text="@string/unclaimed_account_title" android:layout_centerInParent="true" style="@style/UiKit.TextView.Semibold" />
<TextView android:textSize="@dimen/uikit_textsize_small" android:textColor="@color/primary_100" android:background="@drawable/drawable_button_white" android:paddingLeft="@dimen/uikit_spacing_medium" android:paddingTop="@dimen/uikit_spacing_small" android:paddingRight="@dimen/uikit_spacing_medium" android:paddingBottom="@dimen/uikit_spacing_small" android:layout_margin="@dimen/uikit_spacing_medium" android:text="@string/claim_account" android:layout_alignParentRight="true" android:layout_centerVertical="true" style="@style/UiKit.TextView" />
</RelativeLayout>
<fragment android:name="com.discord.widgets.user.WidgetUserProfileHeader" android:id="@id/widget_user_profile_header" android:layout_width="fill_parent" android:layout_height="wrap_content" />
</LinearLayout>
<fragment android:name="com.discord.widgets.user.WidgetUserProfileHeader" android:id="@id/widget_user_profile_header" android:layout_width="fill_parent" android:layout_height="wrap_content" />
<androidx.appcompat.widget.Toolbar android:background="?primary_630" style="@style/AppTheme.Toolbar" />
</com.google.android.material.appbar.CollapsingToolbarLayout>
</com.google.android.material.appbar.AppBarLayout>
@ -18,6 +12,7 @@
<TextView android:text="@string/user_settings" style="@style/UiKit.Settings.Item.Header" />
<TextView android:id="@id/settings_account" android:text="@string/user_settings_my_account" android:drawableLeft="?ic_my_account_a60" android:drawableStart="?ic_my_account_a60" style="@style/UiKit.Settings.Item.Icon" />
<TextView android:id="@id/settings_privacy" android:text="@string/privacy_and_safety" android:drawableLeft="?ic_privacy_a60" android:drawableStart="?ic_privacy_a60" style="@style/UiKit.Settings.Item.Icon" />
<TextView android:id="@id/settings_authorized_apps" android:text="@string/authorized_apps" android:drawableLeft="?ic_authed_apps_a60" android:drawableStart="?ic_authed_apps_a60" style="@style/UiKit.Settings.Item.Icon" />
<TextView android:id="@id/settings_connections" android:text="@string/connections" android:drawableLeft="?ic_phonelink_a60" android:drawableStart="?ic_phonelink_a60" style="@style/UiKit.Settings.Item.Icon" />
<TextView android:id="@id/settings_billing" android:visibility="gone" android:text="@string/billing" android:drawableLeft="?ic_billing_a60" android:drawableStart="?ic_billing_a60" style="@style/UiKit.Settings.Item.Icon" />
<TextView android:textColor="@color/brand_500" android:id="@id/settings_nitro" android:visibility="gone" android:text="@string/premium_title" android:drawableLeft="@drawable/ic_nitro_rep" android:drawableStart="@drawable/ic_nitro_rep" style="@style/UiKit.Settings.Item.Icon" />

View file

@ -28,8 +28,6 @@
</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" style="@style/UiKit.Settings.Item.Header" />
<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" />

View file

@ -0,0 +1,14 @@
<?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">
<androidx.appcompat.widget.Toolbar app:navigationContentDescription="@string/back" app:navigationIcon="?ic_action_bar_back" app:title="@string/authorized_apps" style="@style/AppTheme.Toolbar" />
</com.google.android.material.appbar.AppBarLayout>
<androidx.core.widget.NestedScrollView style="@style/UiKit.ViewGroup.NestedScrollView.AppBarScrollingViewBehavior">
<LinearLayout style="@style/UiKit.ViewGroup.LinearLayout">
<TextView android:text="@string/applications_and_connections" style="@style/UiKit.Settings.Item.Header" />
<TextView android:text="@string/applications_and_connections_body" style="@style/UiKit.Settings.Item.Addition" />
<androidx.recyclerview.widget.RecyclerView android:id="@id/authorized_apps_list" android:paddingLeft="@dimen/uikit_spacing_large" android:paddingTop="@dimen/uikit_spacing_medium" android:paddingRight="@dimen/uikit_spacing_large" style="@style/UiKit.ViewGroup.RecyclerView" />
</LinearLayout>
</androidx.core.widget.NestedScrollView>
</androidx.coordinatorlayout.widget.CoordinatorLayout>

View file

@ -0,0 +1,15 @@
<?xml version="1.0" encoding="utf-8"?>
<com.google.android.material.card.MaterialCardView android:layout_marginBottom="@dimen/uikit_spacing_large" app:cardBackgroundColor="?primary_630" app:cardCornerRadius="4.0dip" app:strokeColor="?primary_900" app:strokeWidth="0.5dip" style="@style/UiKit.ViewGroup"
xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto">
<LinearLayout style="@style/UiKit.ViewGroup.LinearLayout">
<LinearLayout android:gravity="start|center" android:paddingLeft="@dimen/uikit_spacing_large" android:paddingTop="@dimen/uikit_spacing_large" android:paddingRight="@dimen/uikit_spacing_large" style="@style/UiKit.ViewGroup.LinearLayout.Horizontal">
<com.facebook.drawee.view.SimpleDraweeView android:id="@id/oauth_application_icon_iv" android:layout_width="40.0dip" android:layout_height="40.0dip" android:importantForAccessibility="no" app:placeholderImage="?ic_game_icon_placeholder" style="@style/Icon.Game" />
<TextView android:id="@id/oauth_application_name_tv" android:layout_width="0.0dip" android:layout_marginLeft="@dimen/uikit_spacing_large" android:layout_weight="1.0" style="@style/UiKit.TextView.H1" />
<androidx.appcompat.widget.AppCompatImageView android:layout_gravity="top" android:id="@id/oauth_application_deauthorize_btn" android:padding="@dimen/uikit_spacing_small" android:src="?ic_close_24dp" android:contentDescription="@string/deauthorize_app" app:tint="@color/status_red_500" style="@style/UiKit.ImageView.Clickable" />
</LinearLayout>
<TextView android:id="@id/oauth_application_description_label_tv" android:text="@string/about_this_app" style="@style/UiKit.Settings.Item.Header" />
<TextView android:id="@id/oauth_application_description_tv" style="@style/UiKit.Settings.Item.Addition" />
<TextView android:text="@string/permissions" style="@style/UiKit.Settings.Item.Header" />
<androidx.recyclerview.widget.RecyclerView android:id="@id/oauth_application_permissions_rv" android:paddingLeft="@dimen/uikit_spacing_large" android:paddingRight="@dimen/uikit_spacing_large" android:paddingBottom="@dimen/uikit_spacing_large" style="@style/UiKit.ViewGroup.RecyclerView" />
</LinearLayout>
</com.google.android.material.card.MaterialCardView>

View file

@ -0,0 +1,26 @@
<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout style="@style/UiKit.ViewGroup.ConstraintLayout"
xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto">
<TextView android:id="@id/rich_presence_header" app:layout_constraintLeft_toLeftOf="parent" app:layout_constraintTop_toTopOf="parent" style="@style/UiKit.Settings.Item.Header" />
<androidx.constraintlayout.widget.Guideline android:orientation="vertical" android:id="@id/embed_guideline" android:layout_width="wrap_content" android:layout_height="wrap_content" app:layout_constraintGuide_begin="@dimen/uikit_spacing_large" />
<androidx.constraintlayout.widget.Guideline android:orientation="vertical" android:id="@id/embed_guideline_right" android:layout_width="wrap_content" android:layout_height="wrap_content" app:layout_constraintGuide_end="@dimen/uikit_spacing_large" />
<LinearLayout android:gravity="center" android:orientation="vertical" android:id="@id/stream_preview_placeholder" android:background="@drawable/drawable_bg_stream_preview" android:layout_width="0.0dip" android:layout_height="0.0dip" app:layout_constraintBottom_toBottomOf="@id/stream_preview_image" app:layout_constraintLeft_toLeftOf="@id/stream_preview_image" app:layout_constraintRight_toRightOf="@id/stream_preview_image" app:layout_constraintTop_toTopOf="@id/stream_preview_image">
<ImageView android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginTop="10.0dip" android:layout_marginBottom="@dimen/uikit_spacing_large" android:src="@drawable/img_no_stream_preview" />
<TextView android:textColor="?stream_preview_placeholder_color" android:id="@id/stream_preview_placeholder_caption" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="@string/stream_preview_loading" style="@style/UiKit.TextView" />
</LinearLayout>
<com.facebook.drawee.view.SimpleDraweeView android:id="@id/stream_preview_image" android:layout_width="0.0dip" android:layout_height="0.0dip" app:layout_constraintDimensionRatio="H,16:9" app:layout_constraintEnd_toEndOf="@id/embed_guideline_right" app:layout_constraintLeft_toLeftOf="@id/embed_guideline" app:layout_constraintRight_toRightOf="@id/embed_guideline_right" app:layout_constraintStart_toStartOf="@id/embed_guideline" app:layout_constraintTop_toBottomOf="@id/rich_presence_header" app:roundedCornerRadius="@dimen/uikit_spacing_small" />
<com.facebook.drawee.view.SimpleDraweeView android:id="@id/rich_presence_image_large" android:layout_width="80.0dip" android:layout_height="80.0dip" android:layout_marginTop="@dimen/uikit_spacing_large" app:layout_constraintHorizontal_chainStyle="spread_inside" app:layout_constraintLeft_toLeftOf="@id/embed_guideline" app:layout_constraintStart_toStartOf="@id/embed_guideline" app:layout_constraintTop_toBottomOf="@id/stream_preview_image" app:placeholderImage="?colorPrimaryDark" app:roundedCornerRadius="@dimen/uikit_spacing_small" />
<androidx.legacy.widget.Space android:id="@id/image_bottom_guideline" android:layout_width="@dimen/uikit_image_border_size" android:layout_height="@dimen/uikit_image_border_size" android:layout_marginLeft="@dimen/uikit_image_border_size" android:layout_marginTop="@dimen/uikit_image_border_size" app:layout_constraintLeft_toRightOf="@id/rich_presence_image_large" app:layout_constraintStart_toEndOf="@id/rich_presence_image_large" app:layout_constraintTop_toBottomOf="@id/rich_presence_image_large" />
<FrameLayout android:background="?primary_630_circle" android:padding="@dimen/uikit_image_border_size" android:layout_width="wrap_content" android:layout_height="wrap_content" app:layout_constraintBottom_toBottomOf="@id/image_bottom_guideline" app:layout_constraintEnd_toEndOf="@id/image_bottom_guideline" app:layout_constraintRight_toRightOf="@id/image_bottom_guideline">
<com.facebook.drawee.view.SimpleDraweeView android:id="@id/rich_presence_image_small" android:visibility="gone" app:roundAsCircle="true" style="@style/Avatar.Standard" />
</FrameLayout>
<LinearLayout android:id="@id/rich_presence_container_data" android:layout_width="0.0dip" android:layout_height="wrap_content" android:layout_marginLeft="@dimen/uikit_spacing_large" android:minHeight="80.0dip" app:layout_constraintEnd_toEndOf="@id/embed_guideline_right" app:layout_constraintLeft_toRightOf="@id/rich_presence_image_large" app:layout_constraintRight_toRightOf="@id/embed_guideline_right" app:layout_constraintStart_toEndOf="@id/rich_presence_image_large" app:layout_constraintTop_toTopOf="@id/rich_presence_image_large" app:layout_goneMarginLeft="0.0dip" app:layout_goneMarginStart="0.0dip" style="@style/UiKit.ViewGroup.LinearLayout">
<TextView android:ellipsize="marquee" android:id="@id/rich_presence_title" android:singleLine="true" android:marqueeRepeatLimit="marquee_forever" style="@style/UiKit.TextView.H2" />
<TextView android:id="@id/rich_presence_details" style="@style/UiKit.TextView.Marquee" />
<TextView android:id="@id/rich_presence_state" style="@style/UiKit.TextView.Marquee" />
<TextView android:id="@id/rich_presence_time" style="@style/UiKit.TextView.Marquee" />
</LinearLayout>
<FrameLayout android:id="@id/rich_presence_watch_button" android:background="@color/brand_500" android:paddingTop="10.0dip" android:paddingBottom="10.0dip" android:layout_width="0.0dip" android:layout_height="wrap_content" android:layout_marginTop="@dimen/uikit_spacing_large" android:foreground="?selectableItemBackground" app:layout_constraintEnd_toEndOf="@id/embed_guideline_right" app:layout_constraintLeft_toLeftOf="@id/embed_guideline" app:layout_constraintRight_toRightOf="@id/embed_guideline_right" app:layout_constraintStart_toStartOf="@id/embed_guideline" app:layout_constraintTop_toBottomOf="@id/rich_presence_container_data">
<TextView android:textColor="@color/primary_100" android:ellipsize="end" android:gravity="center_vertical" android:layout_gravity="center" android:id="@id/rich_presence_play_button_text" android:paddingLeft="@dimen/uikit_spacing_medium" android:paddingRight="@dimen/uikit_spacing_medium" android:text="@string/watch_stream" android:maxLines="1" android:drawableLeft="@drawable/ic_live_stream_white_24dp" android:drawablePadding="@dimen/uikit_textsize_medium" android:textAllCaps="true" android:drawableStart="@drawable/ic_live_stream_white_24dp" style="@style/UiKit.TextView.Semibold" />
</FrameLayout>
</androidx.constraintlayout.widget.ConstraintLayout>

View file

@ -1,23 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout style="@style/UiKit.ViewGroup.Page"
xmlns:android="http://schemas.android.com/apk/res/android">
<ScrollView android:layout_height="fill_parent" android:layout_above="@id/alert_verify_email_anchor" style="@style/UiKit.ViewGroup.ScrollView">
<LinearLayout android:layout_gravity="center_vertical" style="@style/UiKit.Copy.Container">
<ImageView android:src="@drawable/img_claim_party" android:scaleType="centerInside" android:adjustViewBounds="true" android:maxWidth="720.0dip" android:importantForAccessibility="no" style="@style/UiKit.ImageView" />
<LinearLayout style="@style/UiKit.Copy">
<TextView android:gravity="center" android:layout_marginBottom="16.0dip" android:text="@string/claim_account_body_mobile" style="@style/UiKit.TextView.H2" />
<TextView android:text="@string/email" style="@style/UiKit.Form.Label" />
<EditText android:id="@id/alert_verify_email_change_email" android:hint="@string/email" android:inputType="textEmailAddress" style="@style/UiKit.Form.Field.EditText.SingleLine" />
<TextView android:text="@string/form_label_password" style="@style/UiKit.Form.Label" />
<EditText android:id="@id/alert_verify_email_change_password" android:hint="@string/form_label_password" android:inputType="textPassword" style="@style/UiKit.Form.Field.EditText.SingleLine" />
</LinearLayout>
</LinearLayout>
</ScrollView>
<LinearLayout android:id="@id/alert_verify_email_anchor" android:layout_alignParentBottom="true" style="@style/UiKit.Copy.Anchor">
<Button android:enabled="false" android:id="@id/alert_verify_email_change" android:text="@string/claim_account" style="@style/UiKit.Button.White" />
</LinearLayout>
<com.google.android.material.appbar.AppBarLayout style="@style/AppTheme.AppBarLayout.Flat.Transparent">
<androidx.appcompat.widget.Toolbar style="@style/AppTheme.Toolbar.Transparent" />
</com.google.android.material.appbar.AppBarLayout>
<com.discord.utilities.dimmer.DimmerView style="@style/UiKit.DimmerView" />
</RelativeLayout>