Changes of com.discord v1096

This commit is contained in:
root 2020-04-11 17:34:05 +02:00
parent 764417c2e9
commit 1cab4592c1
19237 changed files with 1498968 additions and 1479412 deletions

View file

@ -6,16 +6,16 @@
<androidx.appcompat.widget.AppCompatImageButton android:id="@id/flex_input_attachment_clear_btn" android:layout_width="wrap_content" android:layout_height="wrap_content" android:src="@drawable/ic_clear_24dp" android:contentDescription="@string/clear_attachments" android:elevation="4.0dip" style="@style/FlexInput.Input.Button" />
</LinearLayout>
<RelativeLayout android:animateLayoutChanges="true" style="@style/UiKit.ViewGroup">
<LinearLayout android:id="@id/flex_input_left_btns_container" android:layout_width="wrap_content" android:layout_marginLeft="5.0dip" android:layout_marginTop="@dimen/uikit_spacing_medium" android:layout_marginBottom="@dimen/uikit_spacing_medium" android:layout_alignParentLeft="true" android:layout_centerVertical="true" style="@style/UiKit.ViewGroup.LinearLayout.Horizontal">
<LinearLayout android:id="@id/flex_input_left_btns_container" android:layout_width="wrap_content" android:layout_marginLeft="5.0dip" android:layout_marginTop="@dimen/uikit_spacing_medium" android:layout_marginBottom="@dimen/uikit_spacing_medium" android:layout_alignParentLeft="true" android:layout_centerVertical="true" android:animateLayoutChanges="true" style="@style/UiKit.ViewGroup.LinearLayout.Horizontal">
<androidx.appcompat.widget.AppCompatImageButton android:layout_gravity="center_vertical" android:id="@id/flex_input_expand_btn" android:padding="@dimen/uikit_spacing_medium" android:visibility="gone" android:layout_width="wrap_content" android:layout_height="wrap_content" android:src="@drawable/ic_carot_right_24dp" android:tint="?colorInteractiveNormal" android:contentDescription="@string/expand_buttons" style="@style/FlexInput.Input" />
<androidx.appcompat.widget.AppCompatImageButton android:id="@id/flex_input_camera_btn" android:background="@drawable/drawable_circle_black" android:padding="@dimen/uikit_spacing_medium" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="6.0dip" android:layout_marginRight="@dimen/uikit_spacing_medium" android:src="@drawable/ic_camera_24dp" android:tint="?colorInteractiveNormal" android:contentDescription="@string/camera" android:backgroundTint="?colorBackgroundSecondaryAlt" style="@style/FlexInput.Input" />
<androidx.appcompat.widget.AppCompatImageButton android:id="@id/flex_input_gallery_btn" android:background="@drawable/drawable_circle_black" android:padding="@dimen/uikit_spacing_medium" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginRight="@dimen/uikit_spacing_medium" android:src="@drawable/ic_gallery_24dp" android:tint="?colorInteractiveNormal" android:contentDescription="@string/attachment_photos" android:backgroundTint="?colorBackgroundSecondaryAlt" style="@style/FlexInput.Input" />
</LinearLayout>
<LinearLayout android:id="@id/flex_input_main_input_container" android:background="@drawable/drawable_bg_corners_20dp" android:paddingLeft="12.0dip" android:paddingRight="@dimen/uikit_spacing_small" android:layout_marginTop="@dimen/uikit_spacing_medium" android:layout_marginBottom="@dimen/uikit_spacing_medium" android:layout_toLeftOf="@id/flex_input_send_btn_container" android:layout_toRightOf="@id/flex_input_left_btns_container" android:layout_centerVertical="true" android:backgroundTint="?colorBackgroundSecondaryAlt" style="@style/UiKit.ViewGroup.LinearLayout.Horizontal">
<com.lytefast.flexinput.widget.FlexEditText android:textColor="?colorTextNormal" android:textColorHint="?colorTextMuted" android:gravity="center_vertical" android:id="@id/flex_input_text_input" android:background="@android:color/transparent" android:focusable="true" android:focusableInTouchMode="true" android:layout_width="0.0dip" android:layout_height="wrap_content" android:hint="@string/send_a_message" android:maxLines="5" android:layout_weight="1.0" android:inputType="textAutoComplete|textMultiLine|textShortMessage" />
<com.lytefast.flexinput.widget.FlexEditText android:textSize="@dimen/uikit_textsize_medium" android:textColor="?colorTextNormal" android:textColorHint="?colorTextMuted" android:gravity="center_vertical" android:id="@id/flex_input_text_input" android:background="@android:color/transparent" android:focusable="true" android:focusableInTouchMode="true" android:layout_width="0.0dip" android:layout_height="wrap_content" android:hint="@string/send_a_message" android:maxLines="5" android:layout_weight="1.0" android:inputType="textAutoComplete|textMultiLine|textShortMessage" />
<androidx.appcompat.widget.AppCompatImageButton android:layout_gravity="center_vertical" android:id="@id/flex_input_emoji_btn" android:background="@null" android:padding="@dimen/uikit_spacing_medium" android:visibility="gone" android:src="@drawable/ic_emoji_24dp" android:tint="?colorInteractiveNormal" android:drawablePadding="0.0dip" android:contentDescription="@string/emoji" style="@style/UiKit.ImageButton" />
</LinearLayout>
<FrameLayout android:id="@id/flex_input_send_btn_container" android:background="@drawable/drawable_circle_black" android:visibility="gone" android:clipToPadding="false" android:layout_width="40.0dip" android:layout_height="40.0dip" android:layout_marginLeft="@dimen/uikit_spacing_medium" android:layout_marginTop="@dimen/uikit_spacing_medium" android:layout_marginRight="12.0dip" android:layout_marginBottom="@dimen/uikit_spacing_medium" android:layout_alignParentRight="true" android:layout_centerVertical="true" android:contentDescription="@string/send_message" android:backgroundTint="?chat_send_btn_bg">
<FrameLayout android:id="@id/flex_input_send_btn_container" android:background="@drawable/drawable_circle_black" android:clipToPadding="false" android:layout_width="40.0dip" android:layout_height="40.0dip" android:layout_marginLeft="@dimen/uikit_spacing_medium" android:layout_marginTop="@dimen/uikit_spacing_medium" android:layout_marginRight="12.0dip" android:layout_marginBottom="@dimen/uikit_spacing_medium" android:layout_alignParentRight="true" android:layout_centerVertical="true" android:contentDescription="@string/send_message" android:backgroundTint="?chat_send_btn_bg">
<ImageView android:layout_gravity="center" android:id="@id/flex_input_send_btn_image" android:layout_width="wrap_content" android:layout_height="wrap_content" android:src="@drawable/ic_send_24dp" android:tint="?chat_send_btn" android:importantForAccessibility="no" />
</FrameLayout>
<TextView android:gravity="center" android:id="@id/flex_input_cannot_send_text" android:background="?colorBackgroundSecondary" android:paddingLeft="12.0dip" android:paddingTop="@dimen/uikit_spacing_xlarge" android:paddingRight="12.0dip" android:paddingBottom="@dimen/uikit_spacing_xlarge" android:focusable="true" android:visibility="gone" android:clickable="true" android:layout_height="wrap_content" android:text="@string/no_send_messages_permission_placeholder" android:layout_alignParentStart="true" android:layout_alignParentEnd="true" style="@style/UiKit.TextView" />

