mirror of
https://github.com/oxen-io/session-android.git
synced 2024-12-18 22:17:30 +00:00
b89c20ff40
We can do this now that our minSdk is 19.
80 lines
2.9 KiB
XML
80 lines
2.9 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<org.thoughtcrime.securesms.conversation.ConversationUpdateItem
|
|
xmlns:android="http://schemas.android.com/apk/res/android"
|
|
xmlns:tools="http://schemas.android.com/tools"
|
|
android:id="@+id/conversation_update_item"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:background="@drawable/conversation_item_background"
|
|
android:focusable="true"
|
|
android:gravity="center"
|
|
android:orientation="vertical"
|
|
android:paddingBottom="6dp"
|
|
android:paddingStart="28dp"
|
|
android:paddingEnd="28dp"
|
|
android:paddingTop="8dp">
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginBottom="7dp"
|
|
android:layout_marginTop="12dp"
|
|
android:gravity="center">
|
|
|
|
<ImageView
|
|
android:id="@+id/conversation_update_icon"
|
|
android:layout_width="20dp"
|
|
android:layout_height="20dp"
|
|
android:layout_gravity="center_vertical"
|
|
android:layout_marginEnd="6dp"
|
|
android:src="@drawable/ic_timer" />
|
|
|
|
<TextView
|
|
android:id="@+id/conversation_update_title"
|
|
style="@style/Signal.Text.Caption"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:textAllCaps="true"
|
|
android:textColor="?conversation_item_update_text_color"
|
|
tools:text="1 hour" />
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
<LinearLayout
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginBottom="7dp"
|
|
android:gravity="center"
|
|
android:orientation="vertical">
|
|
|
|
<TextView
|
|
android:id="@+id/conversation_update_body"
|
|
style="@style/Signal.Text.Preview"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:autoLink="all"
|
|
android:gravity="center"
|
|
android:linksClickable="true"
|
|
android:textColor="?attr/conversation_item_update_text_color"
|
|
tools:text="Gwen Stacy set the disappearing message timer to 1 hour" />
|
|
|
|
<TextView
|
|
android:id="@+id/conversation_update_date"
|
|
style="@style/Signal.Text.Caption"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_gravity="center"
|
|
android:layout_marginTop="6dp"
|
|
android:autoLink="none"
|
|
android:gravity="center"
|
|
android:linksClickable="false"
|
|
android:minWidth="15sp"
|
|
android:textAllCaps="true"
|
|
android:textColor="?conversation_item_update_text_color"
|
|
tools:text="30 min ago" />
|
|
|
|
</LinearLayout>
|
|
|
|
</org.thoughtcrime.securesms.conversation.ConversationUpdateItem>
|