Changes of com.discord v1011

This commit is contained in:
root 2019-12-18 10:41:56 +01:00
parent 786e6643a6
commit eaff223b42
8250 changed files with 397391 additions and 366909 deletions

View file

@ -0,0 +1,13 @@
<?xml version="1.0" encoding="utf-8"?>
<merge android:layout_width="fill_parent" android:layout_height="fill_parent"
xmlns:android="http://schemas.android.com/apk/res/android">
<LinearLayout android:gravity="center_horizontal" android:id="@id/application_stream_ended" android:background="?colorBackgroundTertiary" android:paddingTop="@dimen/uikit_spacing_xxlarge" android:paddingBottom="@dimen/uikit_spacing_xxlarge" android:visibility="visible" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_centerVertical="true" style="@style/UiKit.ViewGroup.LinearLayout">
<ImageView android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginBottom="@dimen/uikit_spacing_large" android:src="?drawable_stream_ended" android:importantForAccessibility="no" />
<TextView android:textSize="@dimen/uikit_textsize_xlarge" android:textColor="?colorHeadingPrimary" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="@string/stream_ended" style="@style/UiKit.TextView.Semibold" />
</LinearLayout>
<com.discord.views.video.AppVideoStreamRenderer android:id="@id/application_stream_video_renderer" android:background="@color/black" android:layout_width="fill_parent" android:layout_height="fill_parent" />
<TextView android:textSize="@dimen/uikit_textsize_large" android:textColor="@color/white" android:gravity="center" android:id="@id/application_stream_paused" android:background="@color/black_alpha_70" android:visibility="gone" android:layout_width="fill_parent" android:layout_height="fill_parent" android:text="@string/stream_capture_paused" android:fontFamily="@font/whitney_semibold" style="@style/UiKit.TextView" />
<RelativeLayout android:id="@id/application_stream_loading_indicator" android:background="@color/black" android:layout_width="fill_parent" android:layout_height="fill_parent">
<ProgressBar android:layout_width="48.0dip" android:layout_height="48.0dip" android:indeterminate="true" android:layout_centerInParent="true" />
</RelativeLayout>
</merge>

View file

