2012-07-20 02:23:49 +00:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
2015-10-21 22:32:29 +00:00
|
|
|
<org.thoughtcrime.securesms.ConversationItem
|
|
|
|
android:id="@+id/conversation_item"
|
|
|
|
android:layout_width="fill_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:paddingRight="10dip"
|
|
|
|
android:orientation="vertical"
|
|
|
|
android:background="@drawable/conversation_item_background"
|
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
|
|
|
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">
|
2014-02-15 12:21:56 +00:00
|
|
|
|
|
|
|
<TextView android:id="@+id/group_message_status"
|
2015-01-30 06:37:01 +00:00
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginLeft="15dp"
|
|
|
|
android:layout_marginTop="5dp"
|
|
|
|
android:fontFamily="sans-serif-light"
|
|
|
|
android:textSize="13sp"
|
|
|
|
android:textColor="?attr/conversation_group_member_name"
|
|
|
|
android:visibility="gone" />
|
|
|
|
|
|
|
|
<RelativeLayout android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginTop="2dp"
|
|
|
|
android:layout_marginLeft="9dp"
|
|
|
|
android:layout_marginBottom="6dp"
|
|
|
|
android:layout_marginRight="0dp">
|
2014-02-15 12:21:56 +00:00
|
|
|
|
2015-05-04 18:36:18 +00:00
|
|
|
<org.thoughtcrime.securesms.components.AvatarImageView
|
2014-02-25 03:07:12 +00:00
|
|
|
android:id="@+id/contact_photo"
|
|
|
|
android:foreground="@drawable/contact_photo_background"
|
2014-02-15 12:21:56 +00:00
|
|
|
android:layout_width="40dp"
|
|
|
|
android:layout_height="40dp"
|
|
|
|
android:layout_alignParentLeft="true"
|
2015-06-29 15:49:32 +00:00
|
|
|
android:layout_alignParentBottom="true"
|
2014-02-15 12:21:56 +00:00
|
|
|
android:cropToPadding="true"
|
2015-05-04 18:36:18 +00:00
|
|
|
android:contentDescription="@string/conversation_item_received__contact_photo_description" />
|
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_toRightOf="@id/contact_photo"
|
2015-07-09 00:11:31 +00:00
|
|
|
android:layout_marginRight="35dp"
|
2015-06-29 15:49:32 +00:00
|
|
|
android:background="@drawable/received_bubble"
|
2016-08-16 03:23:56 +00:00
|
|
|
android:orientation="vertical"
|
|
|
|
tools:backgroundTint="@color/blue_900">
|
2015-06-29 15:49:32 +00:00
|
|
|
|
|
|
|
<org.thoughtcrime.securesms.components.ThumbnailView
|
|
|
|
android:id="@+id/image_view"
|
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"
|
|
|
|
android:scaleType="centerCrop"
|
|
|
|
android:adjustViewBounds="true"
|
|
|
|
android:contentDescription="@string/conversation_item__mms_image_description"
|
|
|
|
android:visibility="gone"
|
|
|
|
tools:src="@drawable/ic_video_light"
|
2015-10-21 22:32:29 +00:00
|
|
|
tools:visibility="gone" />
|
|
|
|
|
2017-01-20 17:11:40 +00:00
|
|
|
<ViewStub
|
|
|
|
android:id="@+id/audio_view_stub"
|
|
|
|
android:layout="@layout/conversation_item_received_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-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"
|
2015-06-29 22:33:36 +00:00
|
|
|
android:textColor="?conversation_item_received_text_primary_color"
|
2015-06-30 00:20:37 +00:00
|
|
|
android:textColorLink="?conversation_item_received_text_primary_color"
|
2015-07-10 21:58:05 +00:00
|
|
|
android:textSize="@dimen/conversation_item_body_text_size"
|
2015-06-29 15:49:32 +00:00
|
|
|
android:autoLink="all"
|
|
|
|
android:linksClickable="true" />
|
|
|
|
|
|
|
|
<LinearLayout android:id="@+id/mms_download_controls"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:orientation="horizontal">
|
|
|
|
|
|
|
|
<Button android:id="@+id/mms_download_button"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_gravity="center_vertical"
|
|
|
|
android:text="@string/conversation_item_received__download"
|
|
|
|
android:visibility="gone" />
|
|
|
|
|
|
|
|
<TextView android:id="@+id/mms_label_downloading"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginLeft="5dp"
|
|
|
|
android:layout_marginRight="5dp"
|
|
|
|
android:gravity="center"
|
|
|
|
android:text="@string/conversation_item_received__downloading"
|
|
|
|
android:visibility="gone" />
|
|
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
<LinearLayout android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:paddingTop="2dip"
|
2015-06-29 21:38:52 +00:00
|
|
|
android:paddingLeft="4dp"
|
|
|
|
android:paddingRight="4dp"
|
2015-06-29 15:49:32 +00:00
|
|
|
android:orientation="horizontal"
|
|
|
|
android:gravity="left">
|
|
|
|
|
|
|
|
<ImageView android:id="@+id/secure_indicator"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_gravity="center_vertical"
|
2016-08-16 03:23:56 +00:00
|
|
|
android:paddingRight="2dp"
|
2016-02-06 00:10:33 +00:00
|
|
|
android:paddingEnd="4dp"
|
2015-06-29 22:33:36 +00:00
|
|
|
android:src="?menu_lock_icon_small"
|
2015-06-29 15:49:32 +00:00
|
|
|
android:contentDescription="@string/conversation_item__secure_message_description"
|
2015-06-29 22:33:36 +00:00
|
|
|
android:visibility="gone"
|
|
|
|
android:tint="?conversation_item_received_text_secondary_color"
|
2016-08-16 03:23:56 +00:00
|
|
|
android:tintMode="multiply"
|
|
|
|
tools:visibility="visible"/>
|
|
|
|
|
|
|
|
<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="?conversation_item_received_text_secondary_color"
|
|
|
|
app:percentage="0"
|
|
|
|
app:offset="0"
|
|
|
|
android:layout_gravity="center_vertical|end"
|
|
|
|
android:alpha=".65"
|
|
|
|
android:layout_width="10dp"
|
|
|
|
android:layout_height="11dp"
|
|
|
|
android:visibility="gone"
|
|
|
|
tools:visibility="visible"/>
|
2015-06-29 15:49:32 +00:00
|
|
|
|
2015-11-24 15:06:41 +00:00
|
|
|
<org.thoughtcrime.securesms.components.DeliveryStatusView
|
|
|
|
android:id="@+id/delivery_status"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:visibility="gone"/>
|
2015-06-29 15:49:32 +00:00
|
|
|
|
|
|
|
<TextView android:id="@+id/conversation_item_date"
|
2016-02-06 00:10:33 +00:00
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_gravity="left"
|
|
|
|
android:paddingTop="1dip"
|
|
|
|
android:textAppearance="?android:attr/textAppearanceSmall"
|
|
|
|
android:textColor="?conversation_item_received_text_secondary_color"
|
|
|
|
android:textSize="@dimen/conversation_item_date_text_size"
|
|
|
|
android:fontFamily="sans-serif-light"
|
|
|
|
android:autoLink="none"
|
|
|
|
android:linksClickable="false"
|
2016-08-16 03:23:56 +00:00
|
|
|
tools:text="Now"
|
|
|
|
tools:visibility="visible"/>
|
2016-02-06 00:10:33 +00:00
|
|
|
|
|
|
|
<TextView android:id="@+id/sim_info"
|
2015-06-29 15:49:32 +00:00
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_gravity="left"
|
|
|
|
android:paddingTop="1dip"
|
2015-11-26 18:04:27 +00:00
|
|
|
android:paddingLeft="4dp"
|
|
|
|
android:paddingStart="4dp"
|
2015-06-29 15:49:32 +00:00
|
|
|
android:textAppearance="?android:attr/textAppearanceSmall"
|
2015-06-29 22:33:36 +00:00
|
|
|
android:textColor="?conversation_item_received_text_secondary_color"
|
2015-06-29 15:49:32 +00:00
|
|
|
android:textSize="@dimen/conversation_item_date_text_size"
|
|
|
|
android:fontFamily="sans-serif-light"
|
|
|
|
android:autoLink="none"
|
2016-02-06 00:10:33 +00:00
|
|
|
android:linksClickable="false"
|
|
|
|
android:visibility="gone"
|
|
|
|
tools:visibility="visible"
|
|
|
|
tools:text="from SIM1"/>
|
2015-06-29 15:49:32 +00:00
|
|
|
</LinearLayout>
|
|
|
|
</LinearLayout>
|
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"
|
2012-07-20 02:23:49 +00:00
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
2015-11-24 15:06:41 +00:00
|
|
|
android:layout_alignParentRight="true"
|
|
|
|
android:orientation="vertical"
|
|
|
|
android:gravity="center_vertical"/>
|
2012-07-20 02:23:49 +00:00
|
|
|
|
2015-06-29 15:49:32 +00:00
|
|
|
<TextView android:id="@+id/indicator_text"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_below="@id/body_bubble"
|
|
|
|
android:layout_alignParentRight="true"
|
|
|
|
android:paddingRight="5dip"
|
|
|
|
android:paddingLeft="5dip"
|
|
|
|
android:paddingTop="3dp"
|
|
|
|
android:paddingBottom="3dp"
|
|
|
|
android:layout_marginLeft="50dp"
|
|
|
|
android:layout_marginRight="22dp"
|
|
|
|
android:layout_marginTop="-2dp"
|
|
|
|
android:textSize="12sp"
|
|
|
|
android:textColor="?conversation_item_sent_text_indicator_tab_color"
|
|
|
|
android:background="?conversation_item_sent_indicator_text_background"
|
|
|
|
android:visibility="gone" />
|
|
|
|
|
2012-07-20 02:23:49 +00:00
|
|
|
</RelativeLayout>
|
|
|
|
</org.thoughtcrime.securesms.ConversationItem>
|