2012-07-19 19:23:49 -07:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
2019-12-03 17:57:21 -04:00
|
|
|
<org.thoughtcrime.securesms.conversation.ConversationItem xmlns:android="http://schemas.android.com/apk/res/android"
|
2018-06-26 10:27:44 -07:00
|
|
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
2019-12-03 17:57:21 -04:00
|
|
|
xmlns:tools="http://schemas.android.com/tools"
|
2018-06-26 10:27:44 -07:00
|
|
|
android:id="@+id/conversation_item"
|
2020-12-01 16:20:53 -04:00
|
|
|
android:layout_width="match_parent"
|
2018-06-26 10:27:44 -07:00
|
|
|
android:layout_height="wrap_content"
|
2019-12-03 17:57:21 -04:00
|
|
|
android:clipChildren="false"
|
|
|
|
android:clipToPadding="false"
|
2018-06-26 10:27:44 -07:00
|
|
|
android:focusable="true"
|
|
|
|
android:nextFocusLeft="@id/container"
|
|
|
|
android:nextFocusRight="@id/embedded_text_editor"
|
2022-03-16 13:44:54 -03:00
|
|
|
android:orientation="horizontal"
|
|
|
|
android:paddingEnd="@dimen/conversation_individual_right_gutter">
|
2018-06-26 10:27:44 -07:00
|
|
|
|
2021-01-22 23:05:13 -05:00
|
|
|
<FrameLayout
|
|
|
|
android:id="@+id/reply_icon_wrapper"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
2020-12-01 16:20:53 -04:00
|
|
|
android:layout_alignStart="@id/body_bubble"
|
|
|
|
android:layout_alignTop="@id/body_bubble"
|
|
|
|
android:layout_alignBottom="@id/body_bubble"
|
2021-01-22 23:05:13 -05:00
|
|
|
android:alpha="0">
|
|
|
|
|
|
|
|
<androidx.appcompat.widget.AppCompatImageView
|
|
|
|
android:id="@+id/reply_icon"
|
|
|
|
android:layout_width="@dimen/conversation_item_reply_size"
|
|
|
|
android:layout_height="@dimen/conversation_item_reply_size"
|
2022-03-16 13:44:54 -03:00
|
|
|
android:layout_gravity="center"
|
2021-01-22 23:05:13 -05:00
|
|
|
android:padding="9dp"
|
|
|
|
android:tint="@color/signal_icon_tint_primary"
|
|
|
|
app:srcCompat="@drawable/ic_reply_24" />
|
|
|
|
|
|
|
|
</FrameLayout>
|
2020-12-01 16:20:53 -04:00
|
|
|
|
|
|
|
<org.thoughtcrime.securesms.conversation.ConversationItemBodyBubble
|
|
|
|
android:id="@+id/body_bubble"
|
|
|
|
android:layout_width="wrap_content"
|
2015-10-21 15:32:29 -07:00
|
|
|
android:layout_height="wrap_content"
|
2020-12-01 16:20:53 -04:00
|
|
|
android:layout_alignWithParentIfMissing="true"
|
|
|
|
android:layout_marginStart="@dimen/message_bubble_edge_margin"
|
|
|
|
android:layout_toStartOf="@+id/indicators_parent"
|
|
|
|
android:background="@color/white"
|
2019-12-03 17:57:21 -04:00
|
|
|
android:clipChildren="false"
|
2020-12-01 16:20:53 -04:00
|
|
|
android:clipToPadding="false"
|
|
|
|
android:orientation="vertical"
|
2022-06-20 16:20:03 -04:00
|
|
|
tools:background="@drawable/message_bubble_background_received_alone"
|
|
|
|
tools:backgroundTint="@color/conversation_blue">
|
2020-12-01 16:20:53 -04:00
|
|
|
|
2022-03-16 13:44:54 -03:00
|
|
|
<LinearLayout
|
|
|
|
android:id="@+id/story_reacted_label_holder"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginTop="7dp"
|
|
|
|
android:layout_marginBottom="-3dp"
|
|
|
|
android:orientation="horizontal"
|
|
|
|
android:paddingStart="@dimen/message_bubble_horizontal_padding"
|
|
|
|
android:paddingEnd="@dimen/message_bubble_horizontal_padding"
|
|
|
|
android:visibility="gone"
|
|
|
|
tools:visibility="visible">
|
|
|
|
|
|
|
|
<org.thoughtcrime.securesms.components.emoji.EmojiTextView
|
|
|
|
android:id="@+id/story_reacted_label"
|
|
|
|
style="@style/TextAppearance.Signal.Subtitle"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginEnd="4sp"
|
|
|
|
android:ellipsize="end"
|
|
|
|
android:maxLines="1"
|
|
|
|
android:textColor="@color/signal_text_secondary"
|
|
|
|
tools:text="Reacted to your story" />
|
|
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
2020-12-01 16:20:53 -04:00
|
|
|
<org.thoughtcrime.securesms.components.QuoteView
|
|
|
|
android:id="@+id/quote_view"
|
2018-06-26 10:27:44 -07:00
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
2020-12-01 16:20:53 -04:00
|
|
|
android:layout_marginStart="6dp"
|
|
|
|
android:layout_marginTop="@dimen/message_bubble_top_padding"
|
|
|
|
android:layout_marginEnd="6dp"
|
|
|
|
android:visibility="gone"
|
|
|
|
app:message_type="outgoing"
|
2022-05-26 17:32:52 -03:00
|
|
|
app:quote_colorPrimary="@color/conversation_item_quote_text_color_sent"
|
|
|
|
app:quote_colorSecondary="@color/conversation_item_quote_text_color_sent"
|
2022-06-20 16:20:03 -04:00
|
|
|
tools:background="@color/transparent_white_10"
|
2020-12-01 16:20:53 -04:00
|
|
|
tools:visibility="visible" />
|
|
|
|
|
|
|
|
<ViewStub
|
|
|
|
android:id="@+id/shared_contact_view_stub"
|
|
|
|
android:layout_width="@dimen/media_bubble_default_dimens"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginTop="@dimen/message_bubble_top_padding"
|
|
|
|
android:layout="@layout/conversation_item_sent_shared_contact"
|
|
|
|
android:visibility="gone" />
|
|
|
|
|
|
|
|
<ViewStub
|
|
|
|
android:id="@+id/image_view_stub"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout="@layout/conversation_item_sent_thumbnail" />
|
|
|
|
|
|
|
|
<ViewStub
|
|
|
|
android:id="@+id/sticker_view_stub"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout="@layout/conversation_item_sent_sticker" />
|
|
|
|
|
|
|
|
<ViewStub
|
|
|
|
android:id="@+id/link_preview_stub"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout="@layout/conversation_item_sent_link_preview" />
|
|
|
|
|
|
|
|
<ViewStub
|
|
|
|
android:id="@+id/audio_view_stub"
|
|
|
|
android:layout_width="@dimen/message_audio_width"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginStart="@dimen/message_bubble_horizontal_padding"
|
|
|
|
android:layout_marginTop="@dimen/message_bubble_top_padding_audio"
|
|
|
|
android:layout_marginEnd="@dimen/message_bubble_horizontal_padding"
|
2021-07-27 19:37:59 -03:00
|
|
|
android:layout_marginBottom="@dimen/message_bubble_bottom_padding"
|
2020-12-01 16:20:53 -04:00
|
|
|
android:layout="@layout/conversation_item_sent_audio" />
|
|
|
|
|
|
|
|
<ViewStub
|
|
|
|
android:id="@+id/document_view_stub"
|
|
|
|
android:layout_width="210dp"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginStart="@dimen/message_bubble_horizontal_padding"
|
|
|
|
android:layout_marginTop="@dimen/message_bubble_top_padding"
|
|
|
|
android:layout_marginEnd="@dimen/message_bubble_horizontal_padding"
|
2021-07-27 19:37:59 -03:00
|
|
|
android:layout_marginBottom="@dimen/message_bubble_bottom_padding"
|
2020-12-01 16:20:53 -04:00
|
|
|
android:layout="@layout/conversation_item_sent_document" />
|
|
|
|
|
2022-05-02 14:29:42 -03:00
|
|
|
<ViewStub
|
|
|
|
android:id="@+id/gift_view_stub"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout="@layout/conversation_item_sent_gift" />
|
|
|
|
|
2020-12-01 16:20:53 -04:00
|
|
|
<ViewStub
|
|
|
|
android:id="@+id/revealable_view_stub"
|
2014-03-01 14:17:55 -08:00
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
2020-12-01 16:20:53 -04:00
|
|
|
android:layout_marginStart="@dimen/message_bubble_horizontal_padding"
|
|
|
|
android:layout_marginTop="@dimen/message_bubble_top_padding"
|
|
|
|
android:layout_marginEnd="@dimen/message_bubble_horizontal_padding"
|
2021-07-27 19:37:59 -03:00
|
|
|
android:layout_marginBottom="@dimen/message_bubble_bottom_padding"
|
2020-12-01 16:20:53 -04:00
|
|
|
android:layout="@layout/conversation_item_sent_revealable" />
|
|
|
|
|
2021-08-03 11:52:22 -03:00
|
|
|
<org.thoughtcrime.securesms.components.emoji.EmojiTextView
|
|
|
|
android:id="@+id/conversation_item_body"
|
|
|
|
style="@style/Signal.Text.Body"
|
2019-12-03 17:57:21 -04:00
|
|
|
android:layout_width="wrap_content"
|
2020-01-31 15:10:59 -05:00
|
|
|
android:layout_height="wrap_content"
|
2021-08-03 11:52:22 -03:00
|
|
|
android:layout_marginStart="@dimen/message_bubble_horizontal_padding"
|
|
|
|
android:layout_marginTop="@dimen/message_bubble_top_padding"
|
|
|
|
android:layout_marginEnd="@dimen/message_bubble_horizontal_padding"
|
|
|
|
android:layout_marginBottom="@dimen/message_bubble_bottom_padding"
|
|
|
|
android:textColor="@color/conversation_item_sent_text_primary_color"
|
|
|
|
android:textColorLink="@color/conversation_item_sent_text_primary_color"
|
|
|
|
app:emoji_maxLength="1000"
|
2021-08-12 14:25:52 -03:00
|
|
|
app:measureLastLine="true"
|
2022-03-16 13:44:54 -03:00
|
|
|
app:scaleEmojis="true"
|
2021-08-03 11:52:22 -03:00
|
|
|
tools:text="Mango pickle lorem ipsum" />
|
|
|
|
|
|
|
|
<org.thoughtcrime.securesms.components.ConversationItemFooter
|
|
|
|
android:id="@+id/conversation_item_footer"
|
2021-08-12 14:25:52 -03:00
|
|
|
android:layout_width="wrap_content"
|
2021-08-03 11:52:22 -03:00
|
|
|
android:layout_height="wrap_content"
|
2021-08-12 14:25:52 -03:00
|
|
|
android:layout_gravity="end"
|
2021-08-03 11:52:22 -03:00
|
|
|
android:layout_marginStart="@dimen/message_bubble_horizontal_padding"
|
|
|
|
android:layout_marginTop="-5dp"
|
|
|
|
android:layout_marginEnd="@dimen/message_bubble_horizontal_padding"
|
|
|
|
android:layout_marginBottom="@dimen/message_bubble_bottom_padding"
|
2021-07-26 11:05:47 -03:00
|
|
|
android:clipChildren="false"
|
|
|
|
android:clipToPadding="false"
|
2021-08-03 11:52:22 -03:00
|
|
|
app:footer_icon_color="@color/signal_icon_tint_secondary"
|
|
|
|
app:footer_mode="outgoing"
|
|
|
|
app:footer_reveal_dot_color="@color/signal_icon_tint_secondary"
|
|
|
|
app:footer_text_color="@color/signal_text_secondary" />
|
2014-03-01 14:17:55 -08:00
|
|
|
|
2020-12-01 16:20:53 -04:00
|
|
|
<org.thoughtcrime.securesms.components.ConversationItemFooter
|
|
|
|
android:id="@+id/conversation_item_sticker_footer"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_gravity="end"
|
2021-08-16 18:56:06 -03:00
|
|
|
android:layout_marginTop="2dp"
|
2021-08-12 14:25:52 -03:00
|
|
|
android:clipChildren="false"
|
|
|
|
android:clipToPadding="false"
|
2021-01-19 21:54:10 -05:00
|
|
|
android:paddingStart="@dimen/message_bubble_horizontal_padding"
|
|
|
|
android:paddingTop="3dp"
|
2021-08-12 14:25:52 -03:00
|
|
|
android:paddingEnd="@dimen/message_bubble_horizontal_padding"
|
2021-01-19 21:54:10 -05:00
|
|
|
android:paddingBottom="3dp"
|
2020-12-01 16:20:53 -04:00
|
|
|
android:visibility="gone"
|
|
|
|
app:footer_icon_color="@color/signal_icon_tint_secondary"
|
2021-08-12 14:25:52 -03:00
|
|
|
app:footer_mode="outgoing"
|
2021-06-08 16:10:08 -03:00
|
|
|
app:footer_reveal_dot_color="@color/signal_icon_tint_secondary"
|
2020-12-01 16:20:53 -04:00
|
|
|
app:footer_text_color="@color/signal_text_secondary" />
|
|
|
|
|
|
|
|
</org.thoughtcrime.securesms.conversation.ConversationItemBodyBubble>
|
|
|
|
|
|
|
|
<org.thoughtcrime.securesms.components.AlertView
|
|
|
|
android:id="@+id/indicators_parent"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
2022-06-20 16:20:03 -04:00
|
|
|
android:layout_alignBottom="@id/body_bubble"
|
2020-12-01 16:20:53 -04:00
|
|
|
android:layout_alignParentEnd="true"
|
|
|
|
android:layout_marginStart="8dp"
|
2022-03-16 13:44:54 -03:00
|
|
|
android:orientation="vertical"
|
|
|
|
android:padding="8dp" />
|
2020-12-01 16:20:53 -04:00
|
|
|
|
2022-06-20 16:20:03 -04:00
|
|
|
<FrameLayout
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_alignStart="@id/body_bubble"
|
|
|
|
android:layout_alignTop="@id/body_bubble"
|
|
|
|
android:layout_alignBottom="@id/body_bubble"
|
|
|
|
android:layout_marginStart="-42dp" >
|
|
|
|
|
|
|
|
<androidx.appcompat.widget.AppCompatImageView
|
|
|
|
android:id="@+id/quoted_indicator"
|
|
|
|
android:layout_width="32dp"
|
|
|
|
android:layout_height="32dp"
|
|
|
|
android:layout_gravity="center_vertical"
|
|
|
|
android:background="@drawable/circle_tintable"
|
|
|
|
android:backgroundTint="@color/signal_colorSurfaceVariant"
|
|
|
|
android:padding="6dp"
|
|
|
|
android:tint="@color/signal_colorOnSurfaceVariant"
|
|
|
|
app:srcCompat="@drawable/ic_replies_outline_20" />
|
|
|
|
|
|
|
|
</FrameLayout>
|
|
|
|
|
2020-12-01 16:20:53 -04:00
|
|
|
<org.thoughtcrime.securesms.reactions.ReactionsConversationView
|
|
|
|
android:id="@+id/reactions_view"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_below="@id/body_bubble"
|
|
|
|
android:layout_alignEnd="@id/body_bubble"
|
2021-08-17 17:22:23 -03:00
|
|
|
android:layout_marginTop="-4dp"
|
2020-12-01 16:20:53 -04:00
|
|
|
android:orientation="horizontal"
|
|
|
|
app:rcv_outgoing="true" />
|
2018-06-26 10:27:44 -07:00
|
|
|
|
2019-01-31 19:28:40 -08:00
|
|
|
</org.thoughtcrime.securesms.conversation.ConversationItem>
|