@ -1,10 +1,15 @@
<?xml version="1.0" encoding="utf-8"?>
<merge style="@style/UiKit.ViewGroup.ConstraintLayout"
<merge android:orientation="vertical" android:background="?colorBackgroundSecondary" style="@style/UiKit.ViewGroup.LinearLayout"
xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto">
<com.facebook.drawee.view.SimpleDraweeView android:id="@id/item_game_invite_cover_image" android:background="@drawable/drawable_game_invite_cover_image_background" android:layout_width="128.0dip" android:layout_height="0.0dip" android:scaleType="centerCrop" android:alpha="0.4" app:layout_constraintBottom_toBottomOf="parent" app:layout_constraintEnd_toEndOf="parent" app:layout_constraintHeight_min="128.0dip" app:layout_constraintHorizontal_bias="1.0" app:layout_constraintRight_toRightOf="parent" app:layout_constraintTop_toTopOf="parent" app:overlayImage="@drawable/drawable_game_invite_gradient_overlay" app:roundBottomLeft="false" app:roundTopLeft="false" app:roundedCornerRadius="4.0dip" app:viewAspectRatio="1.0" />
<com.facebook.drawee.view.SimpleDraweeView android:id="@id/item_game_invite_cover_iv" android:layout_width="fill_parent" android:layout_height="168.0dip" android:scaleType="fitCenter" style="@style/UiKit.ImageView" />
<TextView android:id="@id/item_game_invite_header" style="@style/UiKit.Chat.Embed.Header" />
<TextView android:textSize="18.0sp" android:textColor="?primary_100" android:id="@id/item_game_invite_status" android:layout_marginTop="@dimen/uikit_spacing_medium" app:layout_constrainedWidth="true" app:layout_constraintEnd_toEndOf="parent" app:layout_constraintHorizontal_bias="0.0" app:layout_constraintLeft_toLeftOf="@id/item_game_invite_header" app:layout_constraintStart_toStartOf="@id/item_game_invite_header" app:layout_constraintTop_toBottomOf="@id/item_game_invite_header" style="@style/UiKit.TextView" />
<com.google.android.material.button.MaterialButton android:id="@id/item_game_invite_action_btn" android:visibility="gone" android:layout_marginBottom="@dimen/uikit_spacing_medium" android:text="@string/game_action_button_play" app:layout_constraintBottom_toBottomOf="parent" app:layout_constraintEnd_toStartOf="@id/item_game_invite_cover_image" app:layout_constraintHorizontal_bias="0.0" app:layout_constraintStart_toStartOf="@id/item_game_invite_status" app:layout_constraintVertical_bias="1.0" style="@style/UiKit.Material.Button.Green" />
<androidx.recyclerview.widget.RecyclerView android:id="@id/item_game_invite_recycler" android:layout_width="0.0dip" android:layout_height="@dimen/avatar_size_standard" app:layout_constraintBottom_toTopOf="@id/item_game_invite_action_btn" app:layout_constraintEnd_toStartOf="@id/item_game_invite_cover_image" app:layout_constraintLeft_toLeftOf="@id/item_game_invite_status" app:layout_constraintRight_toLeftOf="@id/item_game_invite_cover_image" app:layout_constraintStart_toStartOf="@id/item_game_invite_status" app:layout_constraintTop_toBottomOf="@id/item_game_invite_status" app:layout_constraintVertical_bias="1.0" app:layout_goneMarginBottom="@dimen/uikit_spacing_large" style="@style/UiKit.ViewGroup.RecyclerView.Horizontal" />
<TextView android:gravity="end" android:id="@id/item_game_invite_application_name" android:layout_width="0.0dip" android:layout_height="wrap_content" android:maxLines="2" android:textAlignment="viewEnd" app:layout_constraintBottom_toBottomOf="parent" app:layout_constraintEnd_toEndOf="parent" app:layout_constraintLeft_toLeftOf="@id/item_game_invite_cover_image" app:layout_constraintRight_toRightOf="parent" app:layout_constraintStart_toStartOf="@id/item_game_invite_cover_image" style="@style/UiKit.Chat.Embed.Footer" />
<androidx.constraintlayout.widget.ConstraintLayout android:paddingBottom="@dimen/uikit_spacing_large" android:paddingStart="@dimen/uikit_spacing_large" android:paddingEnd="@dimen/uikit_spacing_large" style="@style/UiKit.ViewGroup.ConstraintLayout">
<com.facebook.drawee.view.SimpleDraweeView android:id="@id/item_game_invite_avatar_iv" android:layout_width="40.0dip" android:layout_height="40.0dip" app:actualImageScaleType="fitCenter" app:layout_constraintEnd_toStartOf="@id/item_game_invite_application_name_tv" app:layout_constraintStart_toStartOf="parent" app:layout_constraintTop_toTopOf="parent" app:placeholderImage="?ic_game_icon_placeholder" app:placeholderImageScaleType="fitCenter" app:roundAsCircle="true" />
<com.facebook.drawee.view.SimpleDraweeView android:id="@id/item_game_invite_avatar_status_iv" android:visibility="gone" android:layout_width="20.0dip" android:layout_height="20.0dip" app:backgroundImage="?colorBackgroundSecondary" app:layout_constraintBottom_toBottomOf="@id/item_game_invite_avatar_iv" app:layout_constraintEnd_toEndOf="@id/item_game_invite_avatar_iv" app:roundAsCircle="true" app:roundingBorderColor="?colorBackgroundSecondary" app:roundingBorderPadding="0.5dip" app:roundingBorderWidth="2.0dip" />
<TextView android:textSize="@dimen/uikit_textsize_large" android:id="@id/item_game_invite_application_name_tv" android:layout_width="0.0dip" android:maxLines="2" android:layout_marginStart="@dimen/uikit_spacing_medium" app:layout_constraintBottom_toTopOf="@id/item_game_invite_subtext" app:layout_constraintEnd_toEndOf="parent" app:layout_constraintStart_toEndOf="@id/item_game_invite_avatar_iv" app:layout_constraintTop_toTopOf="@id/item_game_invite_avatar_iv" style="@style/UiKit.TextView.H1" />
<TextView android:id="@id/item_game_invite_subtext" android:layout_width="0.0dip" app:layout_constrainedWidth="true" app:layout_constraintBottom_toBottomOf="@id/item_game_invite_barrier" app:layout_constraintEnd_toEndOf="parent" app:layout_constraintHorizontal_bias="0.0" app:layout_constraintStart_toStartOf="@id/item_game_invite_application_name_tv" app:layout_constraintTop_toBottomOf="@id/item_game_invite_application_name_tv" style="@style/UiKit.TextView.Subtext" />
<androidx.constraintlayout.widget.Barrier android:id="@id/item_game_invite_barrier" android:layout_width="fill_parent" android:layout_height="wrap_content" app:barrierDirection="bottom" app:constraint_referenced_ids="item_game_invite_avatar_iv,item_game_invite_application_name_tv,item_game_invite_subtext" />
<com.google.android.material.button.MaterialButton android:id="@id/item_game_invite_action_btn" android:visibility="gone" android:layout_marginTop="@dimen/uikit_spacing_large" android:text="@string/game_action_button_play" app:layout_constraintBottom_toBottomOf="parent" app:layout_constraintHorizontal_bias="0.0" app:layout_constraintStart_toStartOf="parent" app:layout_constraintTop_toBottomOf="@id/item_game_invite_barrier" app:layout_constraintVertical_bias="1.0" style="@style/UiKit.Material.Button.Green" />
<androidx.recyclerview.widget.RecyclerView android:id="@id/item_game_invite_recycler" android:layout_width="0.0dip" android:layout_height="@dimen/avatar_size_standard" android:layout_marginTop="@dimen/uikit_spacing_large" android:layout_marginStart="@dimen/uikit_textsize_large" app:layout_constraintBottom_toBottomOf="parent" app:layout_constraintEnd_toEndOf="parent" app:layout_constraintStart_toEndOf="@id/item_game_invite_action_btn" app:layout_constraintTop_toBottomOf="@id/item_game_invite_barrier" app:layout_goneMarginStart="0.0dip" style="@style/UiKit.ViewGroup.RecyclerView.Horizontal" />
</androidx.constraintlayout.widget.ConstraintLayout>
</merge>

