22 lines
5.5 KiB
XML
22 lines
5.5 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/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/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/UiKit_Chat_Embed_CardView">
|
||
|
<androidx.constraintlayout.widget.ConstraintLayout android:padding="8dp" 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="0" app:layout_constraintStart_toStartOf="0" app:layout_constraintTop_toTopOf="0" style="@style/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/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/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/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/UiKit_TextView_H2"/>
|
||
|
</androidx.cardview.widget.CardView>
|
||
|
</FrameLayout>
|
||
|
</androidx.constraintlayout.widget.ConstraintLayout>
|