2012-07-19 19:23:49 -07:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
2020-12-01 16:20:53 -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"
|
2020-12-01 16:20:53 -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"
|
2020-12-01 16:20:53 -04:00
|
|
|
android:clipChildren="false"
|
|
|
|
android:clipToPadding="false"
|
2018-06-26 10:27:44 -07:00
|
|
|
android:focusable="true"
|
2020-12-01 16:20:53 -04:00
|
|
|
android:nextFocusLeft="@+id/conversation_item"
|
2018-06-26 10:27:44 -07:00
|
|
|
android:nextFocusRight="@+id/embedded_text_editor"
|
2020-12-01 16:20:53 -04:00
|
|
|
android:orientation="vertical"
|
2021-07-27 19:37:59 -03:00
|
|
|
android:paddingStart="8dp"
|
|
|
|
android:paddingEnd="@dimen/conversation_individual_right_gutter">
|
2020-12-01 16:20:53 -04: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"
|
2021-07-27 19:37:59 -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
|
|
|
|
|
|
|
<FrameLayout
|
|
|
|
android:id="@+id/contact_photo_container"
|
|
|
|
android:layout_width="@dimen/conversation_item_avatar_size"
|
|
|
|
android:layout_height="@dimen/conversation_item_avatar_size"
|
|
|
|
android:layout_alignBottom="@id/body_bubble"
|
|
|
|
android:layout_alignParentStart="true"
|
|
|
|
android:layout_marginStart="4dp">
|
|
|
|
|
|
|
|
<org.thoughtcrime.securesms.components.AvatarImageView
|
|
|
|
android:id="@+id/contact_photo"
|
|
|
|
android:layout_width="@dimen/conversation_item_avatar_size"
|
|
|
|
android:layout_height="@dimen/conversation_item_avatar_size"
|
|
|
|
android:contentDescription="@string/conversation_item_received__contact_photo_description"
|
|
|
|
android:cropToPadding="true"
|
|
|
|
android:foreground="@drawable/contact_photo_background"
|
|
|
|
app:fallbackImageSize="small" />
|
2018-06-26 10:27:44 -07:00
|
|
|
|
2020-12-01 16:20:53 -04:00
|
|
|
</FrameLayout>
|
|
|
|
|
|
|
|
<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_marginStart="8dp"
|
|
|
|
android:layout_marginEnd="@dimen/message_bubble_edge_margin"
|
|
|
|
android:layout_toEndOf="@id/contact_photo_container"
|
|
|
|
android:background="@color/white"
|
|
|
|
android:clipChildren="false"
|
2018-06-26 10:27:44 -07:00
|
|
|
android:clipToPadding="false"
|
2020-12-01 16:20:53 -04:00
|
|
|
android:orientation="vertical"
|
|
|
|
tools:backgroundTint="@color/conversation_blue">
|
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
android:id="@+id/group_sender_holder"
|
2018-06-26 10:27:44 -07:00
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
2021-07-27 19:37:59 -03:00
|
|
|
android:layout_marginTop="7dp"
|
|
|
|
android:layout_marginBottom="-3dp"
|
|
|
|
android:orientation="horizontal"
|
2021-07-26 11:05:47 -03:00
|
|
|
android:paddingStart="@dimen/message_bubble_horizontal_padding"
|
|
|
|
android:paddingEnd="@dimen/message_bubble_horizontal_padding"
|
2020-12-01 16:20:53 -04:00
|
|
|
android:visibility="gone"
|
|
|
|
tools:visibility="visible">
|
2018-06-26 10:27:44 -07:00
|
|
|
|
2020-12-01 16:20:53 -04:00
|
|
|
<org.thoughtcrime.securesms.components.emoji.EmojiTextView
|
|
|
|
android:id="@+id/group_message_sender"
|
2021-07-27 19:37:59 -03:00
|
|
|
style="@style/TextAppearance.Signal.Subtitle"
|
2018-06-26 10:27:44 -07:00
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
2021-07-26 11:05:47 -03:00
|
|
|
android:layout_marginEnd="4sp"
|
2020-12-01 16:20:53 -04:00
|
|
|
android:ellipsize="end"
|
|
|
|
android:maxLines="1"
|
2021-05-03 11:34:41 -03:00
|
|
|
android:textColor="@color/signal_text_primary"
|
2020-12-01 16:20:53 -04:00
|
|
|
android:textStyle="bold"
|
|
|
|
tools:text="+14152222222"
|
|
|
|
tools:visibility="visible" />
|
2018-04-26 17:03:54 -07:00
|
|
|
|
2020-12-01 16:20:53 -04:00
|
|
|
</LinearLayout>
|
2019-04-17 10:21:30 -04:00
|
|
|
|
2020-12-01 16:20:53 -04:00
|
|
|
<org.thoughtcrime.securesms.components.QuoteView
|
|
|
|
android:id="@+id/quote_view"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginStart="6dp"
|
2021-07-26 11:05:47 -03:00
|
|
|
android:layout_marginTop="@dimen/message_bubble_top_padding"
|
2020-12-01 16:20:53 -04:00
|
|
|
android:layout_marginEnd="6dp"
|
|
|
|
android:visibility="gone"
|
|
|
|
app:message_type="incoming"
|
|
|
|
app:quote_colorPrimary="@color/conversation_item_quote_text_color"
|
|
|
|
app:quote_colorSecondary="@color/conversation_item_quote_text_color"
|
|
|
|
tools:visibility="visible" />
|
|
|
|
|
|
|
|
<ViewStub
|
|
|
|
android:id="@+id/shared_contact_view_stub"
|
|
|
|
android:layout_width="@dimen/media_bubble_default_dimens"
|
|
|
|
android:layout_height="wrap_content"
|
2021-07-23 09:04:36 -03:00
|
|
|
android:layout_marginTop="@dimen/message_bubble_top_padding"
|
2021-07-26 11:05:47 -03:00
|
|
|
android:layout="@layout/conversation_item_received_shared_contact"
|
2020-12-01 16:20:53 -04:00
|
|
|
android:visibility="gone" />
|
2019-01-15 00:41:05 -08:00
|
|
|
|
2020-12-01 16:20:53 -04:00
|
|
|
<ViewStub
|
|
|
|
android:id="@+id/image_view_stub"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
2021-07-23 09:04:36 -03:00
|
|
|
android:layout="@layout/conversation_item_received_thumbnail" />
|
2017-03-28 12:05:30 -07:00
|
|
|
|
2020-12-01 16:20:53 -04:00
|
|
|
<ViewStub
|
|
|
|
android:id="@+id/sticker_view_stub"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
2021-07-27 19:37:59 -03:00
|
|
|
android:layout_marginTop="@dimen/message_bubble_top_padding"
|
2021-07-23 09:04:36 -03:00
|
|
|
android:layout="@layout/conversation_item_received_sticker" />
|
2018-06-26 10:27:44 -07:00
|
|
|
|
2020-12-01 16:20:53 -04:00
|
|
|
<ViewStub
|
|
|
|
android:id="@+id/link_preview_stub"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
2021-07-23 09:04:36 -03:00
|
|
|
android:layout="@layout/conversation_item_received_link_preview" />
|
2020-12-01 16:20:53 -04:00
|
|
|
|
|
|
|
<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"
|
2021-07-26 11:05:47 -03:00
|
|
|
android:layout_marginTop="@dimen/message_bubble_top_padding_audio"
|
2020-12-01 16:20:53 -04:00
|
|
|
android:layout_marginEnd="@dimen/message_bubble_horizontal_padding"
|
2021-07-26 11:05:47 -03:00
|
|
|
android:layout_marginBottom="@dimen/message_bubble_collapsed_footer_padding"
|
2020-12-01 16:20:53 -04:00
|
|
|
android:layout="@layout/conversation_item_received_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"
|
2021-07-26 11:05:47 -03:00
|
|
|
android:layout_marginTop="@dimen/message_bubble_top_padding"
|
2020-12-01 16:20:53 -04:00
|
|
|
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_received_document" />
|
|
|
|
|
|
|
|
<ViewStub
|
|
|
|
android:id="@+id/revealable_view_stub"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginStart="@dimen/message_bubble_horizontal_padding"
|
2021-07-26 11:05:47 -03:00
|
|
|
android:layout_marginTop="@dimen/message_bubble_top_padding"
|
2020-12-01 16:20:53 -04:00
|
|
|
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_received_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"
|
2018-06-26 10:27:44 -07:00
|
|
|
android:layout_width="wrap_content"
|
|
|
|
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:ellipsize="end"
|
|
|
|
android:textColor="@color/signal_text_primary"
|
|
|
|
android:textColorLink="@color/signal_text_primary"
|
|
|
|
app:emoji_maxLength="1000"
|
|
|
|
app:scaleEmojis="true"
|
|
|
|
tools:text="Mango pickle lorem ipsum" />
|
|
|
|
|
|
|
|
<org.thoughtcrime.securesms.components.ConversationItemFooter
|
|
|
|
android:id="@+id/conversation_item_footer"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginStart="@dimen/message_bubble_horizontal_padding"
|
|
|
|
android:layout_marginTop="-4dp"
|
|
|
|
android:layout_marginEnd="@dimen/message_bubble_horizontal_padding"
|
|
|
|
android:layout_marginBottom="@dimen/message_bubble_bottom_padding"
|
|
|
|
android:layout_gravity="end"
|
|
|
|
android:alpha="0.7"
|
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/conversation_item_sent_text_secondary_color"
|
|
|
|
app:footer_mode="incoming"
|
|
|
|
app:footer_reveal_dot_color="@color/conversation_item_sent_text_secondary_color"
|
|
|
|
app:footer_text_color="@color/conversation_item_sent_text_secondary_color" />
|
2015-06-29 08:49:32 -07:00
|
|
|
|
2020-12-01 16:20:53 -04:00
|
|
|
<org.thoughtcrime.securesms.components.ConversationItemFooter
|
|
|
|
android:id="@+id/conversation_item_sticker_footer"
|
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"
|
2020-12-01 16:20:53 -04:00
|
|
|
android:layout_marginStart="@dimen/message_bubble_horizontal_padding"
|
2021-07-27 19:37:59 -03:00
|
|
|
android:layout_marginTop="3dp"
|
|
|
|
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-07-27 19:37:59 -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-07-27 19:37:59 -03:00
|
|
|
app:footer_mode="incoming"
|
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"
|
|
|
|
android:layout_alignParentEnd="true"
|
|
|
|
android:gravity="center_vertical"
|
|
|
|
android:orientation="vertical" />
|
|
|
|
|
|
|
|
<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_alignStart="@id/body_bubble"
|
|
|
|
android:layout_marginTop="-8dp"
|
|
|
|
android:orientation="horizontal"
|
|
|
|
app:rcv_outgoing="false" />
|
2019-12-03 17:57:21 -04:00
|
|
|
|
2019-01-31 19:28:40 -08:00
|
|
|
</org.thoughtcrime.securesms.conversation.ConversationItem>
|