View file

@ -0,0 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout android:background="@drawable/bg_stream_preview" android:layout_width="fill_parent" android:layout_height="wrap_content" android:backgroundTint="?colorBackgroundTertiary"
xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto">
<com.facebook.drawee.view.SimpleDraweeView android:id="@id/stream_preview_image" android:layout_width="fill_parent" android:layout_height="152.0dip" app:layout_constraintBottom_toTopOf="@id/stream_preview_placeholder_caption" app:layout_constraintLeft_toLeftOf="parent" app:layout_constraintRight_toRightOf="parent" app:layout_constraintTop_toTopOf="parent" app:placeholderImage="?drawable_stream_preview_not_available" />
<TextView android:textSize="@dimen/uikit_textsize_large" android:textColor="@color/white" android:id="@id/stream_preview_overlay_text" android:background="@drawable/bg_stream_preview_overlay_caption" android:padding="@dimen/uikit_spacing_medium" android:text="@string/join_stream" app:layout_constraintBottom_toBottomOf="parent" app:layout_constraintLeft_toLeftOf="parent" app:layout_constraintRight_toRightOf="parent" app:layout_constraintTop_toTopOf="parent" style="@style/UiKit.TextView" />
<TextView android:textColor="?colorTextNormal" android:id="@id/stream_preview_placeholder_caption" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginTop="@dimen/uikit_spacing_large" android:layout_marginBottom="@dimen/uikit_spacing_large" android:text="@string/stream_preview_loading" app:layout_constrainedHeight="true" app:layout_constrainedWidth="true" app:layout_constraintBottom_toBottomOf="parent" app:layout_constraintLeft_toLeftOf="parent" app:layout_constraintRight_toRightOf="parent" app:layout_constraintTop_toBottomOf="@id/stream_preview_image" style="@style/UiKit.TextView" />
</androidx.constraintlayout.widget.ConstraintLayout>

View file

@ -2,8 +2,7 @@
<RelativeLayout android:id="@id/user_avatar_presence_container" android:layout_width="wrap_content" style="@style/UiKit.ViewGroup.RelativeLayout"
xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto">
<com.facebook.drawee.view.SimpleDraweeView android:id="@id/user_avatar_presence_avatar" android:layout_centerVertical="true" app:roundWithOverlayColor="?primary_700" style="@style/Avatar.XXLarge" />
<RelativeLayout android:layout_width="@dimen/avatar_status_size_extra_xxlarge" android:layout_height="@dimen/avatar_status_size_extra_xxlarge" android:layout_alignBottom="@id/user_avatar_presence_avatar" android:layout_alignEnd="@id/user_avatar_presence_avatar">
<com.facebook.drawee.view.SimpleDraweeView android:id="@id/user_avatar_presence_padding_image" android:layout_width="fill_parent" android:layout_height="fill_parent" app:placeholderImage="?primary_700" app:roundAsCircle="true" />
<com.facebook.drawee.view.SimpleDraweeView android:id="@id/user_avatar_presence_indicator" android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_margin="@dimen/avatar_status_size_extra_margin_xxlarge" android:layout_centerInParent="true" app:placeholderImage="@color/status_grey_500" app:roundAsCircle="true" />
</RelativeLayout>
<FrameLayout android:id="@id/user_avatar_presence_indicator_wrap" android:background="?colorPrimaryCircle" android:layout_width="@dimen/avatar_status_size_extra_xxlarge" android:layout_height="@dimen/avatar_status_size_extra_xxlarge" android:layout_marginBottom="-3.0dip" android:layout_alignBottom="@id/user_avatar_presence_avatar" android:layout_marginEnd="-3.0dip" android:layout_alignEnd="@id/user_avatar_presence_avatar" app:backgroundTint="?primary_700">
<com.facebook.drawee.view.SimpleDraweeView android:id="@id/user_avatar_presence_indicator" android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_margin="@dimen/avatar_status_size_extra_margin_xxlarge" app:placeholderImage="@color/status_grey_500" app:roundAsCircle="true" />
</FrameLayout>
</RelativeLayout>

View file

@ -5,6 +5,7 @@
<com.facebook.drawee.view.SimpleDraweeView android:id="@id/participant_bg_avatar" android:layout_width="fill_parent" android:layout_height="fill_parent" />
<View android:id="@id/participant_bg_letterbox" android:background="@android:color/black" android:visibility="gone" android:layout_width="fill_parent" android:layout_height="fill_parent" />
<com.discord.views.VoiceUserView android:id="@id/participant_voice_user_view" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_centerInParent="true" app:vuv_avatar_size="@dimen/avatar_size_large" />
<com.discord.views.video.AppVideoStreamRenderer android:id="@id/participant_video_stream_renderer" android:layout_width="fill_parent" android:layout_height="fill_parent" app:vcpv_is_overlay="true" app:vcpv_match_video_orientation="false" />
</RelativeLayout>
<ImageView android:id="@id/participant_voice_status_indicator" android:background="@drawable/drawable_bg_voice_status_indicator" android:padding="4.0dip" android:layout_width="24.0dip" android:layout_height="24.0dip" android:layout_marginTop="8.0dip" android:layout_alignParentTop="true" android:layout_marginEnd="8.0dip" android:layout_alignParentEnd="true" />
<RelativeLayout android:id="@id/participant_video_loading_indicator" android:background="@android:color/black" android:visibility="gone" android:layout_width="fill_parent" android:layout_height="fill_parent">

