2012-07-19 19:23:49 -07:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
2015-10-21 15:32:29 -07:00
|
|
|
<org.thoughtcrime.securesms.ConversationItem
|
2018-06-26 10:27:44 -07: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="vertical"
|
|
|
|
android:background="@drawable/conversation_item_background"
|
|
|
|
android:focusable="true"
|
|
|
|
android:nextFocusLeft="@+id/container"
|
|
|
|
android:nextFocusRight="@+id/embedded_text_editor"
|
|
|
|
android:clipToPadding="false"
|
|
|
|
android:clipChildren="false">
|
|
|
|
|
|
|
|
<RelativeLayout
|
|
|
|
android:id="@+id/container"
|
|
|
|
android:layout_width="match_parent"
|
2015-10-21 15:32:29 -07:00
|
|
|
android:layout_height="wrap_content"
|
2018-06-26 10:27:44 -07:00
|
|
|
android:layout_marginRight="@dimen/conversation_individual_right_gutter"
|
|
|
|
android:layout_marginEnd="@dimen/conversation_individual_right_gutter"
|
2018-07-18 13:53:50 -07:00
|
|
|
android:paddingLeft="8dp"
|
|
|
|
android:paddingStart="8dp"
|
2018-06-26 10:27:44 -07:00
|
|
|
android:clipToPadding="false"
|
|
|
|
android:clipChildren="false">
|
2014-02-15 04:21:56 -08:00
|
|
|
|
2018-07-25 01:16:48 -04:00
|
|
|
<FrameLayout
|
|
|
|
android:id="@+id/contact_photo_container"
|
2018-06-26 10:27:44 -07:00
|
|
|
android:layout_width="36dp"
|
2018-07-25 01:16:48 -04:00
|
|
|
android:layout_height="wrap_content"
|
2014-02-15 04:21:56 -08:00
|
|
|
android:layout_alignParentLeft="true"
|
2018-07-18 13:53:50 -07:00
|
|
|
android:layout_alignParentStart="true"
|
2018-07-25 01:16:48 -04:00
|
|
|
android:layout_alignParentBottom="true">
|
|
|
|
|
|
|
|
<org.thoughtcrime.securesms.components.AvatarImageView
|
|
|
|
android:id="@+id/contact_photo"
|
|
|
|
android:foreground="@drawable/contact_photo_background"
|
2018-10-29 15:14:31 -07:00
|
|
|
android:layout_width="@dimen/conversation_item_avatar_size"
|
|
|
|
android:layout_height="@dimen/conversation_item_avatar_size"
|
2018-07-25 01:16:48 -04:00
|
|
|
android:cropToPadding="true"
|
|
|
|
android:contentDescription="@string/conversation_item_received__contact_photo_description" />
|
|
|
|
|
|
|
|
</FrameLayout>
|
2012-07-19 19:23:49 -07:00
|
|
|
|
2018-07-18 13:53:50 -07:00
|
|
|
<LinearLayout
|
2018-06-26 10:27:44 -07:00
|
|
|
android:id="@+id/body_bubble"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginRight="@dimen/message_bubble_edge_margin"
|
|
|
|
android:layout_marginEnd="@dimen/message_bubble_edge_margin"
|
2018-07-18 13:53:50 -07:00
|
|
|
android:layout_marginLeft="8dp"
|
|
|
|
android:layout_marginStart="8dp"
|
2018-07-25 01:16:48 -04:00
|
|
|
android:layout_toRightOf="@id/contact_photo_container"
|
|
|
|
android:layout_toEndOf="@id/contact_photo_container"
|
2018-07-18 13:53:50 -07:00
|
|
|
android:orientation="vertical"
|
2018-06-26 10:27:44 -07:00
|
|
|
android:clipToPadding="false"
|
|
|
|
android:clipChildren="false"
|
2018-07-18 13:53:50 -07:00
|
|
|
android:background="@color/white"
|
2018-06-26 10:27:44 -07:00
|
|
|
tools:backgroundTint="@color/conversation_blue">
|
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
android:id="@+id/group_sender_holder"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
2018-07-12 16:03:32 -07:00
|
|
|
android:layout_marginTop="@dimen/message_bubble_top_padding"
|
2018-06-26 10:27:44 -07:00
|
|
|
android:layout_marginBottom="2dp"
|
|
|
|
android:layout_marginLeft="@dimen/message_bubble_horizontal_padding"
|
|
|
|
android:layout_marginRight="@dimen/message_bubble_horizontal_padding"
|
|
|
|
android:orientation="horizontal"
|
|
|
|
android:visibility="gone"
|
|
|
|
tools:visibility="visible">
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/group_message_sender"
|
2018-07-27 16:31:39 -04:00
|
|
|
android:layout_width="wrap_content"
|
2018-06-26 10:27:44 -07:00
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginRight="4sp"
|
|
|
|
android:layout_marginEnd="4sp"
|
|
|
|
style="@style/Signal.Text.Preview"
|
|
|
|
android:fontFamily="sans-serif-medium"
|
|
|
|
android:textColor="?conversation_item_received_text_primary_color"
|
|
|
|
android:maxLines="1"
|
|
|
|
android:ellipsize="end"
|
|
|
|
tools:visibility="visible"
|
|
|
|
tools:text="+14152222222"/>
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/group_message_sender_profile"
|
2018-07-27 16:31:39 -04:00
|
|
|
android:layout_width="wrap_content"
|
2018-06-26 10:27:44 -07:00
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:paddingRight="4sp"
|
|
|
|
android:paddingLeft="4sp"
|
|
|
|
style="@style/Signal.Text.Preview"
|
|
|
|
android:fontFamily="sans-serif-regular"
|
|
|
|
android:textColor="?conversation_item_received_text_primary_color"
|
|
|
|
android:textStyle="italic"
|
|
|
|
android:maxLines="1"
|
|
|
|
android:ellipsize="end"
|
|
|
|
tools:text="~Clement Duval"/>
|
2017-08-15 19:23:42 -07:00
|
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
2018-02-07 14:01:37 -08:00
|
|
|
<org.thoughtcrime.securesms.components.QuoteView
|
2018-06-26 10:27:44 -07:00
|
|
|
android:id="@+id/quote_view"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
2018-07-12 16:03:32 -07:00
|
|
|
android:layout_marginTop="@dimen/message_bubble_top_padding"
|
|
|
|
android:layout_marginLeft="6dp"
|
|
|
|
android:layout_marginRight="6dp"
|
2018-06-26 10:27:44 -07:00
|
|
|
android:visibility="gone"
|
|
|
|
app:message_type="incoming"
|
2018-07-12 16:03:32 -07:00
|
|
|
app:quote_colorPrimary="?attr/conversation_item_quote_text_color"
|
|
|
|
app:quote_colorSecondary="?attr/conversation_item_quote_text_color"
|
2018-06-26 10:27:44 -07:00
|
|
|
tools:visibility="visible"/>
|
2018-02-07 14:01:37 -08:00
|
|
|
|
2018-04-26 17:03:54 -07:00
|
|
|
<ViewStub
|
2018-06-26 10:27:44 -07:00
|
|
|
android:id="@+id/shared_contact_view_stub"
|
|
|
|
android:layout="@layout/conversation_item_received_shared_contact"
|
|
|
|
android:layout_width="@dimen/media_bubble_default_dimens"
|
|
|
|
android:layout_height="wrap_content"
|
2018-07-12 16:03:32 -07:00
|
|
|
android:layout_marginTop="@dimen/message_bubble_top_padding"
|
2018-06-26 10:27:44 -07:00
|
|
|
android:visibility="gone"/>
|
2018-04-26 17:03:54 -07:00
|
|
|
|
2017-01-20 09:30:08 -08:00
|
|
|
<ViewStub
|
2018-06-26 10:27:44 -07:00
|
|
|
android:id="@+id/image_view_stub"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout="@layout/conversation_item_received_thumbnail" />
|
2015-10-21 15:32:29 -07:00
|
|
|
|
2017-01-20 09:11:40 -08:00
|
|
|
<ViewStub
|
2018-06-26 10:27:44 -07:00
|
|
|
android:id="@+id/audio_view_stub"
|
|
|
|
android:layout="@layout/conversation_item_received_audio"
|
|
|
|
android:layout_width="210dp"
|
|
|
|
android:layout_height="wrap_content"
|
2018-07-12 16:03:32 -07:00
|
|
|
android:layout_marginTop="@dimen/message_bubble_top_padding"
|
|
|
|
android:layout_marginBottom="@dimen/message_bubble_collapsed_footer_padding"
|
2018-06-26 10:27:44 -07:00
|
|
|
android:layout_marginLeft="@dimen/message_bubble_horizontal_padding"
|
|
|
|
android:layout_marginRight="@dimen/message_bubble_horizontal_padding" />
|
2015-06-29 08:49:32 -07:00
|
|
|
|
2018-06-26 10:27:44 -07:00
|
|
|
<ViewStub
|
|
|
|
android:id="@+id/document_view_stub"
|
|
|
|
android:layout="@layout/conversation_item_received_document"
|
|
|
|
android:layout_width="210dp"
|
|
|
|
android:layout_height="wrap_content"
|
2018-07-12 16:03:32 -07:00
|
|
|
android:layout_marginTop="@dimen/message_bubble_top_padding"
|
|
|
|
android:layout_marginBottom="@dimen/message_bubble_collapsed_footer_padding"
|
2018-06-26 10:27:44 -07:00
|
|
|
android:layout_marginLeft="@dimen/message_bubble_horizontal_padding"
|
|
|
|
android:layout_marginRight="@dimen/message_bubble_horizontal_padding" />
|
2017-03-28 12:05:30 -07:00
|
|
|
|
2015-06-29 08:49:32 -07:00
|
|
|
<org.thoughtcrime.securesms.components.emoji.EmojiTextView
|
2018-06-26 10:27:44 -07:00
|
|
|
android:id="@+id/conversation_item_body"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
2018-07-12 16:03:32 -07:00
|
|
|
android:layout_marginTop="@dimen/message_bubble_top_padding"
|
|
|
|
android:layout_marginBottom="@dimen/message_bubble_collapsed_footer_padding"
|
2018-06-26 10:27:44 -07:00
|
|
|
android:layout_marginLeft="@dimen/message_bubble_horizontal_padding"
|
|
|
|
android:layout_marginRight="@dimen/message_bubble_horizontal_padding"
|
|
|
|
style="@style/Signal.Text.Body"
|
|
|
|
android:textColor="?conversation_item_received_text_primary_color"
|
|
|
|
android:textColorLink="?conversation_item_received_text_primary_color"
|
|
|
|
app:scaleEmojis="true"
|
|
|
|
tools:text="Mango pickle lorem ipsum"/>
|
|
|
|
|
|
|
|
<org.thoughtcrime.securesms.components.ConversationItemFooter
|
|
|
|
android:id="@+id/conversation_item_footer"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
2018-07-12 16:03:32 -07:00
|
|
|
android:layout_marginTop="-4dp"
|
2018-06-26 10:27:44 -07:00
|
|
|
android:layout_marginLeft="@dimen/message_bubble_horizontal_padding"
|
|
|
|
android:layout_marginRight="@dimen/message_bubble_horizontal_padding"
|
|
|
|
android:layout_marginBottom="@dimen/message_bubble_bottom_padding"
|
2018-07-12 16:03:32 -07:00
|
|
|
android:clipChildren="false"
|
|
|
|
android:clipToPadding="false"
|
2018-07-20 15:40:13 -07:00
|
|
|
android:alpha="0.7"
|
|
|
|
app:footer_text_color="?conversation_item_received_text_secondary_color"
|
|
|
|
app:footer_icon_color="?conversation_item_received_text_secondary_color"/>
|
2018-06-26 10:27:44 -07:00
|
|
|
|
2018-07-18 13:53:50 -07:00
|
|
|
</LinearLayout>
|
2012-07-19 19:23:49 -07:00
|
|
|
|
2015-11-24 16:06:41 +01:00
|
|
|
<org.thoughtcrime.securesms.components.AlertView
|
2018-06-26 10:27:44 -07:00
|
|
|
android:id="@+id/indicators_parent"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_alignParentRight="true"
|
|
|
|
android:orientation="vertical"
|
|
|
|
android:gravity="center_vertical"/>
|
2015-06-29 08:49:32 -07:00
|
|
|
|
2012-07-19 19:23:49 -07:00
|
|
|
</RelativeLayout>
|
|
|
|
</org.thoughtcrime.securesms.ConversationItem>
|