mirror of
https://github.com/oxen-io/session-android.git
synced 2024-12-22 07:57:30 +00:00
b89c20ff40
We can do this now that our minSdk is 19.
93 lines
3.9 KiB
XML
93 lines
3.9 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<org.thoughtcrime.securesms.conversation.ConversationTitleView
|
|
xmlns:android="http://schemas.android.com/apk/res/android"
|
|
xmlns:tools="http://schemas.android.com/tools"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
|
android:layout_gravity="center_vertical"
|
|
android:gravity="center_vertical">
|
|
|
|
<ImageView android:id="@+id/up_button"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:src="@drawable/ic_arrow_back_white_24dp"
|
|
android:clickable="true"
|
|
android:paddingEnd="12dp"
|
|
android:layout_marginEnd="12dp"
|
|
android:layout_alignParentStart="true"
|
|
android:layout_centerVertical="true"
|
|
android:background="?selectableItemBackgroundBorderless"
|
|
android:visibility="visible"/>
|
|
|
|
<org.thoughtcrime.securesms.components.AvatarImageView
|
|
android:id="@+id/contact_photo_image"
|
|
android:foreground="@drawable/contact_photo_background"
|
|
android:layout_width="40dp"
|
|
android:layout_height="40dp"
|
|
android:layout_toEndOf="@id/up_button"
|
|
android:layout_centerVertical="true"
|
|
android:layout_marginEnd="10dp"
|
|
android:cropToPadding="true"
|
|
android:transitionName="contact_photo"
|
|
android:clickable="true"
|
|
app:inverted="true"
|
|
tools:src="@drawable/ic_contact_picture"
|
|
android:contentDescription="@string/conversation_list_item_view__contact_photo_image"/>
|
|
|
|
<LinearLayout
|
|
android:id="@+id/content"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="vertical"
|
|
android:layout_toEndOf="@id/contact_photo_image"
|
|
android:layout_centerVertical="true">
|
|
|
|
<org.thoughtcrime.securesms.components.emoji.EmojiTextView
|
|
android:id="@+id/title"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:maxLines="1"
|
|
android:ellipsize="end"
|
|
android:textSize="18dp"
|
|
android:transitionName="recipient_name"
|
|
android:drawablePadding="5dp"
|
|
android:gravity="center_vertical"
|
|
android:layout_gravity="center_vertical"
|
|
style="@style/TextSecure.TitleTextStyle"
|
|
tools:ignore="UnusedAttribute"/>
|
|
|
|
<LinearLayout
|
|
android:id="@+id/subtitle_container"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="horizontal">
|
|
|
|
<ImageView
|
|
android:id="@+id/verified_indicator"
|
|
android:src="@drawable/ic_check_circle_white_18dp"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginEnd="3dp"
|
|
android:layout_gravity="bottom"
|
|
android:alpha="0.7"
|
|
android:visibility="gone"/>
|
|
|
|
<org.thoughtcrime.securesms.components.emoji.EmojiTextView
|
|
android:id="@+id/subtitle"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:maxLines="1"
|
|
android:ellipsize="end"
|
|
android:layout_gravity="center_vertical|start"
|
|
android:gravity="center_vertical"
|
|
android:textDirection="ltr"
|
|
android:textSize="13dp"
|
|
tools:text="(123) 123-1234"
|
|
style="@style/TextSecure.SubtitleTextStyle"/>
|
|
|
|
</LinearLayout>
|
|
|
|
</LinearLayout>
|
|
|
|
</org.thoughtcrime.securesms.conversation.ConversationTitleView> |