mirror of
https://github.com/oxen-io/session-android.git
synced 2024-12-22 16:07:30 +00:00
15c6f18750
Closes #4270 // FREEBIE
197 lines
9.8 KiB
XML
197 lines
9.8 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<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"
|
|
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">
|
|
|
|
<TextView android:id="@+id/group_message_status"
|
|
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">
|
|
|
|
<org.thoughtcrime.securesms.components.AvatarImageView
|
|
android:id="@+id/contact_photo"
|
|
android:foreground="@drawable/contact_photo_background"
|
|
android:layout_width="40dp"
|
|
android:layout_height="40dp"
|
|
android:layout_alignParentLeft="true"
|
|
android:layout_alignParentBottom="true"
|
|
android:cropToPadding="true"
|
|
android:contentDescription="@string/conversation_item_received__contact_photo_description" />
|
|
|
|
<LinearLayout android:id="@+id/body_bubble"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_toRightOf="@id/contact_photo"
|
|
android:layout_toEndOf="@id/contact_photo"
|
|
android:layout_marginRight="35dp"
|
|
android:background="@drawable/received_bubble"
|
|
android:orientation="vertical">
|
|
|
|
<org.thoughtcrime.securesms.components.ThumbnailView
|
|
android:id="@+id/image_view"
|
|
android:layout_width="@dimen/media_bubble_height"
|
|
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"
|
|
tools:visibility="gone" />
|
|
|
|
<org.thoughtcrime.securesms.components.AudioView
|
|
android:id="@+id/audio_view"
|
|
android:layout_width="210dp"
|
|
android:layout_height="wrap_content"
|
|
android:visibility="gone"
|
|
app:tintColor="@color/white"
|
|
tools:visibility="visible"/>
|
|
|
|
<org.thoughtcrime.securesms.components.emoji.EmojiTextView
|
|
android:id="@+id/conversation_item_body"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:paddingLeft="4dp"
|
|
android:paddingRight="4dp"
|
|
android:textAppearance="?android:attr/textAppearanceSmall"
|
|
android:textColor="?conversation_item_received_text_primary_color"
|
|
android:textColorLink="?conversation_item_received_text_primary_color"
|
|
android:textSize="@dimen/conversation_item_body_text_size"
|
|
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"
|
|
android:paddingLeft="4dp"
|
|
android:paddingRight="4dp"
|
|
android:orientation="horizontal"
|
|
android:gravity="left">
|
|
|
|
<ImageView android:id="@+id/sent_indicator"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:visibility="gone"/>
|
|
|
|
<ImageView android:id="@+id/delivered_indicator"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:visibility="gone" />
|
|
|
|
<ImageView android:id="@+id/secure_indicator"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_gravity="center_vertical"
|
|
android:paddingRight="4dp"
|
|
android:paddingTop="2dp"
|
|
android:src="?menu_lock_icon_small"
|
|
android:contentDescription="@string/conversation_item__secure_message_description"
|
|
android:visibility="gone"
|
|
android:tint="?conversation_item_received_text_secondary_color"
|
|
android:tintMode="multiply"/>
|
|
|
|
<FrameLayout android:id="@+id/pending_indicator_stub"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"/>
|
|
|
|
<TextView android:id="@+id/conversation_item_date"
|
|
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" />
|
|
</LinearLayout>
|
|
</LinearLayout>
|
|
|
|
<LinearLayout 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">
|
|
|
|
<ImageView android:id="@+id/sms_failed_indicator"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:src="@drawable/ic_action_warning_red"
|
|
android:contentDescription="@string/conversation_item_sent__send_failed_indicator_description"
|
|
android:visibility="gone" />
|
|
|
|
<ImageView
|
|
android:id="@+id/pending_approval_indicator"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:src="@drawable/ic_info_outline_grey600_24dp"
|
|
android:visibility="gone"
|
|
android:layout_gravity="center_vertical"
|
|
android:contentDescription="@string/conversation_item_sent__pending_approval_description"
|
|
tools:visibility="gone" />
|
|
|
|
</LinearLayout>
|
|
|
|
<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" />
|
|
|
|
</RelativeLayout>
|
|
</org.thoughtcrime.securesms.ConversationItem>
|