View file

@ -0,0 +1,9 @@
<?xml version="1.0" encoding="utf-8"?>
<merge android:layout_width="wrap_content" android:layout_height="wrap_content" android:maxHeight="500.0dip" app:cardBackgroundColor="@color/transparent" app:cardCornerRadius="8.0dip" app:cardElevation="0.0dip"
xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto">
<com.google.android.exoplayer2.ui.PlayerView android:layout_gravity="center" android:id="@id/inline_media_player_view" android:layout_width="fill_parent" android:layout_height="fill_parent" app:resize_mode="fit" app:surface_type="surface_view" app:use_controller="false" />
<com.facebook.drawee.view.SimpleDraweeView android:id="@id/inline_media_image_preview" android:layout_width="fill_parent" android:layout_height="fill_parent" app:overlayImage="@drawable/drawable_overlay_image_square" app:placeholderImage="?colorBackgroundPrimary" style="@style/UiKit.ImageView" />
<ImageView android:layout_gravity="center" android:id="@id/inline_media_play_button" android:background="@drawable/drawable_circle_primary_900" android:padding="@dimen/uikit_spacing_medium" android:visibility="gone" android:layout_width="@dimen/embed_play_button_width" android:layout_height="@dimen/embed_play_button_width" android:src="@drawable/ic_play_arrow_24dp" android:scaleType="fitXY" android:contentDescription="@string/play_full_video" android:alpha="0.6" app:tint="@color/white" />
<ProgressBar android:layout_gravity="center" android:id="@id/inline_media_loading_indicator" android:background="@drawable/drawable_circle_primary_900" android:padding="@dimen/uikit_spacing_medium" android:layout_width="@dimen/embed_play_button_width" android:layout_height="@dimen/embed_play_button_width" android:indeterminate="true" android:layout_centerInParent="true" android:alpha="0.6" android:indeterminateTint="@color/white" />
<ImageView android:layout_gravity="start|bottom|center" android:id="@id/inline_media_volume_toggle" android:background="@drawable/drawable_circle_primary_900" android:padding="@dimen/uikit_spacing_medium" android:layout_width="32.0dip" android:layout_height="32.0dip" android:layout_marginBottom="@dimen/uikit_spacing_medium" android:src="@drawable/ic_volume_up_white_24dp" android:tint="@color/white" android:alpha="0.6" android:layout_marginStart="@dimen/uikit_spacing_medium" />
</merge>

