mirror of
https://github.com/oxen-io/session-android.git
synced 2024-12-25 09:17:44 +00:00
92 lines
4.0 KiB
XML
92 lines
4.0 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<org.thoughtcrime.securesms.ConversationSharedContactItem
|
|
xmlns:android="http://schemas.android.com/apk/res/android"
|
|
xmlns:tools="http://schemas.android.com/tools"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:background="@drawable/conversation_item_background">
|
|
|
|
<org.thoughtcrime.securesms.components.CornerMaskingView
|
|
android:id="@+id/contact_bubble"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_alignParentRight="true"
|
|
android:layout_alignParentEnd="true"
|
|
android:layout_marginLeft="@dimen/message_bubble_edge_margin"
|
|
android:layout_marginStart="@dimen/message_bubble_edge_margin"
|
|
android:layout_marginRight="@dimen/conversation_individual_right_gutter"
|
|
android:layout_marginEnd="@dimen/conversation_individual_right_gutter"
|
|
android:paddingTop="12dp"
|
|
android:background="@color/core_light_10">
|
|
|
|
<LinearLayout
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="vertical">
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginLeft="@dimen/message_bubble_horizontal_padding"
|
|
android:layout_marginRight="@dimen/message_bubble_horizontal_padding"
|
|
android:orientation="horizontal"
|
|
android:gravity="center_vertical">
|
|
|
|
<ImageView
|
|
android:id="@+id/contact_avatar"
|
|
android:layout_width="48dp"
|
|
android:layout_height="48dp"
|
|
android:layout_marginEnd="8dp"
|
|
android:layout_marginRight="8dp"/>
|
|
|
|
<LinearLayout
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="1"
|
|
android:orientation="vertical">
|
|
|
|
<org.thoughtcrime.securesms.components.emoji.EmojiTextView
|
|
android:id="@+id/contact_name"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginBottom="4dp"
|
|
style="@style/Signal.Text.Body"
|
|
android:maxLines="1"
|
|
android:ellipsize="end"
|
|
android:fontFamily="sans-serif-medium"
|
|
android:textColor="?conversation_item_sent_text_primary_color"
|
|
tools:text="Peter Parker"/>
|
|
|
|
<TextView
|
|
android:id="@+id/contact_number"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
style="@style/Signal.Text.Caption"
|
|
android:textColor="?conversation_item_sent_text_secondary_color"
|
|
android:maxLines="1"
|
|
android:ellipsize="end"
|
|
tools:text="(610) 555-5555"/>
|
|
|
|
</LinearLayout>
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
<TextView
|
|
android:id="@+id/contact_action_button"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:gravity="center"
|
|
android:padding="10dp"
|
|
style="@style/Signal.Text.Preview"
|
|
android:fontFamily="sans-serif-medium"
|
|
android:textColor="@color/core_blue"
|
|
android:background="@color/core_light_02"
|
|
android:foreground="?attr/selectableItemBackground"
|
|
tools:text="Add to Contacts"/>
|
|
|
|
</LinearLayout>
|
|
|
|
</org.thoughtcrime.securesms.components.CornerMaskingView>
|
|
|
|
</org.thoughtcrime.securesms.ConversationSharedContactItem> |