View file

@ -1,8 +1,12 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout android:gravity="center_vertical" android:background="?selectableItemBackground" android:paddingLeft="@dimen/uikit_spacing_large" android:paddingTop="@dimen/uikit_spacing_medium" android:paddingRight="@dimen/uikit_spacing_large" android:paddingBottom="@dimen/uikit_spacing_medium" android:focusable="true" android:clickable="true" style="@style/UiKit.ViewGroup.LinearLayout.Horizontal"
<LinearLayout android:paddingLeft="@dimen/uikit_spacing_large" android:paddingTop="@dimen/uikit_spacing_medium" android:paddingRight="@dimen/uikit_spacing_large" android:paddingBottom="@dimen/uikit_spacing_medium" android:layout_width="fill_parent" android:layout_height="wrap_content" style="@style/UiKit.ViewGroup.LinearLayout"
xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto">
<com.discord.views.VoiceUserView android:id="@id/voice_user_list_item_user_avatar" android:layout_width="wrap_content" android:layout_height="wrap_content" app:vuv_avatar_size="52.0dip" />
<TextView android:textSize="@dimen/uikit_textsize_large" android:textColor="?primary_100" android:id="@id/voice_user_list_item_user_name" android:layout_width="0.0dip" android:layout_marginLeft="16.0dip" android:layout_marginRight="16.0dip" android:singleLine="true" android:layout_weight="1.0" style="@style/UiKit.TextView" />
<ImageView android:id="@id/voice_user_list_item_mute_indicator" android:padding="8.0dip" android:src="@drawable/ic_mic_grey_24dp" android:contentDescription="@string/form_label_muted" style="@style/UiKit.ImageView" />
<ImageView android:id="@id/voice_user_list_item_deafen_indicator" android:padding="8.0dip" android:src="@drawable/ic_headset_grey_24dp" android:contentDescription="@string/sound_deafen" style="@style/UiKit.ImageView" />
<LinearLayout android:gravity="center_vertical" android:background="?selectableItemBackground" android:focusable="true" android:clickable="true" style="@style/UiKit.ViewGroup.LinearLayout.Horizontal">
<com.discord.views.VoiceUserView android:id="@id/voice_user_list_item_user_avatar" android:layout_width="wrap_content" android:layout_height="wrap_content" app:vuv_avatar_size="52.0dip" />
<TextView android:textSize="@dimen/uikit_textsize_large" android:textColor="?colorHeadingPrimary" android:id="@id/voice_user_list_item_user_name" android:layout_width="0.0dip" android:layout_marginLeft="@dimen/uikit_spacing_large" android:layout_marginRight="@dimen/uikit_spacing_large" android:singleLine="true" android:layout_weight="1.0" style="@style/UiKit.TextView" />
<TextView android:textSize="@dimen/uikit_textsize_small" android:textColor="@color/white" android:id="@id/voice_user_list_item_live_indicator" android:background="@drawable/drawable_rect_rounded_red_500" android:paddingLeft="@dimen/uikit_spacing_small" android:paddingRight="@dimen/uikit_spacing_small" android:text="@string/live" android:textAllCaps="true" android:fontFamily="@font/whitney_semibold" android:layout_marginEnd="@dimen/uikit_spacing_medium" style="@style/UiKit.TextView" />
<ImageView android:id="@id/voice_user_list_item_mute_indicator" android:padding="@dimen/uikit_spacing_medium" android:src="@drawable/ic_mic_grey_24dp" android:contentDescription="@string/form_label_muted" style="@style/UiKit.ImageView" />
<ImageView android:id="@id/voice_user_list_item_deafen_indicator" android:padding="@dimen/uikit_spacing_medium" android:src="@drawable/ic_headset_grey_24dp" android:contentDescription="@string/sound_deafen" style="@style/UiKit.ImageView" />
</LinearLayout>
<com.discord.views.StreamPreviewView android:id="@id/voice_user_list_item_user_stream_preview" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_marginTop="@dimen/uikit_spacing_large" />
</LinearLayout>

View file

@ -1,2 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<com.discord.widgets.chat.list.ViewEmbedGameInvite style="@style/UiKit.Chat.Embed.Container" />
<androidx.cardview.widget.CardView android:layout_marginStart="@dimen/uikit_guideline_chat" android:layout_marginEnd="@dimen/uikit_spacing_large" app:cardCornerRadius="4.0dip" app:cardElevation="1.0dip" style="@style/UiKit.Chat.Embed.CardView"
xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto">
<com.discord.widgets.chat.list.ViewEmbedGameInvite android:id="@id/item_game_invite" style="@style/UiKit.ViewGroup" />
</androidx.cardview.widget.CardView>