View file

@ -1,12 +1,13 @@
<?xml version="1.0" encoding="utf-8"?>
<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"
<LinearLayout android:background="?colorBackgroundPrimary" 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">
<LinearLayout android:gravity="center_vertical" android:background="?selectableItemBackground" 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="?colorHeaderPrimary" 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" />
<ImageView android:id="@id/voice_user_list_item_mute_indicator" android:padding="@dimen/uikit_spacing_medium" android:src="@drawable/ic_mic_white_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_white_24dp" android:contentDescription="@string/sound_deafen" style="@style/UiKit.ImageView" />
<ImageView android:id="@id/voice_user_list_item_video_indicator" android:padding="@dimen/uikit_spacing_medium" android:src="?ic_camera_enabled" android:contentDescription="@string/video" 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,3 +1,3 @@
<?xml version="1.0" encoding="utf-8"?>
<androidx.recyclerview.widget.RecyclerView android:background="?colorBackgroundPrimary" android:scrollbars="none" android:layout_below="@id/connected_list_header" style="@style/UiKit.ViewGroup.RecyclerView"
<androidx.recyclerview.widget.RecyclerView android:background="?colorBackgroundPrimary" android:scrollbars="none" style="@style/UiKit.ViewGroup.RecyclerView"
xmlns:android="http://schemas.android.com/apk/res/android" />

View file

