discord-jadx/app/src/main/res/layout/widget_chat_list_adapter_it...

34 lines
11 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" android:layout_width="wrap_content" android:layout_height="wrap_content">
<View android:id="@+id/chat_list_adapter_item_highlighted_bg" android:background="?attr/theme_chat_mentioned_me" android:visibility="gone" android:layout_width="0dp" android:layout_height="0dp" app:layout_constraintBottom_toBottomOf="0" app:layout_constraintEnd_toEndOf="0" app:layout_constraintStart_toStartOf="0" app:layout_constraintTop_toTopOf="0"/>
<View android:id="@+id/chat_list_adapter_item_gutter_bg" android:background="@color/status_yellow_500" android:visibility="gone" android:layout_width="2dp" android:layout_height="0dp" app:layout_constraintBottom_toBottomOf="0" app:layout_constraintStart_toStartOf="0" app:layout_constraintTop_toTopOf="@+id/chat_list_adapter_item_highlighted_bg"/>
<com.google.android.material.card.MaterialCardView android:id="@+id/chat_list_item_embed_container_card" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_marginBottom="@dimen/chat_cell_vertical_spacing_padding" android:layout_marginStart="@dimen/uikit_guideline_chat" android:layout_marginEnd="@dimen/chat_cell_horizontal_spacing_padding" android:transitionGroup="true" app:layout_constraintBottom_toBottomOf="0" app:layout_constraintEnd_toEndOf="0" app:layout_constraintStart_toStartOf="0" app:layout_constraintTop_toTopOf="0" style="@style/res_2131952394_uikit_chat_embed_cardview">
<androidx.constraintlayout.widget.ConstraintLayout style="@style/res_2131952589_uikit_viewgroup_constraintlayout">
<View android:id="@+id/chat_list_item_embed_divider" android:background="?attr/colorBackgroundModifierAccent" android:layout_width="3dp" android:layout_height="0dp" app:layout_constraintBottom_toBottomOf="0" app:layout_constraintStart_toStartOf="0" app:layout_constraintTop_toTopOf="0"/>
<com.facebook.drawee.view.SimpleDraweeView android:id="@+id/chat_list_item_embed_image_thumbnail" android:visibility="gone" android:layout_margin="4dp" android:layout_marginStart="8dp" app:layout_constraintEnd_toEndOf="0" app:layout_constraintTop_toTopOf="0" app:overlayImage="@drawable/drawable_overlay_image_square" app:placeholderImage="?attr/colorBackgroundPrimary" app:roundedCornerRadius="8dp" style="@style/res_2131952448_uikit_imageview"/>
<androidx.constraintlayout.widget.ConstraintLayout android:id="@+id/chat_list_item_embed_content" android:paddingTop="8dp" android:paddingBottom="8dp" android:layout_width="wrap_content" android:layout_height="wrap_content" android:paddingStart="8dp" android:paddingEnd="8dp" app:layout_constrainedWidth="true" app:layout_constraintEnd_toStartOf="@+id/chat_list_item_embed_image_thumbnail" app:layout_constraintStart_toEndOf="@+id/chat_list_item_embed_divider" app:layout_constraintTop_toTopOf="0">
<TextView android:textSize="10sp" android:textColor="?attr/colorTextMuted" android:id="@+id/chat_list_item_embed_provider" android:background="?attr/selectableItemBackground" android:visibility="gone" app:layout_constrainedWidth="true" app:layout_constraintEnd_toEndOf="0" app:layout_constraintHorizontal_bias="0" app:layout_constraintStart_toStartOf="0" app:layout_constraintTop_toTopOf="0" style="@style/res_2131952561_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_constraintStart_toStartOf="0" app:layout_constraintTop_toTopOf="@+id/chat_list_item_embed_author_text" app:placeholderImage="?attr/colorBackgroundPrimary" app:roundedCornerRadius="2dp"/>
<TextView android:textColor="?attr/colorHeaderPrimary" android:id="@+id/chat_list_item_embed_author_text" android:visibility="gone" android:layout_marginStart="@dimen/embed_item_margin" app:layout_constrainedWidth="true" app:layout_constraintEnd_toEndOf="0" app:layout_constraintHorizontal_bias="0" app:layout_constraintStart_toEndOf="@+id/chat_list_item_embed_author_icon" app:layout_constraintTop_toBottomOf="@+id/chat_list_item_embed_provider" app:layout_goneMarginLeft="0dp" app:layout_goneMarginStart="0dp" app:layout_goneMarginTop="0dp" style="@style/res_2131952577_uikit_textview_semibold"/>
<com.discord.utilities.view.text.LinkifiedTextView android:textColor="?attr/colorHeaderPrimary" android:id="@+id/chat_list_item_embed_title" android:background="?attr/selectableItemBackground" android:lineSpacingMultiplier="1" app:layout_constrainedWidth="true" app:layout_constraintEnd_toEndOf="0" app:layout_constraintHorizontal_bias="0" app:layout_constraintStart_toStartOf="0" app:layout_constraintTop_toBottomOf="@+id/chat_list_item_embed_author_text" style="@style/res_2131952577_uikit_textview_semibold"/>
<androidx.constraintlayout.widget.Barrier android:id="@+id/chat_list_item_embed_barrier_header" android:layout_width="0dp" android:layout_height="0dp" app:barrierDirection="3" app:constraint_referenced_ids="chat_list_item_embed_title, chat_list_item_embed_author_text, chat_list_item_embed_provider"/>
<com.discord.utilities.view.text.LinkifiedTextView android:id="@+id/chat_list_item_embed_description" android:background="?attr/selectableItemBackground" android:layout_width="wrap_content" android:layout_marginTop="4dp" android:text="@string/sample_channel_message" android:lineSpacingMultiplier="1" app:layout_constrainedWidth="true" app:layout_constraintEnd_toEndOf="0" app:layout_constraintHorizontal_bias="0" app:layout_constraintStart_toStartOf="0" app:layout_constraintTop_toBottomOf="@+id/chat_list_item_embed_barrier_header" style="@style/res_2131952561_uikit_textview"/>
<LinearLayout android:id="@+id/chat_list_item_embed_fields" android:layout_width="match_parent" app:layout_constraintEnd_toEndOf="0" app:layout_constraintHorizontal_bias="0" app:layout_constraintStart_toStartOf="0" app:layout_constraintTop_toBottomOf="@+id/chat_list_item_embed_description" style="@style/res_2131952592_uikit_viewgroup_linearlayout"/>
<androidx.constraintlayout.widget.Barrier android:id="@+id/chat_list_item_embed_barrier_data" android:layout_width="0dp" android:layout_height="0dp" app:barrierDirection="3" app:constraint_referenced_ids="chat_list_item_embed_barrier_header, chat_list_item_embed_description, chat_list_item_embed_fields"/>
<androidx.cardview.widget.CardView android:id="@+id/embed_image_container" android:visibility="gone" android:layout_width="wrap_content" android:layout_marginTop="4dp" android:layout_marginBottom="4dp" app:cardBackgroundColor="@color/transparent" app:cardCornerRadius="8dp" app:cardElevation="0dp" app:layout_constraintHorizontal_bias="0" app:layout_constraintRight_toRightOf="0" app:layout_constraintStart_toStartOf="0" app:layout_constraintTop_toBottomOf="@+id/chat_list_item_embed_barrier_data" style="@style/res_2131952587_uikit_viewgroup">
<com.facebook.drawee.view.SimpleDraweeView android:id="@+id/chat_list_item_embed_image" app:overlayImage="@drawable/drawable_overlay_image_square" app:placeholderImage="?attr/colorBackgroundModifierAccent" app:roundedCornerRadius="2dp" style="@style/res_2131952448_uikit_imageview"/>
<ImageView android:layout_gravity="center" android:id="@+id/chat_list_item_embed_image_icons" android:background="@drawable/drawable_circle_primary_900" android:padding="8dp" 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:alpha="0.6" android:importantForAccessibility="no" app:tint="@color/white"/>
</androidx.cardview.widget.CardView>
<com.facebook.drawee.view.SimpleDraweeView android:id="@+id/chat_list_item_embed_footer_icon" android:visibility="gone" android:layout_width="@dimen/embed_tiny_icon_size" android:layout_height="@dimen/embed_tiny_icon_size" android:layout_marginEnd="@dimen/embed_item_margin" app:layout_constraintBottom_toBottomOf="@+id/chat_list_item_embed_footer_text" app:layout_constraintStart_toStartOf="0" app:layout_constraintTop_toTopOf="@+id/chat_list_item_embed_footer_text" app:placeholderImage="?attr/colorBackgroundPrimary" app:roundedCornerRadius="2dp"/>
<TextView android:textSize="@dimen/uikit_textsize_small" android:id="@+id/chat_list_item_embed_footer_text" android:visibility="gone" android:layout_width="wrap_content" android:layout_marginTop="4dp" android:lineSpacingMultiplier="1" android:layout_marginStart="8dp" android:layout_toEndOf="@+id/chat_list_item_embed_footer_icon" app:layout_constrainedWidth="true" app:layout_constraintEnd_toEndOf="0" app:layout_constraintHorizontal_bias="0" app:layout_constraintLeft_toRightOf="@+id/chat_list_item_embed_footer_icon" app:layout_constraintRight_toRightOf="0" app:layout_constraintStart_toEndOf="@+id/chat_list_item_embed_footer_icon" app:layout_constraintTop_toBottomOf="@+id/embed_image_container" app:layout_goneMarginLeft="0dp" app:layout_goneMarginStart="0dp" style="@style/res_2131952577_uikit_textview_semibold"/>
</androidx.constraintlayout.widget.ConstraintLayout>
<com.discord.widgets.chat.list.InlineMediaView android:id="@+id/embed_inline_media" android:layout_width="wrap_content" android:layout_height="wrap_content" app:cardBackgroundColor="@color/transparent" app:cardCornerRadius="8dp" app:cardElevation="0dp" app:layout_constraintBottom_toBottomOf="0" app:layout_constraintEnd_toEndOf="0" app:layout_constraintHorizontal_bias="0" app:layout_constraintStart_toStartOf="0" app:layout_constraintTop_toTopOf="0"/>
<FrameLayout android:id="@+id/chat_list_item_embed_spoiler" android:background="?attr/theme_chat_spoiler_bg" android:visibility="gone" android:layout_width="0dp" android:layout_height="0dp" app:layout_constraintBottom_toBottomOf="0" app:layout_constraintEnd_toEndOf="0" app:layout_constraintStart_toEndOf="@+id/chat_list_item_embed_divider" app:layout_constraintTop_toTopOf="0">
<androidx.cardview.widget.CardView android:layout_gravity="center" android:layout_width="wrap_content" android:layout_height="wrap_content" android:elevation="@dimen/app_elevation" app:cardBackgroundColor="?attr/colorBackgroundFloating" app:cardCornerRadius="16dp">
<TextView android:textColor="?attr/colorTextNormal" android:paddingLeft="8dp" android:paddingTop="4dp" android:paddingRight="8dp" android:paddingBottom="4dp" android:layout_marginLeft="4dp" android:layout_marginRight="4dp" android:text="@string/spoiler" android:textAllCaps="true" style="@style/res_2131952565_uikit_textview_h2"/>
</androidx.cardview.widget.CardView>
</FrameLayout>
</androidx.constraintlayout.widget.ConstraintLayout>
</com.google.android.material.card.MaterialCardView>
</androidx.constraintlayout.widget.ConstraintLayout>