Changes of com.discord v827
This commit is contained in:
parent
7fc5290da9
commit
53d26c8ed2
2934 changed files with 38048 additions and 35398 deletions
|
@ -4,5 +4,5 @@
|
|||
<ImageView android:id="@id/progress_file_image" android:layout_width="16.0dip" android:layout_height="16.0dip" android:src="@drawable/ic_uploads_generic_dark" android:scaleType="fitCenter" android:baselineAlignBottom="true" android:importantForAccessibility="no" app:layout_constraintBottom_toBottomOf="@id/progress_text" app:layout_constraintEnd_toStartOf="@id/progress_text" app:layout_constraintHorizontal_bias="0.0" app:layout_constraintHorizontal_chainStyle="packed" app:layout_constraintLeft_toLeftOf="parent" app:layout_constraintRight_toLeftOf="@id/progress_text" app:layout_constraintStart_toStartOf="parent" app:layout_constraintTop_toTopOf="@id/progress_text" />
|
||||
<TextView android:textSize="@dimen/uikit_textsize_large" android:textColor="?primary_100" android:ellipsize="middle" android:id="@id/progress_text" android:layout_width="0.0dip" android:layout_height="wrap_content" android:layout_marginLeft="@dimen/uikit_spacing_small" android:layout_marginRight="@dimen/uikit_spacing_small" android:singleLine="true" app:layout_constrainedHeight="true" app:layout_constraintBottom_toTopOf="@id/progress_bar" app:layout_constraintEnd_toStartOf="@id/progress_subtext" app:layout_constraintHeight_default="wrap" app:layout_constraintLeft_toRightOf="@id/progress_file_image" app:layout_constraintRight_toLeftOf="@id/progress_subtext" app:layout_constraintStart_toEndOf="@id/progress_file_image" app:layout_constraintTop_toTopOf="parent" app:layout_constraintVertical_chainStyle="packed" app:layout_constraintWidth_default="wrap" style="@style/UiKit.TextView.Semibold" />
|
||||
<TextView android:textSize="@dimen/uikit_textsize_large" android:textColor="?primary_200" android:id="@id/progress_subtext" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginRight="@dimen/uikit_spacing_medium" app:layout_constrainedHeight="true" app:layout_constrainedWidth="true" app:layout_constraintBaseline_toBaselineOf="@id/progress_text" app:layout_constraintEnd_toEndOf="parent" app:layout_constraintHeight_default="wrap" app:layout_constraintLeft_toRightOf="@id/progress_text" app:layout_constraintRight_toRightOf="parent" app:layout_constraintStart_toEndOf="@id/progress_text" />
|
||||
<ProgressBar android:id="@id/progress_bar" android:layout_width="0.0dip" android:layout_height="wrap_content" android:layout_marginTop="@dimen/uikit_spacing_medium" android:layout_marginBottom="@dimen/uikit_spacing_medium" android:maxHeight="1.0dip" android:max="100" android:minHeight="1.0dip" app:layout_constrainedHeight="true" app:layout_constraintBottom_toBottomOf="parent" app:layout_constraintEnd_toEndOf="parent" app:layout_constraintHeight_default="wrap" app:layout_constraintLeft_toLeftOf="parent" app:layout_constraintRight_toRightOf="parent" app:layout_constraintStart_toStartOf="parent" app:layout_constraintTop_toBottomOf="@id/progress_text" style="@style/Widget.AppCompat.ProgressBar.Horizontal" />
|
||||
<ProgressBar android:id="@id/progress_bar" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_marginTop="@dimen/uikit_spacing_medium" android:layout_marginBottom="@dimen/uikit_spacing_medium" android:maxHeight="1.0dip" android:max="100" android:minHeight="1.0dip" app:layout_constrainedHeight="true" app:layout_constrainedWidth="true" app:layout_constraintBottom_toBottomOf="parent" app:layout_constraintTop_toBottomOf="@id/progress_text" style="@style/Widget.AppCompat.ProgressBar.Horizontal" />
|
||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
|
@ -2,19 +2,25 @@
|
|||
<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_marginRight="@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" />
|
||||
<View android:id="@id/chat_list_item_embed_divider" android:background="?theme_chat_divider_embed" android:layout_width="4.0dip" android:layout_height="0.0dip" android:layout_marginRight="@dimen/uikit_spacing_large" app:layout_constraintBottom_toBottomOf="parent" app:layout_constraintRight_toLeftOf="@id/uikit_chat_guideline" app:layout_constraintTop_toTopOf="parent" />
|
||||
<View android:id="@id/chat_list_item_embed_divider" android:background="?theme_chat_divider_embed" android:layout_width="2.0dip" android:layout_height="0.0dip" app:layout_constraintBottom_toBottomOf="parent" app:layout_constraintRight_toLeftOf="@id/uikit_chat_guideline" app:layout_constraintTop_toTopOf="parent" />
|
||||
<androidx.constraintlayout.widget.Guideline android:id="@id/uikit_chat_embed_guideline" app:layout_constraintGuide_begin="@dimen/uikit_guideline_chat_embed" style="@style/UiKit.Guideline" />
|
||||
<com.facebook.drawee.view.SimpleDraweeView android:id="@id/chat_list_item_embed_image_thumbnail" android:visibility="gone" android:layout_marginLeft="@dimen/uikit_spacing_large" app:layout_constraintEnd_toEndOf="parent" app:layout_constraintRight_toRightOf="parent" app:layout_constraintTop_toTopOf="parent" app:overlayImage="@drawable/drawable_overlay_image_square" app:placeholderImage="?theme_chat_divider_embed" app:roundedCornerRadius="2.0dip" style="@style/UiKit.ImageView" />
|
||||
<TextView android:textSize="9.5sp" android:textColor="@color/grey_1" android:id="@id/chat_list_item_embed_provider" android:background="?selectableItemBackground" android:visibility="gone" android:layout_width="0.0dip" app:layout_constraintLeft_toRightOf="@id/uikit_chat_guideline" app:layout_constraintRight_toLeftOf="@id/chat_list_item_embed_image_thumbnail" app:layout_constraintTop_toTopOf="parent" style="@style/UiKit.TextView" />
|
||||
<com.facebook.drawee.view.SimpleDraweeView android:id="@id/chat_list_item_embed_author_icon" android:visibility="gone" android:layout_width="@dimen/embed_tiny_icon_size" android:layout_height="@dimen/embed_tiny_icon_size" app:layout_constraintBottom_toBottomOf="@id/chat_list_item_embed_author_text" app:layout_constraintLeft_toRightOf="@id/uikit_chat_guideline" app:layout_constraintTop_toTopOf="@id/chat_list_item_embed_author_text" app:placeholderImage="?theme_chat_divider_embed" app:roundedCornerRadius="2.0dip" />
|
||||
<TextView android:textSize="9.5sp" android:textColor="@color/grey_1" android:id="@id/chat_list_item_embed_provider" android:background="?selectableItemBackground" android:visibility="gone" android:layout_width="0.0dip" app:layout_constraintEnd_toStartOf="@id/chat_list_item_embed_image_thumbnail" app:layout_constraintLeft_toRightOf="@id/uikit_chat_embed_guideline" app:layout_constraintRight_toLeftOf="@id/chat_list_item_embed_image_thumbnail" app:layout_constraintStart_toEndOf="@id/uikit_chat_embed_guideline" app:layout_constraintTop_toTopOf="parent" style="@style/UiKit.TextView" />
|
||||
<com.facebook.drawee.view.SimpleDraweeView android:id="@id/chat_list_item_embed_author_icon" android:visibility="gone" android:layout_width="@dimen/embed_tiny_icon_size" android:layout_height="@dimen/embed_tiny_icon_size" app:layout_constraintBottom_toBottomOf="@id/chat_list_item_embed_author_text" app:layout_constraintLeft_toRightOf="@id/uikit_chat_embed_guideline" app:layout_constraintTop_toTopOf="@id/chat_list_item_embed_author_text" app:placeholderImage="?theme_chat_divider_embed" app:roundedCornerRadius="2.0dip" />
|
||||
<TextView android:textColor="?theme_chat_name" android:id="@id/chat_list_item_embed_author_text" android:visibility="gone" android:layout_width="0.0dip" android:layout_marginLeft="@dimen/embed_item_margin" android:layout_marginTop="@dimen/embed_item_margin" android:layout_toRightOf="@id/chat_list_item_embed_author_icon" app:layout_constraintEnd_toStartOf="@id/chat_list_item_embed_image_thumbnail" app:layout_constraintLeft_toRightOf="@id/chat_list_item_embed_author_icon" app:layout_constraintRight_toLeftOf="@id/chat_list_item_embed_image_thumbnail" app:layout_constraintStart_toEndOf="@id/chat_list_item_embed_author_icon" app:layout_constraintTop_toBottomOf="@id/chat_list_item_embed_provider" app:layout_goneMarginLeft="0.0dip" app:layout_goneMarginStart="0.0dip" style="@style/UiKit.TextView.Semibold" />
|
||||
<TextView android:textColor="@color/link_500" android:id="@id/chat_list_item_embed_title" android:background="?selectableItemBackground" android:layout_width="0.0dip" android:lineSpacingMultiplier="1.0" app:layout_constraintLeft_toRightOf="@id/uikit_chat_guideline" app:layout_constraintRight_toLeftOf="@id/chat_list_item_embed_image_thumbnail" app:layout_constraintTop_toBottomOf="@id/chat_list_item_embed_author_text" style="@style/UiKit.TextView.Semibold" />
|
||||
<com.discord.utilities.view.text.LinkifiedTextView android:id="@id/chat_list_item_embed_description" android:background="?selectableItemBackground" android:layout_width="0.0dip" android:layout_marginTop="@dimen/uikit_spacing_medium" android:text="@string/sample_channel_message" android:lineSpacingMultiplier="1.0" app:layout_constraintLeft_toRightOf="@id/uikit_chat_guideline" app:layout_constraintRight_toLeftOf="@id/chat_list_item_embed_image_thumbnail" app:layout_constraintTop_toBottomOf="@id/chat_list_item_embed_title" style="@style/UiKit.TextView" />
|
||||
<LinearLayout android:id="@id/chat_list_item_embed_fields" android:layout_width="0.0dip" app:layout_constraintHorizontal_bias="0.0" app:layout_constraintLeft_toRightOf="@id/uikit_chat_guideline" app:layout_constraintRight_toLeftOf="@id/chat_list_item_embed_image_thumbnail" app:layout_constraintTop_toBottomOf="@id/chat_list_item_embed_description" style="@style/UiKit.ViewGroup.LinearLayout" />
|
||||
<TextView android:textColor="@color/link_500" android:id="@id/chat_list_item_embed_title" android:background="?selectableItemBackground" android:layout_width="0.0dip" android:lineSpacingMultiplier="1.0" app:layout_constraintLeft_toRightOf="@id/uikit_chat_embed_guideline" app:layout_constraintRight_toLeftOf="@id/chat_list_item_embed_image_thumbnail" app:layout_constraintTop_toBottomOf="@id/chat_list_item_embed_author_text" style="@style/UiKit.TextView.Semibold" />
|
||||
<com.discord.utilities.view.text.LinkifiedTextView android:id="@id/chat_list_item_embed_description" android:background="?selectableItemBackground" android:layout_width="0.0dip" android:layout_marginTop="@dimen/uikit_spacing_medium" android:text="@string/sample_channel_message" android:lineSpacingMultiplier="1.0" app:layout_constraintLeft_toRightOf="@id/uikit_chat_embed_guideline" app:layout_constraintRight_toLeftOf="@id/chat_list_item_embed_image_thumbnail" app:layout_constraintTop_toBottomOf="@id/chat_list_item_embed_title" style="@style/UiKit.TextView" />
|
||||
<LinearLayout android:id="@id/chat_list_item_embed_fields" android:layout_width="0.0dip" app:layout_constraintHorizontal_bias="0.0" app:layout_constraintLeft_toRightOf="@id/uikit_chat_embed_guideline" app:layout_constraintRight_toLeftOf="@id/chat_list_item_embed_image_thumbnail" app:layout_constraintTop_toBottomOf="@id/chat_list_item_embed_description" style="@style/UiKit.ViewGroup.LinearLayout" />
|
||||
<androidx.constraintlayout.widget.Barrier android:id="@id/chat_list_item_embed_barrier" android:layout_width="0.0dip" android:layout_height="0.0dip" app:barrierDirection="bottom" app:constraint_referenced_ids="chat_list_item_embed_description, chat_list_item_embed_title, chat_list_item_embed_image_thumbnail, chat_list_item_embed_fields, chat_list_item_embed_author_text, chat_list_item_embed_provider" />
|
||||
<RelativeLayout android:id="@id/embed_image_container" android:visibility="gone" android:layout_width="wrap_content" app:layout_constraintHorizontal_bias="0.0" app:layout_constraintLeft_toRightOf="@id/uikit_chat_guideline" app:layout_constraintRight_toRightOf="parent" app:layout_constraintTop_toBottomOf="@id/chat_list_item_embed_barrier" style="@style/UiKit.ViewGroup">
|
||||
<RelativeLayout android:id="@id/embed_image_container" android:visibility="gone" android:layout_width="wrap_content" app:layout_constraintHorizontal_bias="0.0" app:layout_constraintLeft_toRightOf="@id/uikit_chat_embed_guideline" app:layout_constraintRight_toRightOf="parent" app:layout_constraintTop_toBottomOf="@id/chat_list_item_embed_barrier" style="@style/UiKit.ViewGroup">
|
||||
<com.facebook.drawee.view.SimpleDraweeView android:id="@id/chat_list_item_embed_image" android:layout_marginTop="@dimen/uikit_spacing_medium" app:overlayImage="@drawable/drawable_overlay_image_square" app:placeholderImage="?theme_chat_divider_embed" app:roundedCornerRadius="2.0dip" style="@style/UiKit.ImageView" />
|
||||
<ImageView android:id="@id/chat_list_item_embed_image_icons" android:background="@drawable/drawable_overlay_image_rect" android:padding="@dimen/uikit_spacing_medium" android:src="@drawable/ic_play_arrow_white_24dp" android:layout_centerInParent="true" android:contentDescription="@string/sample_empty_string" style="@style/UiKit.ImageView" />
|
||||
</RelativeLayout>
|
||||
<com.facebook.drawee.view.SimpleDraweeView android:id="@id/chat_list_item_embed_footer_icon" android:layout_width="@dimen/embed_tiny_icon_size" android:layout_height="@dimen/embed_tiny_icon_size" android:layout_marginRight="@dimen/embed_item_margin" app:layout_constraintBottom_toBottomOf="@id/chat_list_item_embed_footer_text" app:layout_constraintLeft_toRightOf="@id/uikit_chat_guideline" app:layout_constraintTop_toTopOf="@id/chat_list_item_embed_footer_text" app:placeholderImage="?theme_chat_divider_embed" app:roundedCornerRadius="2.0dip" />
|
||||
<com.facebook.drawee.view.SimpleDraweeView android:id="@id/chat_list_item_embed_footer_icon" android:layout_width="@dimen/embed_tiny_icon_size" android:layout_height="@dimen/embed_tiny_icon_size" android:layout_marginRight="@dimen/embed_item_margin" app:layout_constraintBottom_toBottomOf="@id/chat_list_item_embed_footer_text" app:layout_constraintLeft_toRightOf="@id/uikit_chat_embed_guideline" app:layout_constraintTop_toTopOf="@id/chat_list_item_embed_footer_text" app:placeholderImage="?theme_chat_divider_embed" app:roundedCornerRadius="2.0dip" />
|
||||
<TextView android:textSize="@dimen/uikit_textsize_small" android:id="@id/chat_list_item_embed_footer_text" android:layout_width="0.0dip" android:layout_marginLeft="@dimen/uikit_spacing_medium" android:layout_marginTop="@dimen/uikit_spacing_small" android:layout_toRightOf="@id/chat_list_item_embed_footer_icon" app:layout_constraintEnd_toEndOf="parent" app:layout_constraintLeft_toRightOf="@id/chat_list_item_embed_footer_icon" app:layout_constraintRight_toRightOf="parent" app:layout_constraintStart_toEndOf="@id/chat_list_item_embed_footer_icon" app:layout_constraintTop_toBottomOf="@id/embed_image_container" app:layout_goneMarginLeft="0.0dip" app:layout_goneMarginStart="0.0dip" style="@style/UiKit.TextView.Semibold" />
|
||||
<FrameLayout android:id="@id/chat_list_item_embed_spoiler" android:background="?theme_chat_spoiler_bg" android:layout_width="0.0dip" android:layout_height="0.0dip" app:layout_constraintBottom_toBottomOf="parent" app:layout_constraintLeft_toRightOf="@id/chat_list_item_embed_divider" app:layout_constraintRight_toRightOf="parent" 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">
|
||||
<TextView android:textColor="@color/primary_200" 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" />
|
||||
</androidx.cardview.widget.CardView>
|
||||
</FrameLayout>
|
||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
|
@ -1,12 +1,9 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<RelativeLayout android:background="?chat_embed_bg" android:layout_width="@dimen/chat_embed_width" android:layout_height="@dimen/chat_embed_height" android:layout_marginLeft="60.0dip" android:layout_marginRight="@dimen/chat_cell_horizontal_spacing_total" android:layout_marginBottom="@dimen/chat_cell_vertical_spacing_padding"
|
||||
<androidx.constraintlayout.widget.ConstraintLayout style="@style/UiKit.Chat.Embed.Container"
|
||||
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="wrap_content" android:layout_height="fill_parent" android:layout_alignParentRight="true" android:alpha="0.4" app:roundBottomLeft="false" app:roundTopLeft="false" app:roundedCornerRadius="4.0dip" app:viewAspectRatio="1.0" />
|
||||
<View android:background="@drawable/drawable_game_invite_gradient_overlay" android:visibility="visible" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_alignLeft="@id/item_game_invite_cover_image" android:layout_alignTop="@id/item_game_invite_cover_image" android:layout_alignBottom="@id/item_game_invite_cover_image" />
|
||||
<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="0.0dip" android:layout_height="128.0dip" android:alpha="0.4" app:layout_constrainedHeight="true" app:layout_constraintBottom_toBottomOf="parent" app:layout_constraintEnd_toEndOf="parent" 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" />
|
||||
<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_below="@id/item_game_invite_header" android:layout_alignLeft="@id/item_game_invite_header" style="@style/UiKit.TextView" />
|
||||
<RelativeLayout android:layout_width="fill_parent" android:layout_height="@dimen/avatar_size_standard" android:layout_marginLeft="@dimen/uikit_spacing_large" android:layout_marginBottom="@dimen/uikit_spacing_large" android:layout_toLeftOf="@id/item_game_invite_application_name" android:layout_alignParentLeft="true" android:layout_alignParentBottom="true" style="@style/UiKit.View.HiddenOnSmallScreens">
|
||||
<androidx.recyclerview.widget.RecyclerView android:id="@id/item_game_invite_recycler" android:layout_height="fill_parent" style="@style/UiKit.ViewGroup.RecyclerView.Horizontal" />
|
||||
</RelativeLayout>
|
||||
<TextView android:id="@id/item_game_invite_application_name" android:layout_width="@dimen/chat_embed_game_title_width" android:maxLines="2" style="@style/UiKit.Chat.Embed.Footer" />
|
||||
</RelativeLayout>
|
||||
<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" />
|
||||
<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_marginLeft="@dimen/uikit_spacing_large" android:layout_marginBottom="@dimen/uikit_spacing_large" app:layout_constraintBottom_toBottomOf="parent" app:layout_constraintEnd_toStartOf="@id/item_game_invite_cover_image" app:layout_constraintLeft_toLeftOf="parent" app:layout_constraintRight_toLeftOf="@id/item_game_invite_cover_image" app:layout_constraintStart_toStartOf="parent" 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" app:layout_constraintLeft_toLeftOf="@id/item_game_invite_cover_image" app:layout_constraintStart_toStartOf="@id/item_game_invite_cover_image" style="@style/UiKit.Chat.Embed.Footer" />
|
||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
|
@ -1,19 +1,22 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<RelativeLayout android:id="@id/item_listen_together_container" android:background="?chat_embed_bg" android:layout_width="@dimen/chat_embed_width" android:layout_height="wrap_content" android:layout_marginLeft="60.0dip" android:layout_marginRight="@dimen/chat_cell_horizontal_spacing_total" android:layout_marginBottom="@dimen/chat_cell_vertical_spacing_padding"
|
||||
<androidx.constraintlayout.widget.ConstraintLayout android:id="@id/item_listen_together_container" style="@style/UiKit.Chat.Embed.Container"
|
||||
xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto">
|
||||
<FrameLayout android:layout_width="fill_parent" android:layout_height="80.0dip">
|
||||
<FrameLayout android:layout_width="fill_parent" android:layout_height="0.0dip" app:layout_constraintBottom_toBottomOf="@id/item_gift_image" app:layout_constraintStart_toStartOf="parent" app:layout_constraintTop_toTopOf="parent">
|
||||
<com.facebook.drawee.view.SimpleDraweeView android:id="@id/item_gift_image_background" android:layout_width="fill_parent" android:layout_height="fill_parent" android:alpha="0.1" app:actualImageScaleType="center" />
|
||||
<View android:background="?gift_embed_gradient_overlay" android:layout_width="fill_parent" android:layout_height="fill_parent" />
|
||||
</FrameLayout>
|
||||
<com.discord.app.AppTextView android:id="@id/item_gift_header" android:layout_marginTop="@dimen/uikit_spacing_medium" android:layout_marginBottom="@dimen/uikit_spacing_medium" android:text="@string/invite_button_resolving" style="@style/UiKit.Chat.Embed.Header" />
|
||||
<com.facebook.drawee.view.SimpleDraweeView android:id="@id/item_gift_image" android:layout_marginLeft="@dimen/uikit_spacing_large" android:layout_marginBottom="@dimen/uikit_spacing_medium" android:layout_below="@id/item_gift_header" android:layout_alignParentLeft="true" app:placeholderImage="?ic_game_icon_placeholder" style="@style/Icon.Game" />
|
||||
<LinearLayout android:gravity="center_vertical" android:minHeight="50.0dip" android:layout_toRightOf="@id/item_gift_image" android:layout_below="@id/item_gift_header" style="@style/UiKit.ViewGroup.LinearLayout">
|
||||
<com.discord.app.AppTextView android:id="@id/item_gift_header" android:text="@string/invite_button_resolving" style="@style/UiKit.Chat.Embed.Header" />
|
||||
<com.facebook.drawee.view.SimpleDraweeView android:id="@id/item_gift_image" android:layout_marginLeft="@dimen/uikit_spacing_large" android:layout_marginTop="@dimen/uikit_spacing_medium" android:layout_marginBottom="@dimen/uikit_spacing_medium" app:layout_constraintLeft_toLeftOf="parent" app:layout_constraintStart_toStartOf="parent" app:layout_constraintTop_toBottomOf="@id/item_gift_header" app:placeholderImage="?ic_game_icon_placeholder" style="@style/Icon.Game" />
|
||||
<LinearLayout android:id="@id/item_gift_details" android:layout_width="0.0dip" android:layout_marginTop="@dimen/uikit_spacing_medium" android:layout_marginRight="@dimen/uikit_spacing_large" android:minHeight="50.0dip" app:layout_constraintEnd_toEndOf="parent" app:layout_constraintLeft_toRightOf="@id/item_gift_image" app:layout_constraintRight_toRightOf="parent" app:layout_constraintStart_toEndOf="@id/item_gift_image" app:layout_constraintTop_toBottomOf="@id/item_gift_header" style="@style/UiKit.ViewGroup.LinearLayout">
|
||||
<TextView android:textSize="@dimen/uikit_textsize_large" android:textColor="?primary_100" android:id="@id/item_gift_name" android:layout_marginLeft="@dimen/uikit_spacing_medium" android:layout_marginRight="@dimen/uikit_spacing_large" android:minWidth="150.0dip" style="@style/UiKit.TextView.Marquee" />
|
||||
<TextView android:id="@id/item_gift_expires" android:layout_marginLeft="@dimen/uikit_spacing_medium" android:layout_marginTop="@dimen/uikit_spacing_small" android:layout_marginRight="@dimen/uikit_spacing_large" android:singleLine="true" style="@style/UiKit.Chat.Embed.Subtext" />
|
||||
</LinearLayout>
|
||||
<TextView android:id="@id/item_gift_subtext" android:layout_marginLeft="@dimen/uikit_spacing_large" android:layout_marginRight="@dimen/uikit_spacing_large" android:layout_below="@id/item_gift_image" style="@style/UiKit.Chat.Embed.Subtext" />
|
||||
<Button android:id="@id/item_gift_cannot_claim_button" android:visibility="gone" android:layout_height="wrap_content" android:layout_marginLeft="@dimen/uikit_spacing_medium" android:layout_marginRight="@dimen/uikit_spacing_medium" android:layout_marginBottom="@dimen/uikit_spacing_medium" android:text="@string/gift_embed_button_claimed" android:layout_below="@id/item_gift_subtext" style="@style/UiKit.GiftEmbedDisabledButton" />
|
||||
<Button android:id="@id/item_gift_accept_button" android:visibility="gone" android:layout_height="wrap_content" android:layout_marginLeft="@dimen/uikit_spacing_medium" android:layout_marginRight="@dimen/uikit_spacing_medium" android:layout_marginBottom="@dimen/uikit_spacing_medium" android:text="@string/gift_embed_button_accept" android:layout_below="@id/item_gift_subtext" style="@style/UiKit.Button.Green" />
|
||||
<Button android:id="@id/item_gift_verify_button" android:visibility="gone" android:layout_height="wrap_content" android:layout_marginLeft="@dimen/uikit_spacing_medium" android:layout_marginRight="@dimen/uikit_spacing_medium" android:layout_marginBottom="@dimen/uikit_spacing_medium" android:text="@string/verify_account" android:layout_below="@id/item_gift_subtext" style="@style/UiKit.Button" />
|
||||
<View android:id="@id/item_gift_loading_button_placeholder" android:background="@drawable/drawable_empty_text_placeholder_dark" android:visibility="gone" android:layout_height="36.0dip" android:layout_marginLeft="@dimen/uikit_spacing_large" android:layout_marginTop="6.0dip" android:layout_marginRight="@dimen/uikit_spacing_large" android:layout_marginBottom="@dimen/uikit_spacing_large" android:layout_below="@id/item_gift_subtext" style="@style/UiKit.Button" />
|
||||
</RelativeLayout>
|
||||
<androidx.constraintlayout.widget.Barrier android:id="@id/barrier" android:layout_width="wrap_content" android:layout_height="wrap_content" app:barrierDirection="bottom" app:constraint_referenced_ids="item_gift_image,item_gift_details" />
|
||||
<TextView android:id="@id/item_gift_subtext" android:layout_width="0.0dip" android:layout_marginTop="@dimen/uikit_spacing_medium" android:layout_marginRight="@dimen/uikit_spacing_large" app:layout_constraintEnd_toEndOf="parent" app:layout_constraintLeft_toLeftOf="@id/item_gift_image" app:layout_constraintRight_toRightOf="parent" app:layout_constraintStart_toStartOf="@id/item_gift_image" app:layout_constraintTop_toBottomOf="@id/barrier" style="@style/UiKit.Chat.Embed.Subtext" />
|
||||
<FrameLayout android:paddingBottom="@dimen/uikit_spacing_medium" android:layout_width="0.0dip" android:layout_height="wrap_content" android:layout_marginLeft="@dimen/uikit_spacing_medium" android:layout_marginRight="@dimen/uikit_spacing_medium" android:layout_marginBottom="@dimen/uikit_spacing_medium" app:layout_constraintEnd_toEndOf="parent" app:layout_constraintRight_toRightOf="parent" app:layout_constraintStart_toStartOf="parent" app:layout_constraintTop_toBottomOf="@id/item_gift_subtext">
|
||||
<Button android:id="@id/item_gift_cannot_claim_button" android:visibility="gone" android:text="@string/gift_embed_button_claimed" style="@style/UiKit.GiftEmbedDisabledButton" />
|
||||
<Button android:id="@id/item_gift_accept_button" android:visibility="gone" android:text="@string/gift_embed_button_accept" style="@style/UiKit.Button.Green" />
|
||||
<Button android:id="@id/item_gift_verify_button" android:visibility="gone" android:text="@string/verify_account" app:layout_constraintStart_toStartOf="parent" app:layout_constraintTop_toBottomOf="@id/item_gift_subtext" style="@style/UiKit.Button" />
|
||||
<View android:id="@id/item_gift_loading_button_placeholder" android:background="@drawable/drawable_empty_text_placeholder_dark" android:visibility="gone" android:layout_height="36.0dip" android:layout_marginTop="6.0dip" style="@style/UiKit.Button" />
|
||||
</FrameLayout>
|
||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
|
@ -1,18 +1,20 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<RelativeLayout android:id="@id/item_listen_together_container" android:background="?chat_embed_bg" android:layout_width="@dimen/chat_embed_width" android:layout_height="wrap_content" android:layout_marginLeft="60.0dip" android:layout_marginRight="@dimen/chat_cell_horizontal_spacing_total" android:layout_marginBottom="@dimen/chat_cell_vertical_spacing_padding"
|
||||
<androidx.constraintlayout.widget.ConstraintLayout android:id="@id/item_listen_together_container" style="@style/UiKit.Chat.Embed.Container"
|
||||
xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto">
|
||||
<com.discord.app.AppTextView android:id="@id/item_invite_header" android:layout_marginBottom="@dimen/uikit_spacing_medium" android:text="@string/invite_button_resolving" style="@style/UiKit.Chat.Embed.Header" />
|
||||
<com.facebook.drawee.view.SimpleDraweeView android:id="@id/item_invite_image" android:layout_width="42.0dip" android:layout_height="42.0dip" android:layout_marginLeft="@dimen/uikit_spacing_large" android:layout_marginBottom="@dimen/uikit_spacing_medium" android:layout_below="@id/item_invite_header" android:layout_alignParentLeft="true" app:roundAsCircle="true" />
|
||||
<TextView android:textColor="@color/white" android:gravity="center" android:id="@id/item_invite_image_text" android:layout_width="42.0dip" android:layout_height="42.0dip" android:layout_marginLeft="@dimen/uikit_spacing_large" android:singleLine="true" android:layout_below="@id/item_invite_header" android:layout_alignParentLeft="true" style="@style/UiKit.TextView" />
|
||||
<TextView android:textSize="@dimen/uikit_textsize_large" android:textColor="?primary_100" android:id="@id/item_invite_name" android:layout_marginLeft="@dimen/uikit_spacing_medium" android:layout_marginRight="@dimen/uikit_spacing_large" android:minWidth="150.0dip" android:layout_toRightOf="@id/item_invite_image" android:layout_below="@id/item_invite_header" style="@style/UiKit.TextView.Marquee" />
|
||||
<LinearLayout android:gravity="center_vertical" android:id="@id/item_invite_member_container" android:layout_width="wrap_content" android:layout_marginLeft="@dimen/uikit_spacing_medium" android:layout_marginTop="@dimen/uikit_spacing_small" android:layout_marginRight="@dimen/uikit_spacing_large" android:minWidth="100.0dip" android:minHeight="@dimen/uikit_spacing_large" android:layout_toRightOf="@id/item_invite_image" android:layout_below="@id/item_invite_name" style="@style/UiKit.ViewGroup.LinearLayout.Horizontal">
|
||||
<com.discord.app.AppTextView android:id="@id/item_invite_header" android:layout_marginBottom="@dimen/uikit_spacing_medium" android:text="@string/invite_button_resolving" app:layout_constraintStart_toStartOf="parent" app:layout_constraintTop_toTopOf="parent" style="@style/UiKit.Chat.Embed.Header" />
|
||||
<com.facebook.drawee.view.SimpleDraweeView android:id="@id/item_invite_image" android:layout_width="42.0dip" android:layout_height="42.0dip" android:layout_marginLeft="@dimen/uikit_spacing_large" android:layout_marginTop="@dimen/uikit_spacing_medium" android:layout_marginBottom="@dimen/uikit_spacing_medium" app:layout_constraintLeft_toLeftOf="parent" app:layout_constraintStart_toStartOf="parent" app:layout_constraintTop_toBottomOf="@id/item_invite_header" app:roundAsCircle="true" />
|
||||
<TextView android:textColor="@color/white" android:ellipsize="end" android:gravity="center" android:id="@id/item_invite_image_text" android:layout_width="42.0dip" android:layout_height="42.0dip" android:layout_marginLeft="@dimen/uikit_spacing_large" android:layout_marginTop="@dimen/uikit_spacing_medium" android:layout_marginRight="@dimen/uikit_spacing_large" android:maxLines="1" android:singleLine="true" app:layout_constraintLeft_toLeftOf="parent" app:layout_constraintStart_toStartOf="parent" app:layout_constraintTop_toBottomOf="@id/item_invite_header" style="@style/UiKit.TextView" />
|
||||
<TextView android:textSize="@dimen/uikit_textsize_large" android:textColor="?primary_100" android:id="@id/item_invite_name" android:layout_width="0.0dip" android:layout_marginLeft="@dimen/uikit_spacing_medium" android:layout_marginTop="@dimen/uikit_spacing_medium" android:layout_marginRight="@dimen/uikit_spacing_large" app:layout_constraintEnd_toEndOf="parent" app:layout_constraintLeft_toRightOf="@id/item_invite_image" app:layout_constraintRight_toRightOf="parent" app:layout_constraintStart_toEndOf="@id/item_invite_image" app:layout_constraintTop_toBottomOf="@id/item_invite_header" style="@style/UiKit.TextView.Marquee" />
|
||||
<LinearLayout android:gravity="center_vertical" android:id="@id/item_invite_member_container" android:layout_width="0.0dip" android:layout_marginLeft="@dimen/uikit_spacing_medium" android:layout_marginTop="@dimen/uikit_spacing_small" android:layout_marginRight="@dimen/uikit_spacing_large" android:minWidth="100.0dip" android:minHeight="@dimen/uikit_spacing_large" app:layout_constraintEnd_toEndOf="parent" app:layout_constraintLeft_toRightOf="@id/item_invite_image" app:layout_constraintRight_toRightOf="parent" app:layout_constraintStart_toEndOf="@id/item_invite_image" app:layout_constraintTop_toBottomOf="@id/item_invite_name" style="@style/UiKit.ViewGroup.LinearLayout.Horizontal">
|
||||
<ImageView android:id="@id/item_invite_online_dot" android:visibility="gone" android:layout_width="@dimen/uikit_spacing_small" android:layout_height="@dimen/uikit_spacing_small" android:layout_marginRight="@dimen/uikit_spacing_small" android:src="@drawable/drawable_circle_green" android:contentDescription="@string/instant_invite_guild_members_online" style="@style/UiKit.ImageView" />
|
||||
<TextView android:id="@id/item_invite_online_text" android:layout_marginRight="@dimen/uikit_spacing_medium" android:singleLine="true" style="@style/UiKit.Chat.Embed.Subtext" />
|
||||
<ImageView android:id="@id/item_invite_total_member_dot" android:visibility="gone" android:layout_width="@dimen/uikit_spacing_small" android:layout_height="@dimen/uikit_spacing_small" android:layout_marginRight="@dimen/uikit_spacing_small" android:src="@drawable/drawable_grey_user_icon" android:contentDescription="@string/instant_invite_guild_members_total" style="@style/UiKit.ImageView" />
|
||||
<TextView android:id="@id/item_invite_total_member_text" android:singleLine="true" style="@style/UiKit.Chat.Embed.Subtext" />
|
||||
</LinearLayout>
|
||||
<Button android:id="@id/item_invite_joined_button" android:visibility="gone" android:layout_height="wrap_content" android:layout_marginLeft="@dimen/uikit_spacing_medium" android:layout_marginRight="@dimen/uikit_spacing_medium" android:layout_marginBottom="@dimen/uikit_spacing_medium" android:text="@string/joined_server" android:layout_below="@id/item_invite_image" style="@style/UiKit.Button.White.Outline.Themed" />
|
||||
<Button android:id="@id/item_invite_join_button" android:visibility="gone" android:layout_height="wrap_content" android:layout_marginLeft="@dimen/uikit_spacing_medium" android:layout_marginRight="@dimen/uikit_spacing_medium" android:layout_marginBottom="@dimen/uikit_spacing_medium" android:text="@string/join_server" android:layout_below="@id/item_invite_image" style="@style/UiKit.Button.Green" />
|
||||
<Button android:id="@id/item_invite_mention_button" android:visibility="gone" android:layout_height="wrap_content" android:layout_marginLeft="@dimen/uikit_spacing_medium" android:layout_marginRight="@dimen/uikit_spacing_medium" android:layout_marginBottom="@dimen/uikit_spacing_medium" android:text="@string/mention" android:layout_below="@id/item_invite_image" style="@style/UiKit.Button" />
|
||||
<View android:id="@id/item_invite_loading_button" android:background="@drawable/drawable_empty_text_placeholder_dark" android:visibility="gone" android:layout_height="36.0dip" android:layout_marginLeft="@dimen/uikit_spacing_large" android:layout_marginTop="6.0dip" android:layout_marginRight="@dimen/uikit_spacing_large" android:layout_marginBottom="@dimen/uikit_spacing_large" android:text="@string/mention" android:layout_below="@id/item_invite_image" style="@style/UiKit.Button" />
|
||||
</RelativeLayout>
|
||||
<FrameLayout android:paddingBottom="@dimen/uikit_spacing_medium" android:layout_width="0.0dip" android:layout_height="wrap_content" android:layout_marginLeft="@dimen/uikit_spacing_medium" android:layout_marginTop="@dimen/uikit_spacing_medium" android:layout_marginRight="@dimen/uikit_spacing_medium" android:layout_marginBottom="@dimen/uikit_spacing_medium" android:text="@string/join_server" app:layout_constraintEnd_toEndOf="parent" app:layout_constraintStart_toStartOf="parent" app:layout_constraintTop_toBottomOf="@id/item_invite_image">
|
||||
<Button android:id="@id/item_invite_joined_button" android:visibility="gone" android:text="@string/joined_server" style="@style/UiKit.Button.White.Outline.Themed" />
|
||||
<Button android:id="@id/item_invite_join_button" android:text="@string/join_server" style="@style/UiKit.Button.Green" />
|
||||
<Button android:id="@id/item_invite_mention_button" android:visibility="gone" android:text="@string/mention" style="@style/UiKit.Button" />
|
||||
<View android:id="@id/item_invite_loading_button" android:background="@drawable/drawable_empty_text_placeholder_dark" android:visibility="gone" android:layout_height="36.0dip" android:text="@string/mention" style="@style/UiKit.Button" />
|
||||
</FrameLayout>
|
||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
|
@ -1,13 +1,12 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<RelativeLayout android:id="@id/item_listen_together_container" android:background="?chat_embed_bg" android:layout_width="@dimen/chat_embed_width" android:layout_height="@dimen/chat_listen_embed_height" android:layout_marginLeft="60.0dip" android:layout_marginRight="@dimen/chat_cell_horizontal_spacing_total" android:layout_marginBottom="@dimen/chat_cell_vertical_spacing_padding"
|
||||
<androidx.constraintlayout.widget.ConstraintLayout android:id="@id/item_listen_together_container" android:layout_height="@dimen/chat_listen_embed_height" style="@style/UiKit.Chat.Embed.Container"
|
||||
xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto">
|
||||
<TextView android:id="@id/item_listen_together_header" style="@style/UiKit.Chat.Embed.Header" />
|
||||
<com.facebook.drawee.view.SimpleDraweeView android:id="@id/item_listen_together_album_image" android:layout_width="42.0dip" android:layout_height="42.0dip" android:layout_marginLeft="@dimen/uikit_spacing_large" android:layout_below="@id/item_listen_together_header" android:layout_alignParentLeft="true" app:roundedCornerRadius="4.0dip" />
|
||||
<TextView android:textSize="@dimen/uikit_textsize_large" android:textColor="?primary_100" android:id="@id/item_listen_together_session_ended" android:visibility="gone" android:layout_marginLeft="@dimen/uikit_spacing_large" android:layout_marginRight="@dimen/uikit_spacing_large" android:text="@string/invite_embed_listen_has_ended" android:singleLine="true" android:layout_below="@id/item_listen_together_header" android:layout_alignParentLeft="true" style="@style/UiKit.TextView" />
|
||||
<TextView android:textSize="@dimen/uikit_textsize_large" android:textColor="?primary_100" android:id="@id/item_listen_together_track" android:layout_marginLeft="@dimen/uikit_spacing_medium" android:layout_marginRight="@dimen/uikit_spacing_large" android:layout_toRightOf="@id/item_listen_together_album_image" android:layout_below="@id/item_listen_together_header" style="@style/UiKit.TextView.Marquee" />
|
||||
<TextView android:textSize="@dimen/uikit_textsize_large" android:textColor="?primary_100" android:id="@id/item_listen_together_artist" android:layout_marginLeft="@dimen/uikit_spacing_medium" android:layout_marginRight="@dimen/uikit_spacing_large" android:layout_toRightOf="@id/item_listen_together_album_image" android:layout_below="@id/item_listen_together_track" style="@style/UiKit.TextView.Marquee" />
|
||||
<RelativeLayout android:layout_width="fill_parent" android:layout_height="@dimen/avatar_size_standard" android:layout_marginLeft="@dimen/embed_user_padding" android:layout_marginTop="@dimen/uikit_spacing_medium" android:layout_marginBottom="@dimen/embed_user_padding" android:layout_toLeftOf="@id/item_listen_together_join" android:layout_alignParentLeft="true" android:layout_alignParentBottom="true" style="@style/UiKit.View.HiddenOnSmallScreens">
|
||||
<androidx.recyclerview.widget.RecyclerView android:id="@id/item_listen_together_recycler" android:layout_height="fill_parent" style="@style/UiKit.ViewGroup.RecyclerView.Horizontal" />
|
||||
</RelativeLayout>
|
||||
<TextView android:id="@id/item_listen_together_join" android:text="@string/invite_embed_join_via_desktop_app" android:singleLine="true" style="@style/UiKit.Chat.Embed.Footer" />
|
||||
</RelativeLayout>
|
||||
<com.facebook.drawee.view.SimpleDraweeView android:id="@id/item_listen_together_album_image" android:layout_width="42.0dip" android:layout_height="42.0dip" android:layout_marginLeft="@dimen/uikit_spacing_large" android:layout_marginTop="@dimen/uikit_spacing_large" android:layout_marginBottom="@dimen/margin" app:layout_constraintLeft_toLeftOf="parent" app:layout_constraintStart_toStartOf="parent" app:layout_constraintTop_toBottomOf="@id/item_listen_together_header" app:roundedCornerRadius="4.0dip" />
|
||||
<TextView android:id="@id/item_listen_together_session_ended" android:visibility="gone" android:layout_margin="@dimen/uikit_spacing_large" android:text="@string/invite_embed_listen_has_ended" app:layout_constrainedWidth="true" app:layout_constraintLeft_toLeftOf="parent" app:layout_constraintStart_toStartOf="parent" app:layout_constraintTop_toBottomOf="@id/item_listen_together_header" style="@style/UiKit.TextView.Large.SingleLine" />
|
||||
<TextView android:ellipsize="marquee" android:id="@id/item_listen_together_track" android:layout_width="0.0dip" android:layout_marginLeft="@dimen/uikit_spacing_medium" android:layout_marginTop="@dimen/uikit_spacing_large" android:layout_marginRight="@dimen/uikit_spacing_large" android:marqueeRepeatLimit="marquee_forever" app:layout_constrainedWidth="true" app:layout_constraintEnd_toEndOf="parent" app:layout_constraintLeft_toRightOf="@id/item_listen_together_album_image" app:layout_constraintRight_toRightOf="parent" app:layout_constraintStart_toEndOf="@id/item_listen_together_album_image" app:layout_constraintTop_toBottomOf="@id/item_listen_together_header" style="@style/UiKit.TextView.Large.SingleLine" />
|
||||
<TextView android:id="@id/item_listen_together_artist" android:layout_width="0.0dip" app:layout_constraintEnd_toEndOf="@id/item_listen_together_track" app:layout_constraintLeft_toLeftOf="@id/item_listen_together_track" app:layout_constraintRight_toRightOf="@id/item_listen_together_track" app:layout_constraintStart_toStartOf="@id/item_listen_together_track" app:layout_constraintTop_toBottomOf="@id/item_listen_together_track" style="@style/UiKit.TextView.Marquee" />
|
||||
<androidx.constraintlayout.widget.Barrier android:id="@id/barrier" android:layout_width="fill_parent" android:layout_height="wrap_content" app:barrierDirection="bottom" app:constraint_referenced_ids="item_listen_together_album_image,item_listen_together_artist" />
|
||||
<androidx.recyclerview.widget.RecyclerView android:id="@id/item_listen_together_recycler" android:layout_width="0.0dip" android:layout_height="@dimen/avatar_size_standard" android:layout_marginLeft="@dimen/uikit_spacing_large" android:layout_marginTop="@dimen/uikit_spacing_medium" android:layout_marginBottom="@dimen/uikit_spacing_large" app:layout_constraintBottom_toBottomOf="parent" app:layout_constraintEnd_toStartOf="@id/item_listen_together_join" app:layout_constraintLeft_toLeftOf="parent" app:layout_constraintRight_toLeftOf="@id/item_listen_together_join" app:layout_constraintStart_toStartOf="parent" app:layout_constraintTop_toBottomOf="@id/barrier" style="@style/UiKit.ViewGroup.RecyclerView.Horizontal" />
|
||||
<TextView android:id="@id/item_listen_together_join" android:text="@string/invite_embed_join_via_desktop_app" style="@style/UiKit.Chat.Embed.Footer" />
|
||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
|
@ -1,5 +1,5 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<RelativeLayout android:background="?selectableItemBackground" android:paddingLeft="47.0dip" android:paddingRight="@dimen/chat_cell_horizontal_spacing_total" android:layout_width="fill_parent" android:layout_height="wrap_content"
|
||||
<FrameLayout android:background="?selectableItemBackground" android:paddingLeft="@dimen/uikit_guideline_chat" android:paddingRight="@dimen/chat_cell_horizontal_spacing_total" android:layout_width="fill_parent" android:layout_height="wrap_content"
|
||||
xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<com.discord.utilities.view.text.LinkifiedTextView android:textSize="13.75sp" android:textColor="?theme_chat_text" android:textColorLink="@color/link_500" android:gravity="center_vertical" android:id="@id/chat_list_adapter_item_text" android:layout_width="fill_parent" android:layout_marginLeft="@dimen/chat_cell_horizontal_spacing_total" android:layout_marginBottom="2.0dip" android:minHeight="19.0dip" android:lineSpacingMultiplier="1.1" style="@style/UiKit.TextView" />
|
||||
</RelativeLayout>
|
||||
<com.discord.utilities.view.text.LinkifiedTextView android:textSize="13.75sp" android:textColor="?theme_chat_text" android:textColorLink="@color/link_500" android:gravity="center_vertical" android:id="@id/chat_list_adapter_item_text" android:layout_width="fill_parent" android:layout_marginBottom="2.0dip" android:minHeight="19.0dip" android:lineSpacingMultiplier="1.1" style="@style/UiKit.TextView" />
|
||||
</FrameLayout>
|
|
@ -1,6 +1,6 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<RelativeLayout android:paddingLeft="@dimen/chat_cell_horizontal_spacing_padding" android:paddingTop="@dimen/chat_cell_vertical_spacing_padding" android:paddingRight="@dimen/chat_cell_horizontal_spacing_padding" android:paddingBottom="@dimen/chat_cell_vertical_spacing_padding" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_marginLeft="@dimen/chat_cell_horizontal_spacing_margin" android:layout_marginRight="@dimen/chat_cell_horizontal_spacing_margin"
|
||||
xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<ImageView android:id="@id/chat_list_adapter_item_start_image" android:layout_width="98.4375dip" android:layout_height="75.9375dip" android:layout_marginTop="10.0dip" android:src="@drawable/asset_mascot_grey_left" android:layout_alignParentLeft="true" android:layout_alignParentTop="true" android:layout_centerInParent="true" android:contentDescription="@string/sample_empty_string" />
|
||||
<com.discord.app.AppTextView android:textSize="13.75sp" android:textColor="?theme_chat_text" android:textColorLink="@color/link_500" android:id="@id/chat_list_adapter_item_start" android:paddingTop="10.0dip" android:paddingBottom="10.0dip" android:layout_width="fill_parent" android:text="@string/beginning_channel" android:layout_below="@id/chat_list_adapter_item_start_image" style="@style/UiKit.TextView" />
|
||||
<ImageView android:id="@id/chat_list_adapter_item_start_image" android:layout_width="98.0dip" android:layout_height="76.0dip" android:layout_marginTop="10.0dip" android:src="@drawable/asset_mascot_grey_left" android:layout_alignParentLeft="true" android:layout_alignParentTop="true" android:layout_centerInParent="true" android:contentDescription="@string/sample_empty_string" />
|
||||
<com.discord.app.AppTextView android:textColor="?theme_chat_text" android:id="@id/chat_list_adapter_item_start" android:paddingTop="@dimen/uikit_spacing_medium" android:paddingBottom="@dimen/uikit_spacing_medium" android:layout_width="fill_parent" android:text="@string/beginning_channel" android:layout_below="@id/chat_list_adapter_item_start_image" style="@style/UiKit.TextView" />
|
||||
</RelativeLayout>
|
|
@ -1,9 +1,9 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<RelativeLayout android:paddingLeft="@dimen/chat_cell_horizontal_spacing_padding" android:paddingTop="@dimen/chat_cell_vertical_spacing_padding" android:paddingRight="@dimen/chat_cell_horizontal_spacing_padding" android:paddingBottom="@dimen/chat_cell_vertical_spacing_padding" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_marginLeft="@dimen/chat_cell_horizontal_spacing_margin" android:layout_marginRight="@dimen/chat_cell_horizontal_spacing_margin"
|
||||
xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<ImageView android:id="@id/chat_list_adapter_item_system_icon" android:layout_width="@dimen/avatar_size_small" android:layout_height="@dimen/avatar_size_small" android:layout_marginRight="@dimen/chat_cell_horizontal_spacing_total" android:layout_centerVertical="true" android:contentDescription="@string/sample_empty_string" />
|
||||
<ImageView android:id="@id/chat_list_adapter_item_system_icon" android:layout_width="@dimen/avatar_size_small" android:layout_height="@dimen/avatar_size_small" android:layout_marginRight="@dimen/chat_cell_horizontal_spacing_total" android:layout_centerVertical="true" android:importantForAccessibility="no" />
|
||||
<LinearLayout android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_toRightOf="@id/chat_list_adapter_item_system_icon" android:layout_centerVertical="true">
|
||||
<TextView android:textSize="13.75sp" android:textColor="?theme_chat_text" android:id="@id/chat_list_adapter_item_system_text" android:layout_width="fill_parent" style="@style/UiKit.TextView" />
|
||||
<TextView android:textSize="9.5sp" android:textColor="?theme_chat_timestamp" android:gravity="center_vertical" android:id="@id/chat_list_adapter_item_system_timestamp" android:layout_marginBottom="1.0dip" android:maxWidth="150.0dip" android:text="@string/sample_time_pm" android:singleLine="true" style="@style/UiKit.TextView" />
|
||||
<TextView android:textColor="?theme_chat_text" android:id="@id/chat_list_adapter_item_system_text" android:layout_width="fill_parent" android:lineSpacingMultiplier="1.0" style="@style/UiKit.TextView.Large" />
|
||||
<TextView android:textSize="@dimen/uikit_textsize_small" android:textColor="?theme_chat_timestamp" android:gravity="center_vertical" android:id="@id/chat_list_adapter_item_system_timestamp" android:layout_marginBottom="1.0dip" android:maxWidth="150.0dip" android:text="@string/sample_time_pm" android:singleLine="true" style="@style/UiKit.TextView" />
|
||||
</LinearLayout>
|
||||
</RelativeLayout>
|
|
@ -1,11 +1,12 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<RelativeLayout android:background="?selectableItemBackground" android:paddingLeft="@dimen/chat_cell_horizontal_spacing_total" android:paddingTop="@dimen/chat_cell_vertical_spacing_padding" android:paddingRight="@dimen/chat_cell_horizontal_spacing_total" android:paddingBottom="@dimen/chat_cell_vertical_spacing_padding" android:layout_width="fill_parent" android:layout_height="wrap_content"
|
||||
<androidx.constraintlayout.widget.ConstraintLayout android:background="?selectableItemBackground" android:paddingTop="10.0dip" android:paddingRight="@dimen/chat_cell_horizontal_spacing_padding" android:layout_width="fill_parent" android:layout_height="wrap_content"
|
||||
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/chat_list_adapter_item_text_avatar" android:layout_marginTop="@dimen/uikit_spacing_small" android:layout_marginRight="@dimen/chat_cell_horizontal_spacing_total" android:importantForAccessibility="no" style="@style/Avatar.Standard" />
|
||||
<androidx.constraintlayout.widget.ConstraintLayout android:id="@id/chat_list_adapter_item_text_header" android:layout_marginBottom="@dimen/uikit_spacing_small" android:layout_toRightOf="@id/chat_list_adapter_item_text_avatar" style="@style/UiKit.ViewGroup.LinearLayout.Horizontal">
|
||||
<TextView android:textSize="13.75sp" android:textColor="?theme_chat_name" android:id="@id/chat_list_adapter_item_text_name" android:singleLine="true" app:layout_constrainedWidth="true" app:layout_constraintBaseline_toBaselineOf="@id/chat_list_adapter_item_text_bot" app:layout_constraintEnd_toStartOf="@id/chat_list_adapter_item_text_bot" app:layout_constraintHorizontal_bias="0.0" app:layout_constraintHorizontal_chainStyle="packed" app:layout_constraintStart_toStartOf="parent" style="@style/UiKit.TextView" />
|
||||
<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_adapter_item_text_avatar" android:layout_marginLeft="8.0dip" android:layout_marginTop="@dimen/uikit_spacing_small" android:importantForAccessibility="no" app:layout_constrainedWidth="true" app:layout_constraintEnd_toEndOf="@id/uikit_chat_guideline" app:layout_constraintHorizontal_bias="0.0" app:layout_constraintLeft_toLeftOf="parent" app:layout_constraintRight_toLeftOf="@id/uikit_chat_guideline" app:layout_constraintStart_toStartOf="parent" style="@style/Avatar.Chat" />
|
||||
<androidx.constraintlayout.widget.ConstraintLayout android:id="@id/chat_list_adapter_item_text_header" android:layout_width="wrap_content" android:layout_height="0.0dip" app:layout_constrainedWidth="true" app:layout_constraintEnd_toEndOf="parent" app:layout_constraintHorizontal_bias="0.0" app:layout_constraintLeft_toRightOf="@id/uikit_chat_guideline" app:layout_constraintRight_toRightOf="parent" app:layout_constraintStart_toEndOf="@id/uikit_chat_guideline" app:layout_constraintTop_toTopOf="@id/chat_list_adapter_item_text_avatar">
|
||||
<TextView android:textColor="?theme_chat_name" android:id="@id/chat_list_adapter_item_text_name" android:lineSpacingMultiplier="1.0" app:layout_constrainedWidth="true" app:layout_constraintBaseline_toBaselineOf="@id/chat_list_adapter_item_text_bot" app:layout_constraintEnd_toStartOf="@id/chat_list_adapter_item_text_bot" app:layout_constraintHorizontal_bias="0.0" app:layout_constraintHorizontal_chainStyle="packed" app:layout_constraintStart_toStartOf="parent" style="@style/UiKit.TextView.Large.SingleLine" />
|
||||
<TextView android:textSize="9.5sp" android:textColor="@color/white" android:id="@id/chat_list_adapter_item_text_bot" android:background="@drawable/drawable_button_purple_neutral" android:paddingLeft="3.0dip" android:paddingTop="0.5dip" android:paddingRight="3.0dip" android:paddingBottom="0.5dip" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="6.0dip" android:layout_marginBottom="1.0dip" android:text="BOT" android:singleLine="true" app:layout_constraintEnd_toStartOf="@id/chat_list_adapter_item_text_timestamp" app:layout_constraintStart_toEndOf="@id/chat_list_adapter_item_text_name" style="@style/UiKit.TextView" />
|
||||
<TextView android:textSize="9.5sp" android:textColor="?theme_chat_timestamp" android:gravity="center_vertical" android:id="@id/chat_list_adapter_item_text_timestamp" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="6.0dip" android:layout_marginBottom="1.0dip" android:maxWidth="150.0dip" android:singleLine="true" app:layout_constraintBaseline_toBaselineOf="@id/chat_list_adapter_item_text_name" app:layout_constraintEnd_toEndOf="parent" app:layout_constraintStart_toEndOf="@id/chat_list_adapter_item_text_bot" style="@style/UiKit.TextView" />
|
||||
<TextView android:textSize="@dimen/uikit_textsize_small" android:textColor="?theme_chat_timestamp" android:gravity="center_vertical" android:id="@id/chat_list_adapter_item_text_timestamp" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="6.0dip" android:layout_marginBottom="1.0dip" android:maxWidth="150.0dip" android:singleLine="true" app:layout_constraintBaseline_toBaselineOf="@id/chat_list_adapter_item_text_name" app:layout_constraintEnd_toEndOf="parent" app:layout_constraintStart_toEndOf="@id/chat_list_adapter_item_text_bot" style="@style/UiKit.TextView" />
|
||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||
<com.discord.utilities.view.text.LinkifiedTextView android:textSize="13.75sp" android:textColor="?theme_chat_text" android:textColorLink="@color/link_500" android:id="@id/chat_list_adapter_item_text" android:layout_width="fill_parent" android:layout_toRightOf="@id/chat_list_adapter_item_text_avatar" android:layout_below="@id/chat_list_adapter_item_text_header" style="@style/UiKit.TextView" />
|
||||
</RelativeLayout>
|
||||
<com.discord.utilities.view.text.LinkifiedTextView android:textSize="13.75sp" android:textColor="?theme_chat_text" android:textColorLink="@color/link_500" android:id="@id/chat_list_adapter_item_text" android:layout_width="0.0dip" android:layout_marginTop="@dimen/uikit_spacing_xsmall" android:layout_marginRight="@dimen/uikit_spacing_small" android:layout_marginBottom="2.0dip" app:layout_constraintBottom_toBottomOf="parent" app:layout_constraintEnd_toEndOf="parent" app:layout_constraintLeft_toRightOf="@id/uikit_chat_guideline" app:layout_constraintRight_toRightOf="parent" app:layout_constraintStart_toEndOf="@id/uikit_chat_guideline" app:layout_constraintTop_toBottomOf="@id/chat_list_adapter_item_text_header" style="@style/UiKit.TextView" />
|
||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
|
@ -2,6 +2,6 @@
|
|||
<RelativeLayout android:orientation="vertical" android:paddingLeft="@dimen/chat_cell_horizontal_spacing_total" android:paddingTop="@dimen/chat_cell_vertical_spacing_padding" android:paddingRight="@dimen/chat_cell_horizontal_spacing_total" android:paddingBottom="@dimen/chat_cell_vertical_spacing_padding" android:layout_width="fill_parent" android:layout_height="wrap_content"
|
||||
xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<View android:id="@id/chat_list_item_divider_stroke_left" android:layout_width="fill_parent" android:layout_height="0.25dip" android:layout_toLeftOf="@id/chat_list_item_divider_text" android:layout_centerInParent="true" />
|
||||
<TextView android:textSize="11.0sp" android:gravity="center" android:id="@id/chat_list_item_divider_text" android:paddingLeft="@dimen/chat_cell_horizontal_spacing_padding" android:paddingRight="@dimen/chat_cell_horizontal_spacing_padding" android:layout_centerInParent="true" style="@style/UiKit.TextView.Semibold" />
|
||||
<TextView android:textSize="@dimen/uikit_textsize_small" android:gravity="center" android:id="@id/chat_list_item_divider_text" android:paddingLeft="@dimen/chat_cell_horizontal_spacing_padding" android:paddingRight="@dimen/chat_cell_horizontal_spacing_padding" android:layout_centerInParent="true" style="@style/UiKit.TextView.Semibold" />
|
||||
<View android:id="@id/chat_list_item_divider_stroke_right" android:layout_width="fill_parent" android:layout_height="0.25dip" android:layout_toRightOf="@id/chat_list_item_divider_text" android:layout_centerInParent="true" />
|
||||
</RelativeLayout>
|
|
@ -1,5 +1,5 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<LinearLayout android:orientation="horizontal" android:background="?chat_embed_bg" android:paddingLeft="@dimen/uikit_spacing_medium" android:paddingRight="@dimen/uikit_spacing_medium" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_marginLeft="60.0dip" android:layout_marginTop="@dimen/uikit_spacing_small" android:layout_marginRight="@dimen/chat_cell_horizontal_spacing_total" android:layout_marginBottom="@dimen/chat_cell_vertical_spacing_padding" android:maxWidth="400.0dip" android:weightSum="1.0" style="@style/UiKit.ViewGroup.LinearLayout.Horizontal"
|
||||
<LinearLayout android:orientation="horizontal" android:paddingLeft="@dimen/uikit_spacing_medium" android:paddingRight="@dimen/uikit_spacing_medium" android:layout_width="fill_parent" android:layout_height="wrap_content" android:baselineAligned="false" style="@style/UiKit.Chat.Embed.Container"
|
||||
xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<LinearLayout android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_marginRight="@dimen/uikit_spacing_medium" android:layout_weight="0.05" style="@style/UiKit.ViewGroup.LinearLayout">
|
||||
<com.discord.views.UploadProgressView android:id="@id/upload_progress_1" android:layout_width="fill_parent" android:layout_height="wrap_content" />
|
||||
|
@ -7,7 +7,7 @@
|
|||
<com.discord.views.UploadProgressView android:id="@id/upload_progress_3" android:visibility="gone" android:layout_width="fill_parent" android:layout_height="wrap_content" />
|
||||
</LinearLayout>
|
||||
<FrameLayout android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_weight="0.9">
|
||||
<ImageView android:id="@id/progress_cancel_top" android:background="?selectableItemBackground" android:layout_width="18.0dip" android:layout_height="18.0dip" android:layout_marginTop="@dimen/uikit_spacing_small" android:src="@drawable/ic_close_white_24dp" android:contentDescription="@string/cancel" />
|
||||
<ImageView android:layout_gravity="center_vertical" android:id="@id/progress_cancel_centered" android:background="?selectableItemBackground" android:layout_width="18.0dip" android:layout_height="18.0dip" android:src="@drawable/ic_close_white_24dp" android:contentDescription="@string/cancel" />
|
||||
<ImageView android:id="@id/progress_cancel_top" android:background="?selectableItemBackground" android:layout_width="18.0dip" android:layout_height="18.0dip" android:layout_marginTop="@dimen/uikit_spacing_small" android:src="@drawable/ic_close_primary_200_24dp" android:contentDescription="@string/cancel" />
|
||||
<ImageView android:layout_gravity="center_vertical" android:id="@id/progress_cancel_centered" android:background="?selectableItemBackground" android:layout_width="18.0dip" android:layout_height="18.0dip" android:src="@drawable/ic_close_primary_200_24dp" android:contentDescription="@string/cancel" />
|
||||
</FrameLayout>
|
||||
</LinearLayout>
|
Loading…
Add table
Add a link
Reference in a new issue