@ -3,13 +3,11 @@
xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto">
<LinearLayout android:layout_marginStart="@dimen/uikit_spacing_large" android:layout_marginEnd="@dimen/uikit_spacing_large" style="@style/UiKit.ViewGroup.LinearLayout">
<LinearLayout android:layout_width="fill_parent" style="@style/UiKit.ViewGroup.LinearLayout.Horizontal">
<com.facebook.drawee.view.SimpleDraweeView android:layout_gravity="center" android:id="@id/channel_topic_channel_icon" android:layout_width="24.0dip" android:layout_height="24.0dip" android:layout_marginEnd="@dimen/uikit_spacing_medium" app:actualImageScaleType="fitCenter" app:placeholderImage="?ic_channel_text" app:roundAsCircle="true" />
<androidx.appcompat.widget.AppCompatTextView android:textAppearance="@style/UiKit.TextAppearance.Semibold" android:textSize="@dimen/uikit_textsize_xlarge" android:textColor="?colorHeaderPrimary" android:id="@id/channel_topic_name" android:text="@string/form_label_channel_topic" app:drawableTint="?colorChannelsDefault" style="@style/UiKit.TextView" />
<View android:layout_width="0.0dip" android:layout_height="0.0dip" android:layout_weight="1.0" />
<ImageView android:layout_gravity="center" android:id="@id/channel_topic_more_icon" android:visibility="gone" android:src="?ic_overflow" android:contentDescription="@string/settings" style="@style/UiKit.ImageView" />
<com.facebook.drawee.view.SimpleDraweeView android:layout_gravity="top" android:id="@id/channel_topic_channel_icon" android:layout_width="24.0dip" android:layout_height="24.0dip" android:layout_marginTop="@dimen/uikit_spacing_xsmall" android:layout_marginEnd="@dimen/uikit_spacing_medium" app:actualImageScaleType="fitCenter" app:placeholderImage="?ic_channel_text" app:roundAsCircle="true" />
<androidx.appcompat.widget.AppCompatTextView android:textAppearance="@style/UiKit.TextAppearance.Semibold" android:textSize="@dimen/uikit_textsize_xlarge" android:textColor="?colorHeaderPrimary" android:id="@id/channel_topic_name" android:layout_width="0.0dip" android:text="@string/form_label_channel_topic" android:layout_weight="1.0" app:drawableTint="?colorChannelsDefault" style="@style/UiKit.TextView" />
<ImageView android:layout_gravity="top" android:id="@id/channel_topic_more_icon" android:visibility="gone" android:layout_marginTop="@dimen/uikit_spacing_xsmall" android:src="?ic_overflow" android:contentDescription="@string/settings" style="@style/UiKit.ImageView" />
</LinearLayout>
<LinearLayout android:id="@id/channel_topic_details_container" android:layout_width="fill_parent" android:layout_marginTop="@dimen/uikit_spacing_medium" style="@style/UiKit.ViewGroup.LinearLayout.Horizontal">
<TextView android:textAppearance="@style/UiKit.TextAppearance.Bold" android:textColor="?colorHeaderSecondary" android:id="@id/channel_topic_aka" android:visibility="gone" android:text="@string/aka" android:layout_marginEnd="@dimen/uikit_spacing_small" style="@style/UiKit.TextView" />
<com.discord.utilities.view.text.LinkifiedTextView android:textAppearance="@style/UiKit.TextAppearance.Semibold" android:textColor="?colorHeaderSecondary" android:autoLink="all" android:id="@id/channel_topic_title" style="@style/UiKit.TextView" />
</LinearLayout>
</LinearLayout>

View file

@ -6,7 +6,7 @@
<LinearLayout android:layout_centerVertical="true" android:layout_alignWithParentIfMissing="true" android:layout_marginEnd="@dimen/uikit_spacing_large" android:layout_toStartOf="@id/channels_list_item_private_mentions" android:layout_toEndOf="@id/channels_list_item_private_avatar" style="@style/UiKit.ViewGroup.LinearLayout">
<LinearLayout android:orientation="horizontal" style="@style/UiKit.ViewGroup.LinearLayout">
<TextView android:textSize="@dimen/uikit_textsize_large" android:textColor="?colorChannelDefault" android:id="@id/channels_list_item_private_name" android:singleLine="true" style="@style/UiKit.TextView.Semibold" />
<TextView android:textSize="9.5sp" android:textColor="@color/white" android:layout_gravity="center" android:id="@id/channels_list_item_private_tag" android:background="@drawable/drawable_tag_brand" android:paddingLeft="3.0dip" android:paddingRight="3.0dip" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="@string/system_dm_tag_system" android:singleLine="true" android:layout_marginStart="6.0dip" style="@style/UiKit.TextView" />
<TextView android:textSize="9.5sp" android:textColor="@color/white" android:layout_gravity="center" android:id="@id/channels_list_item_private_tag" android:background="@drawable/drawable_tag_brand" android:paddingLeft="3.0dip" android:paddingRight="3.0dip" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="@string/system_dm_tag_system" android:singleLine="true" android:drawableStart="@drawable/ic_verified_10dp" android:layout_marginStart="6.0dip" style="@style/UiKit.TextView" />
</LinearLayout>
<com.discord.utilities.view.text.SimpleDraweeSpanTextView android:id="@id/channels_list_item_private_desc" android:singleLine="true" style="@style/UiKit.TextView.Subtext" />
</LinearLayout>

View file

