mirror of
https://github.com/oxen-io/session-android.git
synced 2024-11-28 04:25:18 +00:00
41cad291f9
If the contact doesn't have an image, render a color-coded background and the first letter of the contact's name. 1) Don't display anything during recipient resolution. 2) Display a # icon in material gray for recipients with no name. 3) Display a material group icon in material gray for groups with no avatar icon set. Closes #3104 // FREEBIE
63 lines
3.1 KiB
XML
63 lines
3.1 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="?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_marginRight="10dp"
|
|
android:layout_alignParentLeft="true"
|
|
android:cropToPadding="true"
|
|
android:contentDescription="@string/conversation_item_received__contact_photo_description" />
|
|
|
|
<org.thoughtcrime.securesms.components.IncomingBubbleContainer
|
|
android:id="@+id/bubble"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginLeft="29dp" />
|
|
|
|
<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"
|
|
android:background="?conversation_background">
|
|
|
|
<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" />
|
|
</LinearLayout>
|
|
|
|
</RelativeLayout>
|
|
</org.thoughtcrime.securesms.ConversationItem>
|