2012-07-20 02:23:49 +00:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
2019-02-01 03:28:40 +00:00
|
|
|
<org.thoughtcrime.securesms.conversation.ConversationItem
|
2018-06-26 17:27:44 +00:00
|
|
|
xmlns:android="http://schemas.android.com/apk/res/android"
|
|
|
|
xmlns:tools="http://schemas.android.com/tools"
|
|
|
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
|
|
|
android:id="@+id/conversation_item"
|
|
|
|
android:layout_width="fill_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:orientation="horizontal"
|
|
|
|
android:focusable="true"
|
|
|
|
android:nextFocusLeft="@id/container"
|
|
|
|
android:nextFocusRight="@id/embedded_text_editor"
|
|
|
|
android:background="@drawable/conversation_item_background"
|
|
|
|
android:clipToPadding="false"
|
|
|
|
android:clipChildren="false">
|
|
|
|
|
|
|
|
<RelativeLayout
|
|
|
|
android:id="@+id/container"
|
|
|
|
android:layout_width="match_parent"
|
2015-10-21 22:32:29 +00:00
|
|
|
android:layout_height="wrap_content"
|
2020-01-13 04:29:06 +00:00
|
|
|
android:layout_marginEnd="@dimen/large_spacing"
|
2018-06-26 17:27:44 +00:00
|
|
|
android:clipToPadding="false"
|
|
|
|
android:clipChildren="false">
|
2012-07-20 02:23:49 +00:00
|
|
|
|
2018-07-18 20:53:50 +00:00
|
|
|
<LinearLayout
|
2019-06-21 02:21:48 +00:00
|
|
|
android:layout_width="match_parent"
|
2018-06-26 17:27:44 +00:00
|
|
|
android:layout_height="wrap_content"
|
2018-07-18 20:53:50 +00:00
|
|
|
android:orientation="vertical"
|
2018-06-26 17:27:44 +00:00
|
|
|
android:layout_toStartOf="@+id/indicators_parent"
|
|
|
|
android:layout_alignWithParentIfMissing="true"
|
|
|
|
android:clipToPadding="false"
|
2019-06-21 02:21:48 +00:00
|
|
|
android:clipChildren="false">
|
2018-07-18 20:53:50 +00:00
|
|
|
|
2019-06-21 02:21:48 +00:00
|
|
|
<LinearLayout
|
|
|
|
android:id="@+id/body_bubble"
|
2018-06-26 17:27:44 +00:00
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
2019-06-21 02:21:48 +00:00
|
|
|
android:orientation="vertical"
|
2020-01-15 05:13:28 +00:00
|
|
|
android:layout_marginStart="@dimen/massive_spacing"
|
2020-01-15 01:20:10 +00:00
|
|
|
android:paddingTop="@dimen/medium_spacing"
|
2020-01-13 05:47:50 +00:00
|
|
|
android:paddingBottom="@dimen/medium_spacing"
|
2019-06-21 02:21:48 +00:00
|
|
|
android:layout_gravity="end"
|
2018-07-12 23:03:32 +00:00
|
|
|
android:clipToPadding="false"
|
2019-06-21 02:21:48 +00:00
|
|
|
android:clipChildren="false"
|
|
|
|
android:background="@color/white"
|
|
|
|
tools:backgroundTint="@color/core_grey_05">
|
|
|
|
|
|
|
|
<org.thoughtcrime.securesms.components.QuoteView
|
|
|
|
android:id="@+id/quote_view"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
2020-01-15 01:20:10 +00:00
|
|
|
android:layout_marginStart="@dimen/large_spacing"
|
|
|
|
android:layout_marginBottom="@dimen/medium_spacing"
|
|
|
|
android:layout_marginEnd="@dimen/large_spacing"
|
2019-06-21 02:21:48 +00:00
|
|
|
android:visibility="gone"
|
|
|
|
app:message_type="outgoing"
|
2020-01-15 01:20:10 +00:00
|
|
|
app:quote_colorPrimary="@color/text"
|
|
|
|
app:quote_colorSecondary="@color/text"
|
2019-06-21 02:21:48 +00:00
|
|
|
tools:visibility="visible"/>
|
|
|
|
|
|
|
|
<ViewStub
|
|
|
|
android:id="@+id/shared_contact_view_stub"
|
|
|
|
android:layout="@layout/conversation_item_sent_shared_contact"
|
|
|
|
android:layout_width="@dimen/media_bubble_default_dimens"
|
|
|
|
android:layout_height="wrap_content"
|
2020-01-15 01:20:10 +00:00
|
|
|
android:layout_marginBottom="@dimen/medium_spacing"
|
2019-06-21 02:21:48 +00:00
|
|
|
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" />
|
|
|
|
|
2019-08-07 06:48:54 +00:00
|
|
|
<ViewStub
|
|
|
|
android:id="@+id/sticker_view_stub"
|
|
|
|
android:layout_width="@dimen/media_bubble_sticker_dimens"
|
|
|
|
android:layout_height="@dimen/media_bubble_sticker_dimens"
|
|
|
|
android:layout="@layout/conversation_item_sent_sticker" />
|
|
|
|
|
2019-06-21 02:21:48 +00:00
|
|
|
<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="@layout/conversation_item_sent_audio"
|
|
|
|
android:layout_width="210dp"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginStart="@dimen/message_bubble_horizontal_padding"
|
2020-01-15 01:20:10 +00:00
|
|
|
android:layout_marginBottom="6dp"
|
2019-06-21 02:21:48 +00:00
|
|
|
android:layout_marginEnd="@dimen/message_bubble_horizontal_padding" />
|
|
|
|
|
|
|
|
<ViewStub
|
|
|
|
android:id="@+id/document_view_stub"
|
|
|
|
android:layout="@layout/conversation_item_sent_document"
|
|
|
|
android:layout_width="210dp"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginStart="@dimen/message_bubble_horizontal_padding"
|
2020-01-15 05:13:28 +00:00
|
|
|
android:layout_marginBottom="4dp"
|
2019-06-21 02:21:48 +00:00
|
|
|
android:layout_marginEnd="@dimen/message_bubble_horizontal_padding" />
|
|
|
|
|
|
|
|
<org.thoughtcrime.securesms.components.emoji.EmojiTextView
|
|
|
|
android:id="@+id/conversation_item_body"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginStart="@dimen/message_bubble_horizontal_padding"
|
|
|
|
android:layout_marginEnd="@dimen/message_bubble_horizontal_padding"
|
|
|
|
style="@style/Signal.Text.Body"
|
|
|
|
android:textColor="?conversation_item_sent_text_primary_color"
|
|
|
|
android:textColorLink="?conversation_item_sent_text_primary_color"
|
|
|
|
android:ellipsize="end"
|
|
|
|
app:scaleEmojis="true"
|
|
|
|
app:emoji_maxLength="1000"
|
|
|
|
tools:text="Mango pickle lorem ipsum"/>
|
|
|
|
|
|
|
|
<View
|
|
|
|
android:id="@+id/group_sender_holder"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:visibility="gone"/>
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/group_message_sender"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:visibility="gone" />
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/group_message_sender_profile"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:visibility="gone" />
|
|
|
|
|
|
|
|
<org.thoughtcrime.securesms.components.ConversationItemFooter
|
|
|
|
android:id="@+id/conversation_item_footer"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
2020-01-13 05:47:50 +00:00
|
|
|
android:layout_marginTop="4dp"
|
2019-06-21 02:21:48 +00:00
|
|
|
android:layout_marginStart="@dimen/message_bubble_horizontal_padding"
|
|
|
|
android:layout_marginEnd="@dimen/message_bubble_horizontal_padding"
|
|
|
|
android:clipChildren="false"
|
|
|
|
android:clipToPadding="false"
|
|
|
|
app:footer_text_color="?attr/conversation_item_sent_text_secondary_color"
|
|
|
|
app:footer_icon_color="?attr/conversation_item_sent_icon_color"/>
|
|
|
|
|
2019-08-07 06:48:54 +00: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_marginTop="6dp"
|
|
|
|
android:layout_marginStart="@dimen/message_bubble_horizontal_padding"
|
|
|
|
android:layout_marginEnd="@dimen/message_bubble_horizontal_padding"
|
|
|
|
android:clipChildren="false"
|
|
|
|
android:clipToPadding="false"
|
|
|
|
android:visibility="gone"
|
|
|
|
app:footer_text_color="?conversation_sticker_footer_text_color"
|
|
|
|
app:footer_icon_color="?conversation_sticker_footer_icon_color"/>
|
|
|
|
|
2019-06-21 02:21:48 +00:00
|
|
|
</LinearLayout>
|
|
|
|
|
2020-01-10 00:35:16 +00:00
|
|
|
<org.thoughtcrime.securesms.loki.redesign.views.FriendRequestView
|
2019-06-24 23:28:37 +00:00
|
|
|
android:id="@+id/friend_request_view"
|
2019-06-21 02:21:48 +00:00
|
|
|
android:layout_width="match_parent"
|
2019-07-24 05:05:39 +00:00
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:visibility="gone" />
|
2018-07-18 20:53:50 +00:00
|
|
|
|
|
|
|
</LinearLayout>
|
2014-01-08 22:29:05 +00:00
|
|
|
|
2018-06-26 17:27:44 +00:00
|
|
|
<org.thoughtcrime.securesms.components.AlertView
|
|
|
|
android:id="@+id/indicators_parent"
|
2014-03-01 22:17:55 +00:00
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
2018-06-26 17:27:44 +00:00
|
|
|
android:orientation="vertical"
|
|
|
|
android:paddingBottom="4dp"
|
|
|
|
android:layout_marginStart="8dp"
|
|
|
|
android:layout_alignParentEnd="true"
|
|
|
|
android:layout_alignParentBottom="true" />
|
2014-03-01 22:17:55 +00:00
|
|
|
|
2012-07-20 02:23:49 +00:00
|
|
|
</RelativeLayout>
|
2018-06-26 17:27:44 +00:00
|
|
|
|
2019-02-01 03:28:40 +00:00
|
|
|
</org.thoughtcrime.securesms.conversation.ConversationItem>
|