@ -2,8 +2,7 @@
<androidx.constraintlayout.widget.ConstraintLayout android:background="?selectableItemBackground" android:paddingTop="@dimen/chat_cell_vertical_spacing_padding" android:paddingBottom="@dimen/chat_cell_vertical_spacing_padding" android:layout_marginEnd="@dimen/chat_cell_horizontal_spacing_total" style="@style/UiKit.ViewGroup"
xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto">
<androidx.constraintlayout.widget.Guideline android:id="@id/uikit_chat_guideline" style="@style/UiKit.Chat.Guideline" />
<com.facebook.drawee.view.SimpleDraweeView android:id="@id/chat_list_item_attachment_image" android:maxHeight="500.0dip" app:layout_constrainedWidth="true" app:layout_constraintBottom_toBottomOf="parent" app:layout_constraintEnd_toEndOf="parent" app:layout_constraintHeight_min="@dimen/embed_thumbnail_max_size" app:layout_constraintHorizontal_bias="0.0" app:layout_constraintStart_toEndOf="@id/uikit_chat_guideline" app:layout_constraintTop_toTopOf="parent" app:layout_constraintWidth_min="@dimen/embed_thumbnail_max_size" app:overlayImage="@drawable/drawable_overlay_image_square" app:placeholderImage="?colorBackgroundPrimary" app:roundedCornerRadius="2.0dip" style="@style/UiKit.ImageView" />
<ImageView android:id="@id/chat_list_item_attachment_image_overlay" android:background="@drawable/drawable_overlay_image_rect" android:padding="@dimen/uikit_spacing_medium" android:visibility="gone" android:src="@drawable/ic_play_arrow_white_24dp" android:contentDescription="@string/play_full_video" app:layout_constraintBottom_toBottomOf="@id/chat_list_item_attachment_image" app:layout_constraintEnd_toEndOf="@id/chat_list_item_attachment_image" app:layout_constraintStart_toStartOf="@id/chat_list_item_attachment_image" app:layout_constraintTop_toTopOf="@id/chat_list_item_attachment_image" style="@style/UiKit.ImageView" />
<com.discord.widgets.chat.list.InlineMediaView android:id="@id/chat_list_item_attachment_inline_media" android:layout_width="wrap_content" android:layout_height="wrap_content" android:maxHeight="500.0dip" app:cardBackgroundColor="@color/transparent" app:cardCornerRadius="8.0dip" app:cardElevation="0.0dip" app:layout_constrainedWidth="true" app:layout_constraintBottom_toBottomOf="parent" app:layout_constraintEnd_toEndOf="parent" app:layout_constraintHeight_min="@dimen/embed_play_button_width" app:layout_constraintHorizontal_bias="0.0" app:layout_constraintStart_toEndOf="@id/uikit_chat_guideline" app:layout_constraintTop_toTopOf="parent" app:layout_constraintWidth_min="@dimen/embed_play_button_width" />
<com.google.android.material.card.MaterialCardView android:id="@id/chat_list_item_attachment_card" android:visibility="gone" android:layout_width="0.0dip" app:layout_constraintBottom_toBottomOf="parent" app:layout_constraintEnd_toEndOf="parent" app:layout_constraintStart_toEndOf="@id/uikit_chat_guideline" app:layout_constraintTop_toTopOf="parent" style="@style/UiKit.Chat.Embed.CardView">
<androidx.constraintlayout.widget.ConstraintLayout android:padding="@dimen/uikit_spacing_medium" style="@style/UiKit.ViewGroup.ConstraintLayout">
<ImageView android:id="@id/chat_list_item_attachment_icon" android:src="@drawable/ic_file_unknown" android:contentDescription="@string/attachment_filename_unknown" app:layout_constraintBottom_toBottomOf="parent" app:layout_constraintStart_toStartOf="parent" app:layout_constraintTop_toTopOf="parent" style="@style/UiKit.ImageView" />
@ -12,7 +11,7 @@
<ImageView android:id="@id/chat_list_item_attachment_download" android:src="?ic_file_download_opaque" android:contentDescription="@string/download" app:layout_constraintBottom_toBottomOf="parent" app:layout_constraintEnd_toEndOf="parent" app:layout_constraintTop_toTopOf="parent" style="@style/UiKit.ImageView" />
</androidx.constraintlayout.widget.ConstraintLayout>
</com.google.android.material.card.MaterialCardView>
<androidx.constraintlayout.widget.Barrier android:id="@id/chat_list_item_attachment_barrier" android:layout_width="0.0dip" android:layout_height="0.0dip" app:barrierDirection="end" app:constraint_referenced_ids="chat_list_item_attachment_card, chat_list_item_attachment_image" />
<androidx.constraintlayout.widget.Barrier android:id="@id/chat_list_item_attachment_barrier" android:layout_width="0.0dip" android:layout_height="0.0dip" app:barrierDirection="end" app:constraint_referenced_ids="chat_list_item_attachment_card, chat_list_item_attachment_inline_media" />
<FrameLayout android:id="@id/chat_list_item_attachment_spoiler" android:background="?theme_chat_spoiler_bg" android:visibility="gone" android:layout_width="0.0dip" android:layout_height="0.0dip" android:elevation="@dimen/app_elevation" app:layout_constraintBottom_toBottomOf="parent" app:layout_constraintEnd_toEndOf="@id/chat_list_item_attachment_barrier" app:layout_constraintStart_toEndOf="@id/uikit_chat_guideline" app:layout_constraintTop_toTopOf="parent">
<androidx.cardview.widget.CardView android:layout_gravity="center" android:layout_width="wrap_content" android:layout_height="wrap_content" app:cardBackgroundColor="@color/black_alpha_60" app:cardCornerRadius="@dimen/uikit_spacing_large" app:cardElevation="@dimen/app_elevation">
<TextView android:textColor="@color/primary_200" android:layout_gravity="center" 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_marginLeft="@dimen/uikit_spacing_small" android:layout_marginRight="@dimen/uikit_spacing_small" android:text="@string/spoiler" android:textAllCaps="true" style="@style/UiKit.TextView.H2" />