View file

@ -8,7 +8,7 @@
<LinearLayout android:paddingBottom="@dimen/padding_bottom_fab_screen" android:focusableInTouchMode="true" android:descendantFocusability="beforeDescendants" android:baselineAligned="false" android:animateLayoutChanges="true" style="@style/UiKit.ViewGroup.LinearLayout">
<TextView android:paddingTop="@dimen/uikit_spacing_medium" android:text="@string/message_preview" android:textAllCaps="true" style="@style/UiKit.Search.Header" />
<androidx.recyclerview.widget.RecyclerView android:orientation="horizontal" android:id="@id/external_share_list" android:background="?container_bg_dark_a60" android:visibility="gone" android:clipToPadding="false" android:layout_marginLeft="@dimen/uikit_spacing_large" android:layout_marginRight="@dimen/uikit_spacing_large" app:layoutManager="androidx.recyclerview.widget.LinearLayoutManager" style="@style/UiKit.ViewGroup.RecyclerView" />
<com.discord.widgets.chat.list.ViewEmbedGameInvite android:id="@id/external_share_activity_action_preview" android:background="?chat_embed_bg" android:visibility="gone" android:layout_marginLeft="@dimen/uikit_spacing_large" android:layout_marginRight="@dimen/uikit_spacing_large" android:elevation="@dimen/app_elevation" style="@style/UiKit.ViewGroup.ConstraintLayout" />
<com.discord.widgets.chat.list.ViewEmbedGameInvite android:id="@id/external_share_activity_action_preview" android:background="?chat_embed_bg" android:visibility="visible" android:layout_marginLeft="@dimen/uikit_spacing_large" android:layout_marginRight="@dimen/uikit_spacing_large" android:animateLayoutChanges="true" android:elevation="@dimen/app_elevation" style="@style/UiKit.ViewGroup.LinearLayout" />
<EditText android:id="@id/external_share_comment" android:layout_marginLeft="@dimen/uikit_spacing_large" android:layout_marginRight="@dimen/uikit_spacing_large" android:hint="@string/add_a_comment_optional" android:inputType="textAutoComplete|textAutoCorrect|textCapSentences" android:imeOptions="actionNext" style="@style/UiKit.Form.Field.EditText.SingleLine" />
<TextView android:text="@string/share_to" android:textAllCaps="true" style="@style/UiKit.Search.Header" />
<com.discord.app.AppViewFlipper android:id="@id/search_flipper" android:paddingLeft="@dimen/uikit_spacing_large" android:paddingRight="@dimen/uikit_spacing_large" android:clipToPadding="false" android:layout_width="fill_parent" android:layout_height="wrap_content">

View file

@ -2,7 +2,7 @@
<LinearLayout android:gravity="center_horizontal" style="@style/UiKit.ViewGroup.LinearLayout"
xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto">
<ImageView android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginTop="@dimen/uikit_spacing_large" android:layout_marginBottom="@dimen/uikit_spacing_xlarge" android:src="@drawable/img_remote_auth_loaded" android:importantForAccessibility="no" />
<TextView android:text="@string/qr_code_login_success" style="@style/UiKit.TextView.H1" />
<TextView android:text="@string/qr_code_login_confirm" style="@style/UiKit.TextView.H1" />
<TextView android:textColor="?colorHeadingSecondary" android:layout_marginTop="@dimen/uikit_spacing_medium" android:text="@string/confirm_qr_description" android:textAlignment="center" style="@style/UiKit.TextView" />
<androidx.cardview.widget.CardView android:visibility="gone" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_marginTop="@dimen/uikit_spacing_xlarge" app:cardBackgroundColor="?colorBackgroundSecondary" app:cardCornerRadius="4.0dip" app:cardElevation="0.0dip">
<androidx.appcompat.widget.SwitchCompat android:textColor="?colorHeadingPrimary" android:id="@id/remote_auth_temporary_switch" android:layout_width="fill_parent" android:layout_height="wrap_content" android:text="@string/confirm_qr_keep_me_signed_in" style="@style/UiKit.ListItem" />

View file

