mirror of
https://github.com/ArcaneChat/android.git
synced 2026-07-03 14:05:24 +02:00
c705790d26
* implement Rpc API for parse_vcard * allow to create Recipient from VcardContact * display vcard view-type in incoming/outgoing messages * fix linter warnings in Recipient class * properly show vcard view-type in quoted messages * display fallback avatar in quotes * allow to attach vcard * implement basic click listener * timestamp type got changed from float to int * set stick translation for "contact" * share contact as vcard using the new Rpc.makeVcard API * allow to import contact when clicking vcard
55 lines
2.2 KiB
XML
55 lines
2.2 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<org.thoughtcrime.securesms.contacts.ContactSelectionListItem
|
|
xmlns:android="http://schemas.android.com/apk/res/android"
|
|
xmlns:tools="http://schemas.android.com/tools"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="60dp"
|
|
android:orientation="horizontal"
|
|
android:gravity="center_vertical"
|
|
android:focusable="true">
|
|
|
|
<org.thoughtcrime.securesms.components.AvatarView
|
|
android:id="@+id/avatar"
|
|
android:layout_width="40dp"
|
|
android:layout_height="40dp" />
|
|
|
|
<LinearLayout android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="1"
|
|
android:layout_marginLeft="16dp"
|
|
android:layout_marginStart="16dp"
|
|
android:paddingRight="16dp"
|
|
android:paddingEnd="16dp"
|
|
android:orientation="vertical">
|
|
|
|
<org.thoughtcrime.securesms.components.emoji.EmojiTextView
|
|
android:id="@+id/name"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:checkMark="?android:attr/listChoiceIndicatorMultiple"
|
|
android:drawablePadding="5dp"
|
|
android:ellipsize="marquee"
|
|
android:singleLine="true"
|
|
android:fontFamily="sans-serif"
|
|
android:textSize="16sp"
|
|
tools:text="Frieeeeeeedrich Nieeeeeeeeeetzsche" />
|
|
<!-- Attention: Using android:maxLines="1", if the name is an emoji followed by a
|
|
long word and the chat is muted, then the long word is not shown at all
|
|
(instead of using `…`). That's why we use android:singleLine="true" -->
|
|
|
|
|
|
<TextView android:id="@+id/addr"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:textDirection="ltr"
|
|
android:singleLine="true"
|
|
android:ellipsize="marquee"
|
|
android:textAppearance="?android:attr/textAppearanceSmall"
|
|
android:textSize="14sp"
|
|
android:fontFamily="sans-serif-light"
|
|
tools:text="user@example.com" />
|
|
|
|
</LinearLayout>
|
|
|
|
</org.thoughtcrime.securesms.contacts.ContactSelectionListItem>
|