mirror of
https://github.com/oxen-io/session-android.git
synced 2025-02-17 18:28:26 +00:00
![Greyson Parrelli](/assets/img/avatar_default.png)
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.
50 lines
1.6 KiB
XML
50 lines
1.6 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<LinearLayout
|
|
xmlns:android="http://schemas.android.com/apk/res/android"
|
|
xmlns:tools="http://schemas.android.com/tools"
|
|
android:orientation="horizontal"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:paddingTop="5dp"
|
|
android:paddingBottom="5dp"
|
|
android:gravity="center_vertical">
|
|
|
|
<ImageView
|
|
android:id="@+id/contact_field_icon"
|
|
android:layout_width="24dp"
|
|
android:layout_height="24dp"
|
|
android:layout_margin="16dp"
|
|
android:tint="@color/grey_600"
|
|
tools:src="@drawable/ic_call_white_24dp" />
|
|
|
|
<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_field_value"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:maxLines="1"
|
|
android:ellipsize="end"
|
|
tools:text="(610) 867-5309" />
|
|
|
|
<TextView
|
|
android:id="@+id/contact_field_label"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:maxLines="1"
|
|
android:ellipsize="end"
|
|
tools:text="Mobile"/>
|
|
|
|
</LinearLayout>
|
|
|
|
<CheckBox
|
|
android:id="@+id/contact_field_checkbox"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_margin="16dp"/>
|
|
|
|
</LinearLayout> |