@ -0,0 +1,13 @@
<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout android:background="@color/black" android:fitsSystemWindows="true" android:keepScreenOn="true" style="@style/UiKit.ViewGroup.Page"
xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto">
<com.discord.views.video.ApplicationStreamView android:id="@id/application_stream_view" android:focusable="true" android:clickable="true" android:layout_width="fill_parent" android:layout_height="fill_parent" />
<androidx.constraintlayout.widget.ConstraintLayout android:layout_width="fill_parent" android:layout_height="fill_parent">
<com.google.android.material.appbar.AppBarLayout android:id="@id/action_bar_toolbar_layout" android:layout_width="fill_parent" android:layout_height="?actionBarSize" app:layout_constraintTop_toTopOf="parent" style="@style/AppTheme.AppBarLayout.Flat">
<androidx.appcompat.widget.Toolbar style="@style/AppTheme.Toolbar.Transparent" />
</com.google.android.material.appbar.AppBarLayout>
<ImageView android:id="@id/spectate_report_problem" android:visibility="gone" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginTop="@dimen/uikit_spacing_large" android:src="@drawable/ic_warning_icon_24dp" android:contentDescription="@string/stream_report_problem" android:layout_marginEnd="@dimen/uikit_spacing_large" app:layout_constraintEnd_toEndOf="parent" app:layout_constraintRight_toRightOf="parent" app:layout_constraintTop_toBottomOf="@id/action_bar_toolbar_layout" />
<include android:visibility="gone" android:layout_width="0.0dip" android:layout_height="wrap_content" app:layout_constrainedHeight="true" app:layout_constraintBottom_toTopOf="@id/spectate_push_to_talk" app:layout_constraintLeft_toLeftOf="parent" app:layout_constraintRight_toRightOf="parent" layout="@layout/widget_spectate_controls" />
<Button android:textColor="@color/primary_100" android:id="@id/spectate_push_to_talk" android:background="@drawable/drawable_button_primary_700" android:visibility="gone" android:layout_width="0.0dip" android:layout_margin="@dimen/uikit_spacing_medium" android:text="@string/keybind_push_to_talk" app:layout_constraintBottom_toBottomOf="parent" app:layout_constraintLeft_toLeftOf="parent" app:layout_constraintRight_toRightOf="parent" style="@style/UiKit.Button" />
</androidx.constraintlayout.widget.ConstraintLayout>
</androidx.constraintlayout.widget.ConstraintLayout>

View file

@ -0,0 +1,8 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout android:gravity="center" android:id="@id/spectate_controls" style="@style/UiKit.ViewGroup.LinearLayout.Horizontal"
xmlns:android="http://schemas.android.com/apk/res/android">
<ImageView android:id="@id/spectate_controls_disconnect_stream" android:background="@drawable/drawable_circle_primary_700" android:layout_margin="11.0dip" android:src="@drawable/ic_stop_stream_v2" android:contentDescription="@string/video" style="@style/UiKit.Calls.ButtonCircle" />
<ImageView android:id="@id/spectate_controls_full_screen_toggle" android:background="@drawable/drawable_circle_primary_700" android:layout_margin="11.0dip" android:src="@drawable/ic_enable_landscape" android:contentDescription="@string/video" style="@style/UiKit.Calls.ButtonCircle" />
<ImageView android:id="@id/spectate_controls_mute" android:background="@drawable/drawable_circle_primary_700" android:layout_margin="11.0dip" android:src="@drawable/ic_mic_white_24dp" android:contentDescription="@string/mute" style="@style/UiKit.Calls.ButtonCircle" />
<ImageView android:id="@id/spectate_controls_disconnect_voice" android:background="@drawable/drawable_circle_red" android:layout_margin="11.0dip" android:src="@drawable/ic_call_audio_stop_white_24dp" android:contentDescription="@string/disconnect" style="@style/UiKit.Calls.ButtonCircle" />
</LinearLayout>

View file

