15 lines
4.5 KiB
XML
15 lines
4.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" android:paddingTop="10dp" android:paddingBottom="4dp" android:layout_width="match_parent" android:layout_height="wrap_content" android:paddingStart="0dp" android:paddingEnd="@dimen/chat_cell_horizontal_spacing_padding">
|
|
<androidx.constraintlayout.widget.Guideline android:id="@+id/uikit_chat_guideline" style="@style/UiKit_Chat_Guideline"/>
|
|
<ImageView android:id="@+id/chat_list_adapter_item_text_avatar" android:layout_width="@dimen/avatar_size_chat" android:layout_height="@dimen/avatar_size_medium" android:src="@drawable/ic_slash_command_24dp" android:importantForAccessibility="no" android:layout_marginStart="8dp" app:layout_constrainedWidth="true" app:layout_constraintEnd_toStartOf="@+id/uikit_chat_guideline" app:layout_constraintHorizontal_bias="0" app:layout_constraintStart_toStartOf="0" app:layout_constraintTop_toTopOf="0" app:tint="?attr/colorTextMuted" 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="wrap_content" app:layout_constrainedWidth="true" app:layout_constraintEnd_toEndOf="0" app:layout_constraintHorizontal_bias="0" app:layout_constraintStart_toEndOf="@+id/uikit_chat_guideline" app:layout_constraintTop_toTopOf="0">
|
|
<TextView android:textColor="?attr/colorHeaderPrimary" android:id="@+id/chat_list_adapter_item_text_name" android:paddingBottom="2dp" android:layout_marginTop="1dp" android:lineSpacingMultiplier="1" 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"/>
|
|
<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: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_name" app:layout_constraintTop_toTopOf="@+id/chat_list_adapter_item_text_name" style="@style/UiKit_TextView"/>
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
|
<androidx.cardview.widget.CardView android:gravity="center_vertical" android:id="@+id/chat_list_adapter_item_text_decorator" android:visibility="visible" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginEnd="@dimen/chat_cell_horizontal_spacing_padding" app:cardBackgroundColor="?attr/colorBackgroundSecondary" app:cardCornerRadius="8dp" app:cardElevation="0dp" app:layout_constrainedWidth="true" app:layout_constraintEnd_toEndOf="0" app:layout_constraintHorizontal_bias="0" app:layout_constraintStart_toStartOf="@+id/chat_list_adapter_item_text_header" app:layout_constraintTop_toBottomOf="@+id/chat_list_adapter_item_text_header">
|
|
<TextView android:ellipsize="end" android:id="@+id/chat_list_adapter_item_text_command" android:background="?attr/selectableItemBackground" android:paddingLeft="8dp" android:paddingTop="8dp" android:paddingRight="8dp" android:paddingBottom="8dp" android:layout_width="wrap_content" android:layout_height="wrap_content" android:maxLines="1" android:paddingHorizontal="8dp" android:paddingVertical="8dp" style="@style/UiKit_Chat_Text"/>
|
|
</androidx.cardview.widget.CardView>
|
|
<FrameLayout android:id="@+id/chat_list_adapter_item_text_decorator_reply_link_icon" android:visibility="visible" android:clipChildren="false" android:layout_width="34dp" android:layout_height="20dp" app:layout_constraintEnd_toStartOf="@+id/chat_list_adapter_item_text_decorator" app:layout_constraintTop_toBottomOf="@+id/chat_list_adapter_item_text_avatar">
|
|
<com.discord.widgets.chat.list.ViewReplySpline android:layout_width="match_parent" android:layout_height="match_parent" android:layout_marginTop="3dp" android:layout_marginStart="2dp" app:end_padding="2dp" app:orientation="vertical" app:tint="?attr/colorBackgroundAccent"/>
|
|
</FrameLayout>
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|