The "contact" option in the attachments tray now brings you through an optimized contact sharing flow, allowing you to select specific fields to share. The contact is then presented as a special message type, allowing you to interact with the card to add the contact to your system contacts, invite them to signal, initiate a signal message, etc.
84 lines
No EOL
3 KiB
XML
84 lines
No EOL
3 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<merge
|
|
xmlns:android="http://schemas.android.com/apk/res/android"
|
|
xmlns:tools="http://schemas.android.com/tools">
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:orientation="vertical"
|
|
android:background="@drawable/shared_contact_view_background">
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="horizontal"
|
|
android:padding="6dp"
|
|
android:gravity="center_vertical">
|
|
|
|
<ImageView
|
|
android:id="@+id/contact_avatar"
|
|
android:layout_width="50dp"
|
|
android:layout_height="50dp"
|
|
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"
|
|
android:maxLines="1"
|
|
android:ellipsize="end"
|
|
android:fontFamily="sans-serif-medium"
|
|
android:textColor="@color/signal_primary"
|
|
android:textSize="16sp"
|
|
tools:text="Peter Parker"/>
|
|
|
|
<TextView
|
|
android:id="@+id/contact_number"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:maxLines="1"
|
|
android:ellipsize="end"
|
|
android:textColor="@color/grey_600"
|
|
tools:text="(610) 555-5555"/>
|
|
|
|
</LinearLayout>
|
|
|
|
</LinearLayout>
|
|
|
|
<LinearLayout
|
|
android:id="@+id/contact_action_button_container"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="vertical">
|
|
|
|
<FrameLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="1dp"
|
|
android:background="@color/grey_400_transparent"/>
|
|
|
|
<TextView
|
|
android:id="@+id/contact_action_button"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:gravity="center"
|
|
android:padding="10dp"
|
|
android:background="?attr/selectableItemBackground"
|
|
android:fontFamily="sans-serif-medium"
|
|
android:textColor="@color/signal_primary"
|
|
tools:text="Add to Contacts"/>
|
|
|
|
</LinearLayout>
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
</merge> |