@ -0,0 +1,23 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout style="@style/UiKit.ViewGroup.Page.LinearLayout"
xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto">
<LinearLayout android:id="@id/notice_header_container" style="@style/UiKit.ViewGroup.LinearLayout">
<TextView android:id="@id/report_problem_header" android:padding="@dimen/uikit_spacing_large" android:text="@string/stream_report_a_problem" style="@style/UiKit.TextView.H1.Bold" />
<View style="@style/UiKit.Divider" />
</LinearLayout>
<ScrollView android:layout_width="fill_parent" android:layout_height="200.0dip" android:fadeScrollbars="false">
<RadioGroup android:id="@id/report_error_radio_group" android:paddingLeft="@dimen/uikit_spacing_large" android:paddingTop="@dimen/uikit_spacing_medium" android:paddingRight="@dimen/uikit_spacing_large" style="@style/UiKit.ViewGroup.LinearLayout">
<RadioButton android:textSize="@dimen/uikit_textsize_large" android:textColor="?primary_100" android:id="@id/report_error_stream_black" android:layout_width="fill_parent" android:layout_marginBottom="@dimen/uikit_spacing_medium" android:text="@string/stream_report_black" android:layoutDirection="rtl" style="@style/UiKit.TextView" />
<RadioButton android:textSize="@dimen/uikit_textsize_large" android:textColor="?primary_100" android:id="@id/report_error_blurry" android:layout_width="fill_parent" android:layout_marginTop="@dimen/uikit_spacing_medium" android:layout_marginBottom="@dimen/uikit_spacing_medium" android:text="@string/stream_report_blurry" android:layoutDirection="rtl" style="@style/UiKit.TextView" />
<RadioButton android:textSize="@dimen/uikit_textsize_large" android:textColor="?primary_100" android:id="@id/report_error_lagging" android:layout_width="fill_parent" android:layout_marginTop="@dimen/uikit_spacing_medium" android:layout_marginBottom="@dimen/uikit_spacing_medium" android:text="@string/stream_report_lagging" android:layoutDirection="rtl" style="@style/UiKit.TextView" />
<RadioButton android:textSize="@dimen/uikit_textsize_large" android:textColor="?primary_100" android:id="@id/report_error_out_of_sync" android:layout_width="fill_parent" android:layout_marginTop="@dimen/uikit_spacing_medium" android:layout_marginBottom="@dimen/uikit_spacing_medium" android:text="@string/stream_report_out_of_sync" android:layoutDirection="rtl" style="@style/UiKit.TextView" />
<RadioButton android:textSize="@dimen/uikit_textsize_large" android:textColor="?primary_100" android:id="@id/report_error_audio_absent" android:layout_width="fill_parent" android:layout_marginTop="@dimen/uikit_spacing_medium" android:layout_marginBottom="@dimen/uikit_spacing_medium" android:text="@string/stream_report_audio_missing" android:layoutDirection="rtl" style="@style/UiKit.TextView" />
<RadioButton android:textSize="@dimen/uikit_textsize_large" android:textColor="?primary_100" android:id="@id/report_error_audio_poor" android:layout_width="fill_parent" android:layout_marginTop="@dimen/uikit_spacing_medium" android:layout_marginBottom="@dimen/uikit_spacing_medium" android:text="@string/stream_report_audio_poor" android:layoutDirection="rtl" style="@style/UiKit.TextView" />
</RadioGroup>
</ScrollView>
<View style="@style/UiKit.Settings.Divider" />
<LinearLayout style="@style/UiKit.Dialog.ButtonContainer">
<Button android:textColor="?primary_100" android:layout_gravity="center_vertical" android:id="@id/report_problem_cancel" android:background="?selectableItemBackground" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="@dimen/uikit_spacing_medium" android:text="@string/cancel" android:layout_marginStart="@dimen/uikit_spacing_medium" />
<com.discord.views.LoadingButton android:layout_gravity="center_vertical" android:id="@id/report_problem_submit" android:background="@drawable/drawable_button_green_neutral" android:padding="@dimen/uikit_spacing_medium" android:paddingTop="@dimen/uikit_spacing_large" android:paddingBottom="@dimen/uikit_spacing_large" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="@dimen/uikit_spacing_medium" android:fontFamily="@font/whitney_medium" android:layout_marginStart="@dimen/uikit_spacing_medium" app:lb_disabled_alpha="0.5" app:lb_text="@string/stream_report_submit" app:lb_text_color="@color/white" />
</LinearLayout>
</LinearLayout>

View file

@ -0,0 +1,16 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout style="@style/UiKit.ViewGroup.Page.LinearLayout"
xmlns:android="http://schemas.android.com/apk/res/android">
<LinearLayout android:id="@id/notice_header_container" style="@style/UiKit.ViewGroup.LinearLayout">
<TextView android:padding="@dimen/uikit_spacing_large" android:text="@string/stream_full_modal_header" style="@style/UiKit.TextView.H1.Bold" />
<View style="@style/UiKit.Divider" />
</LinearLayout>
<LinearLayout android:paddingLeft="@dimen/uikit_spacing_large" android:paddingTop="@dimen/uikit_spacing_medium" android:paddingRight="@dimen/uikit_spacing_large" style="@style/UiKit.ViewGroup.LinearLayout">
<TextView android:textColor="@color/primary_200" android:id="@id/cancel_premium_grandfathered" android:layout_marginBottom="@dimen/uikit_spacing_medium" android:text="@string/stream_full_modal_body" android:fontFamily="@font/whitney_bold" style="@style/UiKit.TextView" />
<ImageView android:layout_width="fill_parent" android:layout_height="fill_parent" android:src="@drawable/drawable_stream_full" android:importantForAccessibility="no" />
</LinearLayout>
<View style="@style/UiKit.Settings.Divider" />
<LinearLayout style="@style/UiKit.Dialog.ButtonContainer">
<Button android:textColor="@color/white" android:layout_gravity="center_vertical" android:id="@id/stream_full_confirm" android:background="@drawable/drawable_button_purple" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="@dimen/uikit_spacing_medium" android:text="@string/okay" android:layout_marginStart="@dimen/uikit_spacing_medium" />
</LinearLayout>
</LinearLayout>

View file

@ -0,0 +1,10 @@
<?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">
<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>
<RelativeLayout style="@style/UiKit.ViewGroup.RelativeLayout.AppBarScrollingViewBehavior">
<androidx.recyclerview.widget.RecyclerView android:id="@id/spectators_list" android:background="?colorBackgroundPrimary" android:layout_width="fill_parent" android:layout_height="fill_parent" />
</RelativeLayout>
</androidx.coordinatorlayout.widget.CoordinatorLayout>

View file

