34 lines
12 KiB
XML
34 lines
12 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:id="@+id/widget_chat_list_adapter_item_text_root" android:paddingTop="10dp" android:layout_width="match_parent" android:layout_height="wrap_content">
|
|
<View android:id="@+id/chat_list_adapter_item_selectable_background" android:background="?attr/selectableItemBackground" 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="@+id/chat_list_adapter_item_text_decorator"/>
|
|
<View android:id="@+id/chat_list_adapter_item_highlighted_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_toStartOf="0" app:layout_constraintTop_toTopOf="@+id/chat_list_adapter_item_text_decorator"/>
|
|
<View android:id="@+id/chat_list_adapter_item_gutter_bg" android:background="?attr/color_brand" 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"/>
|
|
<androidx.constraintlayout.widget.ConstraintLayout android:id="@+id/thread_starter_message_header" android:visibility="gone" android:layout_width="wrap_content" android:layout_height="wrap_content" app:layout_constraintStart_toStartOf="@+id/uikit_chat_guideline" app:layout_constraintTop_toTopOf="0">
|
|
<ImageView android:id="@+id/thread_starter_message_header_icon" android:layout_width="@dimen/avatar_size_reply" android:layout_height="@dimen/avatar_size_reply" android:src="@drawable/ic_channel_text" android:contentDescription="@string/channel" app:layout_constraintBottom_toBottomOf="0" app:layout_constraintStart_toStartOf="0" app:layout_constraintTop_toTopOf="0"/>
|
|
<TextView android:textSize="@dimen/uikit_textsize_small" android:textColor="?attr/colorHeaderSecondary" android:gravity="center" android:id="@+id/thread_starter_message_header_text" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="@string/thread_starter_message_original_message" android:layout_marginStart="4dp" app:layout_constraintBottom_toBottomOf="0" app:layout_constraintStart_toEndOf="@+id/thread_starter_message_header_icon" app:layout_constraintTop_toTopOf="0" style="@style/UiKit_Chat_Text"/>
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
|
<FrameLayout android:id="@+id/chat_list_adapter_item_text_decorator_reply_link_icon" android:clipChildren="false" android:layout_width="32dp" android:layout_height="0dp" app:layout_constraintBottom_toBottomOf="@+id/chat_list_adapter_item_text_decorator" app:layout_constraintEnd_toStartOf="@+id/chat_list_adapter_item_text_decorator" app:layout_constraintTop_toTopOf="@+id/chat_list_adapter_item_text_decorator">
|
|
<com.discord.widgets.chat.list.ViewReplySpline android:layout_width="match_parent" android:layout_height="match_parent" android:layout_marginTop="7dp" app:end_padding="2dp" app:tint="?attr/colorBackgroundAccent"/>
|
|
</FrameLayout>
|
|
<androidx.appcompat.widget.AppCompatImageView android:id="@+id/chat_list_adapter_item_thread_embed_spine" android:layout_width="wrap_content" android:layout_height="0dp" android:layout_marginTop="4dp" android:src="@drawable/thread_embed_spine_drawable" android:layout_marginStart="@dimen/chat_list_spine_margin" app:layout_constraintBottom_toBottomOf="0" app:layout_constraintStart_toStartOf="0" app:layout_constraintTop_toBottomOf="@+id/chat_list_adapter_item_text_avatar"/>
|
|
<FrameLayout android:gravity="center_vertical" android:id="@+id/chat_list_adapter_item_text_decorator" android:visibility="gone" android:layout_width="0dp" android:layout_height="wrap_content" android:layout_marginTop="4dp" android:layout_marginBottom="4dp" android:minHeight="18dp" android:layout_marginEnd="@dimen/chat_cell_horizontal_spacing_padding" android:layout_marginVertical="4dp" app:layout_constraintBottom_toTopOf="@+id/chat_list_adapter_item_text_avatar" app:layout_constraintLeft_toLeftOf="@+id/chat_list_adapter_item_text_header" app:layout_constraintRight_toRightOf="0" app:layout_constraintTop_toBottomOf="@+id/thread_starter_message_header">
|
|
<LinearLayout android:id="@+id/chat_list_adapter_item_reply_leading_views" android:layout_width="wrap_content" android:layout_height="wrap_content">
|
|
<ImageView android:id="@+id/chat_list_adapter_item_text_decorator_reply_icon" android:background="@drawable/drawable_circle_black" android:padding="2dp" android:layout_width="@dimen/avatar_size_reply" android:layout_height="@dimen/avatar_size_reply" android:src="@drawable/ic_reply_24dp" android:contentDescription="@null" android:layout_marginEnd="4dp" android:backgroundTint="?attr/colorBackgroundTertiary" app:tint="?attr/colorInteractiveNormal" style="@style/UiKit_ImageView"/>
|
|
<com.facebook.drawee.view.SimpleDraweeView android:layout_gravity="center" android:id="@+id/chat_list_adapter_item_text_decorator_avatar" android:layout_width="@dimen/avatar_size_reply" android:layout_height="@dimen/avatar_size_reply" android:layout_marginEnd="4dp" style="@style/Avatar_Chat"/>
|
|
<TextView android:textSize="@dimen/uikit_textsize_small" android:id="@+id/chat_list_adapter_item_text_decorator_reply_name" android:layout_width="wrap_content" android:layout_height="wrap_content" android:maxLines="1" android:layout_marginEnd="4dp" style="@style/UiKit_TextView"/>
|
|
</LinearLayout>
|
|
<com.discord.utilities.view.text.SimpleDraweeSpanTextView android:textSize="@dimen/uikit_textsize_small" android:textColor="?attr/colorTextNormal" android:ellipsize="end" android:id="@+id/chat_list_adapter_item_text_reply_content" android:layout_width="wrap_content" android:layout_height="wrap_content" android:maxLines="2" android:singleLine="false" android:alpha="0.64" style="@style/UiKit_TextView"/>
|
|
</FrameLayout>
|
|
<androidx.constraintlayout.widget.Guideline android:id="@+id/uikit_chat_guideline" app:layout_constraintTop_toBottomOf="@+id/chat_list_adapter_item_text_decorator" style="@style/UiKit_Chat_Guideline"/>
|
|
<com.facebook.drawee.view.SimpleDraweeView android:id="@+id/chat_list_adapter_item_text_avatar" android:importantForAccessibility="no" android:layout_marginStart="8dp" app:layout_constrainedWidth="true" app:layout_constraintEnd_toEndOf="@+id/uikit_chat_guideline" app:layout_constraintHorizontal_bias="0" app:layout_constraintLeft_toLeftOf="0" app:layout_constraintRight_toLeftOf="@+id/uikit_chat_guideline" app:layout_constraintStart_toStartOf="0" app:layout_constraintTop_toTopOf="@+id/chat_list_adapter_item_text_header" style="@style/Avatar_Chat"/>
|
|
<androidx.constraintlayout.widget.ConstraintLayout android:id="@+id/chat_list_adapter_item_text_header" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_marginEnd="@dimen/chat_cell_horizontal_spacing_padding" app:layout_constrainedHeight="true" app:layout_constrainedWidth="true" app:layout_constraintEnd_toEndOf="0" app:layout_constraintHorizontal_bias="0" app:layout_constraintLeft_toRightOf="@+id/uikit_chat_guideline" app:layout_constraintRight_toRightOf="0" app:layout_constraintStart_toEndOf="@+id/uikit_chat_guideline" app:layout_constraintTop_toTopOf="@+id/chat_list_adapter_item_text_avatar">
|
|
<TextView android:textColor="?attr/colorHeaderPrimary" android:id="@+id/chat_list_adapter_item_text_name" android:layout_width="wrap_content" android:lineSpacingMultiplier="1" app:layout_constrainedWidth="true" app:layout_constraintEnd_toStartOf="@+id/chat_list_adapter_item_text_role_icon" app:layout_constraintHorizontal_bias="0" app:layout_constraintHorizontal_chainStyle="2" app:layout_constraintStart_toStartOf="0" app:layout_constraintTop_toTopOf="0" style="@style/UiKit_TextView_Large_SingleLine"/>
|
|
<com.discord.widgets.roles.RoleIconView android:id="@+id/chat_list_adapter_item_text_role_icon" android:layout_width="18sp" android:layout_height="18sp" android:layout_marginStart="4dp" app:layout_constraintBottom_toBottomOf="0" app:layout_constraintEnd_toStartOf="@+id/chat_list_adapter_item_text_tag" app:layout_constraintStart_toEndOf="@+id/chat_list_adapter_item_text_name"/>
|
|
<TextView android:textSize="9.5sp" android:textColor="@color/white" android:id="@+id/chat_list_adapter_item_text_tag" android:background="@drawable/drawable_button_brand_neutral" android:paddingLeft="3dp" android:paddingTop="0.5dp" android:paddingRight="3dp" android:paddingBottom="0.5dp" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginBottom="1dp" android:text="TAG" android:singleLine="true" android:layout_marginStart="6dp" app:layout_constraintBottom_toBottomOf="@+id/chat_list_adapter_item_text_role_icon" app:layout_constraintEnd_toStartOf="@+id/chat_list_adapter_item_text_timestamp" app:layout_constraintStart_toEndOf="@+id/chat_list_adapter_item_text_role_icon" style="@style/UiKit_TextView"/>
|
|
<TextView android:textSize="@dimen/uikit_textsize_small" android:textColor="?attr/colorTextMuted" 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_marginBottom="1dp" android:maxWidth="150dp" android:singleLine="true" android:layout_marginStart="6dp" app:layout_constraintBaseline_toBaselineOf="@+id/chat_list_adapter_item_text_name" app:layout_constraintEnd_toEndOf="0" app:layout_constraintStart_toEndOf="@+id/chat_list_adapter_item_text_tag" style="@style/UiKit_TextView"/>
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
|
<com.discord.utilities.view.text.LinkifiedTextView android:id="@+id/chat_list_adapter_item_text" android:visibility="visible" android:layout_width="0dp" android:layout_marginTop="2dp" android:layout_marginBottom="2dp" android:layout_marginEnd="@dimen/chat_cell_horizontal_spacing_padding" app:layout_constraintEnd_toEndOf="0" app:layout_constraintLeft_toRightOf="@+id/uikit_chat_guideline" app:layout_constraintRight_toRightOf="0" app:layout_constraintStart_toEndOf="@+id/uikit_chat_guideline" app:layout_constraintTop_toBottomOf="@+id/chat_list_adapter_item_text_header" style="@style/UiKit_Chat_Text"/>
|
|
<com.discord.views.typing.TypingDots android:id="@+id/chat_overlay_typing_dots" android:paddingTop="8dp" android:paddingBottom="8dp" android:visibility="gone" android:layout_width="24dp" android:layout_height="match_parent" android:alpha="0.7" app:layout_constraintStart_toEndOf="@+id/uikit_chat_guideline" app:layout_constraintTop_toBottomOf="@+id/chat_list_adapter_item_text"/>
|
|
<ImageView android:id="@+id/chat_list_adapter_item_text_error" android:visibility="gone" android:layout_width="16dp" android:layout_height="16dp" android:src="@drawable/ic_alert_circle_16dp" android:importantForAccessibility="no" app:layout_constraintBottom_toBottomOf="@+id/chat_list_adapter_item_text_loading" app:layout_constraintStart_toEndOf="@+id/uikit_chat_guideline" app:layout_constraintTop_toTopOf="@+id/chat_list_adapter_item_text_loading" app:tint="?attr/colorError"/>
|
|
<TextView android:textColor="?attr/colorTextMuted" android:id="@+id/chat_list_adapter_item_text_loading" android:visibility="gone" android:layout_width="0dp" android:layout_marginTop="2dp" android:layout_marginBottom="2dp" android:layout_marginStart="28dp" android:layout_marginEnd="@dimen/chat_cell_horizontal_spacing_padding" app:layout_constraintEnd_toEndOf="0" app:layout_constraintRight_toRightOf="0" app:layout_constraintStart_toStartOf="@+id/chat_list_adapter_item_text_header" app:layout_constraintTop_toBottomOf="@+id/chat_list_adapter_item_text" style="@style/UiKit_Chat_Text"/>
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|