View file

@ -0,0 +1,8 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout android:orientation="vertical" android:id="@id/guild_call_container" android:layout_width="fill_parent" android:layout_height="300.0dip"
xmlns:android="http://schemas.android.com/apk/res/android">
<TextView android:textColor="?colorHeaderPrimary" android:id="@id/guild_call_spectators_sheet_header" android:background="?colorBackgroundTertiary" android:paddingTop="16.0dip" android:paddingBottom="16.0dip" android:layout_width="fill_parent" android:layout_height="wrap_content" android:fontFamily="@font/whitney_bold" android:paddingStart="16.0dip" android:paddingEnd="16.0dip" />
<androidx.core.widget.NestedScrollView android:layout_width="fill_parent" android:layout_height="fill_parent">
<androidx.recyclerview.widget.RecyclerView android:id="@id/guild_call_spectators_sheet_recycler" android:layout_width="fill_parent" android:layout_height="wrap_content" android:nestedScrollingEnabled="false" />
</androidx.core.widget.NestedScrollView>
</LinearLayout>

View file

@ -6,7 +6,7 @@
</com.google.android.material.appbar.AppBarLayout>
<RelativeLayout style="@style/UiKit.ViewGroup.RelativeLayout.AppBarScrollingViewBehavior">
<FrameLayout android:layout_width="fill_parent" android:layout_height="fill_parent">
<com.google.android.exoplayer2.ui.PlayerView android:layout_gravity="center" android:id="@id/widget_media_player_view" android:layout_width="fill_parent" android:layout_height="fill_parent" app:resize_mode="fit" app:shutter_background_color="@color/transparent" app:surface_type="texture_view" app:use_controller="true" />
<com.google.android.exoplayer2.ui.PlayerView android:layout_gravity="center" android:id="@id/widget_media_player_view" android:layout_width="fill_parent" android:layout_height="fill_parent" app:resize_mode="fit" app:surface_type="texture_view" app:use_controller="true" />
</FrameLayout>
<com.facebook.samples.zoomable.ZoomableDraweeView android:id="@id/media_image" android:background="?colorBackgroundPrimary" android:layout_width="fill_parent" android:layout_height="fill_parent" app:failureImage="@drawable/asset_sadbot" app:failureImageScaleType="center" app:placeholderImage="@drawable/asset_image_loading" />
<ProgressBar android:id="@id/widget_media_loading_indicator" android:background="@drawable/drawable_circle_primary_900_alpha_60" android:padding="@dimen/uikit_spacing_medium" android:visibility="gone" android:layout_width="wrap_content" android:layout_height="wrap_content" android:indeterminate="true" android:layout_centerInParent="true" android:indeterminateTint="@color/white" />