2012-07-20 02:23:49 +00:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
|
|
|
<org.thoughtcrime.securesms.ConversationItem
|
2015-10-21 22:32:29 +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"
|
2015-07-09 15:03:45 +00:00
|
|
|
android:focusable="true"
|
|
|
|
android:nextFocusLeft="@id/container"
|
|
|
|
android:nextFocusRight="@id/embedded_text_editor"
|
2015-10-21 22:32:29 +00:00
|
|
|
android:background="@drawable/conversation_item_background">
|
2012-07-20 02:23:49 +00:00
|
|
|
|
2014-01-08 22:29:05 +00:00
|
|
|
<RelativeLayout android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginTop="6dp"
|
|
|
|
android:layout_marginLeft="6dp"
|
|
|
|
android:layout_marginBottom="6dp"
|
|
|
|
android:layout_marginRight="0dp">
|
2012-07-20 02:23:49 +00:00
|
|
|
|
2015-11-24 15:06:41 +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"
|
2015-11-24 15:06:41 +00:00
|
|
|
android:orientation="vertical"
|
|
|
|
android:gravity="left|center_vertical"
|
|
|
|
android:layout_marginLeft="6dp"
|
|
|
|
android:layout_alignParentLeft="true"
|
|
|
|
android:layout_centerVertical="true"/>
|
2012-07-20 02:23:49 +00:00
|
|
|
|
2015-06-29 15:49:32 +00:00
|
|
|
<LinearLayout android:id="@+id/body_bubble"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_alignParentRight="true"
|
|
|
|
android:layout_marginLeft="50dp"
|
2015-06-29 21:38:52 +00:00
|
|
|
android:layout_marginRight="5dp"
|
2015-06-29 15:49:32 +00:00
|
|
|
android:background="@drawable/sent_bubble"
|
|
|
|
android:orientation="vertical">
|
|
|
|
|
2017-01-20 17:30:08 +00:00
|
|
|
<ViewStub
|
|
|
|
android:id="@+id/image_view_stub"
|
2015-06-29 21:38:52 +00:00
|
|
|
android:layout_width="@dimen/media_bubble_height"
|
2015-06-29 15:49:32 +00:00
|
|
|
android:layout_height="@dimen/media_bubble_height"
|
2017-01-20 17:30:08 +00:00
|
|
|
android:layout="@layout/conversation_item_sent_thumbnail"/>
|
2015-06-29 15:49:32 +00:00
|
|
|
|
2017-01-20 17:11:40 +00:00
|
|
|
<ViewStub
|
|
|
|
android:id="@+id/audio_view_stub"
|
|
|
|
android:layout="@layout/conversation_item_sent_audio"
|
2015-10-21 22:32:29 +00:00
|
|
|
android:layout_width="210dp"
|
2017-01-20 17:11:40 +00:00
|
|
|
android:layout_height="wrap_content"/>
|
2015-10-21 22:32:29 +00:00
|
|
|
|
2017-03-28 19:05:30 +00:00
|
|
|
<ViewStub android:id="@+id/document_view_stub"
|
|
|
|
android:layout="@layout/conversation_item_sent_document"
|
|
|
|
android:layout_width="210dp"
|
|
|
|
android:layout_height="wrap_content"/>
|
|
|
|
|
2015-06-29 15:49:32 +00:00
|
|
|
<org.thoughtcrime.securesms.components.emoji.EmojiTextView
|
|
|
|
android:id="@+id/conversation_item_body"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
2015-06-29 21:38:52 +00:00
|
|
|
android:paddingLeft="4dp"
|
|
|
|
android:paddingRight="4dp"
|
2015-06-29 15:49:32 +00:00
|
|
|
android:textAppearance="?android:attr/textAppearanceSmall"
|
|
|
|
android:textColor="?conversation_item_sent_text_primary_color"
|
|
|
|
android:textColorLink="?conversation_item_sent_text_primary_color"
|
2015-07-10 21:58:05 +00:00
|
|
|
android:textSize="@dimen/conversation_item_body_text_size"
|
2017-04-26 00:09:35 +00:00
|
|
|
app:scaleEmojis="true"
|
|
|
|
tools:text="Mango pickle lorem ipsum"/>
|
2015-06-29 15:49:32 +00:00
|
|
|
|
|
|
|
<LinearLayout android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:orientation="horizontal"
|
2015-06-29 21:38:52 +00:00
|
|
|
android:paddingLeft="4dp"
|
|
|
|
android:paddingRight="4dp"
|
2015-06-29 15:49:32 +00:00
|
|
|
android:layout_gravity="right">
|
|
|
|
|
2017-08-16 02:23:42 +00:00
|
|
|
<View android:id="@+id/group_sender_holder"
|
2017-09-27 00:38:17 +00:00
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:visibility="gone"/>
|
2017-08-16 02:23:42 +00:00
|
|
|
|
|
|
|
<TextView android:id="@+id/group_message_sender"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:linksClickable="false"
|
|
|
|
android:textAppearance="?android:attr/textAppearanceSmall"
|
|
|
|
android:layout_gravity="right"
|
|
|
|
android:textColor="?conversation_item_sent_text_secondary_color"
|
|
|
|
android:visibility="gone"
|
|
|
|
android:layout_marginRight="8dip"
|
2017-09-27 00:38:17 +00:00
|
|
|
android:paddingTop="1dip"/>
|
2017-08-16 02:23:42 +00:00
|
|
|
|
|
|
|
<TextView android:id="@+id/group_message_sender_profile"
|
2015-06-29 15:49:32 +00:00
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:linksClickable="false"
|
|
|
|
android:textAppearance="?android:attr/textAppearanceSmall"
|
|
|
|
android:layout_gravity="right"
|
|
|
|
android:textColor="?conversation_item_sent_text_secondary_color"
|
|
|
|
android:visibility="gone"
|
|
|
|
android:layout_marginRight="8dip"
|
2017-09-27 00:38:17 +00:00
|
|
|
android:paddingTop="1dip"/>
|
2015-06-29 15:49:32 +00:00
|
|
|
|
2017-08-16 02:23:42 +00:00
|
|
|
|
2015-06-29 15:49:32 +00:00
|
|
|
<TextView android:id="@+id/conversation_item_date"
|
|
|
|
android:autoLink="none"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:minWidth="15sp"
|
|
|
|
android:linksClickable="false"
|
|
|
|
android:textAppearance="?android:attr/textAppearanceSmall"
|
2016-08-16 03:23:56 +00:00
|
|
|
android:layout_gravity="right|bottom"
|
2015-06-29 15:49:32 +00:00
|
|
|
android:fontFamily="sans-serif-light"
|
|
|
|
android:textColor="?conversation_item_sent_text_secondary_color"
|
|
|
|
android:textSize="@dimen/conversation_item_date_text_size"
|
|
|
|
android:paddingTop="1dip"
|
2015-06-29 23:03:02 +00:00
|
|
|
android:paddingBottom="2dp"
|
2017-09-27 00:38:17 +00:00
|
|
|
tools:text="30 mins"/>
|
2015-06-29 15:49:32 +00:00
|
|
|
|
2016-02-06 00:10:33 +00:00
|
|
|
<TextView android:id="@+id/sim_info"
|
|
|
|
android:autoLink="none"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:minWidth="15sp"
|
|
|
|
android:linksClickable="false"
|
|
|
|
android:textAppearance="?android:attr/textAppearanceSmall"
|
2016-08-16 03:23:56 +00:00
|
|
|
android:layout_gravity="right|bottom"
|
2016-02-06 00:10:33 +00:00
|
|
|
android:fontFamily="sans-serif-light"
|
|
|
|
android:textColor="?conversation_item_sent_text_secondary_color"
|
|
|
|
android:textSize="@dimen/conversation_item_date_text_size"
|
|
|
|
android:paddingTop="1dip"
|
|
|
|
android:paddingBottom="2dp"
|
|
|
|
android:paddingLeft="4dp"
|
|
|
|
android:paddingStart="4dp"
|
|
|
|
android:visibility="gone"
|
|
|
|
tools:visibility="visible"
|
|
|
|
tools:text="to SIM1"/>
|
|
|
|
|
2015-11-24 15:06:41 +00:00
|
|
|
<org.thoughtcrime.securesms.components.DeliveryStatusView
|
|
|
|
android:id="@+id/delivery_status"
|
|
|
|
android:layout_width="20dp"
|
|
|
|
android:layout_height="wrap_content"
|
2016-08-16 03:23:56 +00:00
|
|
|
android:alpha=".7"
|
2015-11-24 15:06:41 +00:00
|
|
|
app:iconColor="?conversation_item_sent_text_secondary_color"/>
|
2015-06-29 15:49:32 +00:00
|
|
|
|
2016-08-16 03:23:56 +00:00
|
|
|
<org.thoughtcrime.securesms.components.ExpirationTimerView
|
|
|
|
android:id="@+id/expiration_indicator"
|
|
|
|
app:empty="@drawable/ic_hourglass_empty_white_18dp"
|
|
|
|
app:full="@drawable/ic_hourglass_full_white_18dp"
|
|
|
|
app:tint="@color/black"
|
|
|
|
app:percentage="0"
|
|
|
|
app:offset="0"
|
|
|
|
android:layout_gravity="center_vertical|end"
|
|
|
|
android:alpha=".6"
|
|
|
|
android:layout_marginLeft="3dp"
|
2017-09-27 00:38:17 +00:00
|
|
|
android:layout_marginStart="3dp"
|
|
|
|
android:layout_width="7dp"
|
2016-08-16 03:23:56 +00:00
|
|
|
android:layout_height="11dp"
|
|
|
|
android:visibility="gone"
|
|
|
|
tools:visibility="visible"/>
|
|
|
|
|
2017-09-27 00:38:17 +00:00
|
|
|
<ImageView android:id="@+id/insecure_indicator"
|
|
|
|
android:layout_width="12dp"
|
|
|
|
android:layout_height="11dp"
|
|
|
|
android:src="@drawable/ic_unlocked_white_18dp"
|
2015-06-29 15:49:32 +00:00
|
|
|
android:visibility="gone"
|
|
|
|
android:layout_gravity="center_vertical|end"
|
2017-09-27 00:38:17 +00:00
|
|
|
android:alpha=".6"
|
2017-10-04 18:15:02 +00:00
|
|
|
android:tint="?attr/conversation_item_sent_text_secondary_color"
|
2017-09-27 00:38:17 +00:00
|
|
|
android:layout_marginLeft="3dp"
|
|
|
|
android:layout_marginStart="3dp"
|
2015-06-29 22:33:36 +00:00
|
|
|
android:tintMode="multiply"
|
2016-08-16 03:23:56 +00:00
|
|
|
android:contentDescription="@string/conversation_item__secure_message_description"
|
|
|
|
tools:visibility="visible"/>
|
2015-06-29 15:49:32 +00:00
|
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
</LinearLayout>
|
2014-01-08 22:29:05 +00:00
|
|
|
|
2014-03-01 22:17:55 +00:00
|
|
|
<TextView android:id="@+id/indicator_text"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
2015-06-29 15:49:32 +00:00
|
|
|
android:layout_below="@id/body_bubble"
|
2014-03-01 22:17:55 +00:00
|
|
|
android:layout_alignParentRight="true"
|
|
|
|
android:paddingRight="5dip"
|
|
|
|
android:paddingLeft="5dip"
|
|
|
|
android:paddingTop="3dp"
|
|
|
|
android:paddingBottom="3dp"
|
|
|
|
android:layout_marginLeft="50dp"
|
2015-06-29 15:49:32 +00:00
|
|
|
android:layout_marginRight="22dp"
|
2015-06-29 23:03:02 +00:00
|
|
|
android:layout_marginTop="-3dp"
|
2014-03-01 22:17:55 +00:00
|
|
|
android:textSize="12sp"
|
2015-06-29 15:49:32 +00:00
|
|
|
android:textColor="?conversation_item_sent_text_indicator_tab_color"
|
2014-03-01 22:17:55 +00:00
|
|
|
android:background="?conversation_item_sent_indicator_text_background"
|
|
|
|
android:visibility="gone" />
|
|
|
|
|
2012-07-20 02:23:49 +00:00
|
|
|
</RelativeLayout>
|
|
|
|
</org.thoughtcrime.securesms.ConversationItem>
|