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

22 lines
5.7 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:background="?attr/selectableItemBackground" style="@style/res_2131952587_uikit_viewgroup">
<View android:id="@+id/chat_list_adapter_item_highlighted_bg" android:background="?attr/theme_chat_mentioned_me" 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: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"/>
<androidx.constraintlayout.widget.Guideline android:id="@+id/uikit_chat_guideline" style="@style/res_2131952399_uikit_chat_guideline"/>
<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:layout_marginBottom="@dimen/chat_cell_vertical_spacing_padding" android:maxHeight="500dp" app:cardBackgroundColor="@color/transparent" app:cardCornerRadius="8dp" app:cardElevation="0dp" app:layout_constrainedWidth="true" app:layout_constraintBottom_toBottomOf="0" app:layout_constraintEnd_toEndOf="0" app:layout_constraintHorizontal_bias="0" app:layout_constraintStart_toEndOf="@+id/uikit_chat_guideline" app:layout_constraintTop_toTopOf="0"/>
<com.google.android.material.card.MaterialCardView android:id="@+id/chat_list_item_attachment_card" android:visibility="gone" android:layout_width="0dp" android:layout_marginTop="@dimen/chat_cell_vertical_spacing_padding" android:layout_marginBottom="@dimen/chat_cell_vertical_spacing_padding" android:layout_marginEnd="@dimen/chat_cell_horizontal_spacing_total" android:transitionGroup="true" app:layout_constraintBottom_toBottomOf="0" app:layout_constraintEnd_toEndOf="0" app:layout_constraintStart_toEndOf="@+id/uikit_chat_guideline" app:layout_constraintTop_toTopOf="0" style="@style/res_2131952394_uikit_chat_embed_cardview">
<androidx.constraintlayout.widget.ConstraintLayout android:padding="8dp" style="@style/res_2131952589_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="0" app:layout_constraintStart_toStartOf="0" app:layout_constraintTop_toTopOf="0" style="@style/res_2131952448_uikit_imageview"/>
<TextView android:id="@+id/chat_list_item_attachment_name" android:lineSpacingMultiplier="1" android:layout_marginStart="8dp" app:layout_constrainedWidth="true" app:layout_constraintBottom_toTopOf="@+id/chat_list_item_attachment_description" app:layout_constraintEnd_toStartOf="@+id/chat_list_item_attachment_download" app:layout_constraintHorizontal_bias="0" app:layout_constraintStart_toEndOf="@+id/chat_list_item_attachment_icon" app:layout_constraintTop_toTopOf="0" app:layout_constraintVertical_chainStyle="2" style="@style/res_2131952570_uikit_textview_link"/>
<TextView android:id="@+id/chat_list_item_attachment_description" android:lineSpacingMultiplier="1" app:layout_constrainedWidth="true" app:layout_constraintBottom_toBottomOf="0" app:layout_constraintStart_toStartOf="@+id/chat_list_item_attachment_name" app:layout_constraintTop_toBottomOf="@+id/chat_list_item_attachment_name" style="@style/res_2131952579_uikit_textview_subtext"/>
<ImageView android:id="@+id/chat_list_item_attachment_download" android:src="?attr/ic_file_download_opaque" android:contentDescription="@string/download" app:layout_constraintBottom_toBottomOf="0" app:layout_constraintEnd_toEndOf="0" app:layout_constraintTop_toTopOf="0" style="@style/res_2131952448_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="0dp" android:layout_height="0dp" app:barrierDirection="6" 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="?attr/theme_chat_spoiler_bg" android:visibility="gone" android:layout_width="0dp" android:layout_height="0dp" android:elevation="@dimen/app_elevation" app:layout_constraintBottom_toBottomOf="0" app:layout_constraintEnd_toEndOf="@+id/chat_list_item_attachment_barrier" app:layout_constraintStart_toEndOf="@+id/uikit_chat_guideline" app:layout_constraintTop_toTopOf="0">
<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="16dp" app:cardElevation="@dimen/app_elevation">
<TextView android:textColor="@color/primary_200" android:layout_gravity="center" 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>