@ -3,26 +3,18 @@
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/UserProfile.Section.Header" />
<androidx.cardview.widget.CardView app:cardBackgroundColor="?colorBackgroundPrimary" style="@style/UserProfile.Section.Card">
<androidx.constraintlayout.widget.ConstraintLayout android:paddingBottom="@dimen/uikit_spacing_large" style="@style/UiKit.ViewGroup.ConstraintLayout">
<androidx.constraintlayout.widget.Guideline android:orientation="vertical" android:id="@id/start_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="parent" app:layout_constraintLeft_toLeftOf="parent" app:layout_constraintRight_toRightOf="parent" app:layout_constraintStart_toStartOf="parent" app:layout_constraintTop_toBottomOf="parent" app:roundedCornerRadius="@dimen/uikit_spacing_small" />
<com.facebook.drawee.view.SimpleDraweeView android:id="@id/rich_presence_image_large" android:layout_width="64.0dip" android:layout_height="64.0dip" android:layout_marginTop="@dimen/uikit_spacing_large" app:layout_constraintHorizontal_chainStyle="spread_inside" app:layout_constraintLeft_toLeftOf="@id/start_guideline" app:layout_constraintStart_toStartOf="@id/start_guideline" app:layout_constraintTop_toBottomOf="@id/stream_preview_image" app:placeholderImage="?colorBackgroundSecondary" 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_marginTop="@dimen/uikit_image_border_size" android:layout_marginStart="@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:id="@id/rich_presence_image_small_wrap" android:background="?primary_600" 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.Medium" />
<androidx.constraintlayout.widget.ConstraintLayout style="@style/UiKit.ViewGroup.ConstraintLayout">
<com.discord.views.StreamPreviewView android:id="@id/stream_preview" android:background="?colorBackgroundTertiary" android:layout_width="fill_parent" android:layout_height="wrap_content" app:layout_constraintBottom_toTopOf="@id/rich_presence_container_data" app:layout_constraintLeft_toLeftOf="parent" app:layout_constraintRight_toRightOf="parent" app:layout_constraintTop_toTopOf="parent" app:layout_constraintVertical_chainStyle="packed" />
<com.facebook.drawee.view.SimpleDraweeView android:id="@id/rich_presence_image_large" android:layout_width="64.0dip" android:layout_height="64.0dip" android:layout_marginBottom="@dimen/uikit_spacing_small" android:layout_marginStart="@dimen/uikit_spacing_small" app:layout_constraintBottom_toBottomOf="parent" app:layout_constraintHorizontal_chainStyle="spread_inside" app:layout_constraintLeft_toLeftOf="parent" app:layout_constraintRight_toLeftOf="@id/rich_presence_container_data" app:layout_constraintStart_toStartOf="parent" app:layout_constraintTop_toTopOf="@id/rich_presence_container_data" app:placeholderImage="?colorBackgroundSecondary" app:roundedCornerRadius="@dimen/uikit_spacing_small" />
<FrameLayout android:id="@id/rich_presence_image_small_wrap" android:layout_width="0.0dip" android:layout_height="0.0dip" app:layout_constraintLeft_toLeftOf="parent" app:layout_constraintTop_toTopOf="parent">
<com.facebook.drawee.view.SimpleDraweeView android:id="@id/rich_presence_image_small" android:visibility="gone" android:layout_width="0.0dip" android:layout_height="0.0dip" />
</FrameLayout>
<LinearLayout android:id="@id/rich_presence_container_data" android:layout_width="0.0dip" android:layout_height="wrap_content" android:minHeight="80.0dip" android:layout_marginStart="@dimen/uikit_spacing_large" 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">
<LinearLayout android:id="@id/rich_presence_container_data" android:layout_width="0.0dip" android:layout_height="wrap_content" android:layout_marginTop="@dimen/uikit_spacing_small" android:layout_marginBottom="@dimen/uikit_spacing_small" android:layout_marginStart="@dimen/uikit_spacing_large" app:layout_constraintBottom_toBottomOf="parent" app:layout_constraintEnd_toEndOf="parent" app:layout_constraintRight_toRightOf="parent" app:layout_constraintStart_toEndOf="@id/rich_presence_image_large" app:layout_constraintTop_toBottomOf="@id/stream_preview" style="@style/UiKit.ViewGroup.LinearLayout">
<TextView android:ellipsize="marquee" android:id="@id/rich_presence_title" android:singleLine="true" android:marqueeRepeatLimit="marquee_forever" style="@style/UserProfile.PresenceSection.Body.HeaderText" />
<TextView android:id="@id/rich_presence_details" style="@style/UserProfile.PresenceSection.Body.Subtext" />
<TextView android:id="@id/rich_presence_state" style="@style/UserProfile.PresenceSection.Body.Subtext" />
<TextView android:id="@id/rich_presence_time" style="@style/UserProfile.PresenceSection.Body.Subtext" />
</LinearLayout>
<com.google.android.material.button.MaterialButton android:id="@id/rich_presence_watch_button" android:layout_width="fill_parent" android:layout_height="wrap_content" android:text="@string/watch_stream" app:layout_constraintEnd_toEndOf="@id/embed_guideline_right" app:layout_constraintLeft_toLeftOf="@id/start_guideline" app:layout_constraintRight_toRightOf="@id/embed_guideline_right" app:layout_constraintStart_toStartOf="@id/start_guideline" app:layout_constraintTop_toBottomOf="@id/rich_presence_container_data" style="@style/UserProfile.PresenceSection.MaterialButton" />
</androidx.constraintlayout.widget.ConstraintLayout>
</androidx.cardview.widget.CardView>
</LinearLayout>