session-android/res/layout/conversation_item_update.xml

81 lines
2.9 KiB
XML
Raw Normal View History

<?xml version="1.0" encoding="utf-8"?>
<org.thoughtcrime.securesms.conversation.ConversationUpdateItem
2018-06-26 10:27:44 -07:00
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"
2020-01-16 11:37:52 +11:00
android:paddingStart="48dp"
android:paddingEnd="48dp"
2018-06-26 10:27:44 -07:00
android:paddingTop="8dp">
<LinearLayout
2015-09-21 10:54:23 -07:00
android:layout_width="match_parent"
android:layout_height="wrap_content"
2018-06-26 10:27:44 -07:00
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"
2020-01-16 11:37:52 +11:00
android:textSize="@dimen/small_font_size"
android:textColor="@color/text"
2018-06-26 10:27:44 -07:00
tools:text="1 hour" />
</LinearLayout>
2015-09-21 10:54:23 -07:00
2018-06-26 10:27:44 -07:00
<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"
2020-01-16 11:37:52 +11:00
android:textSize="@dimen/small_font_size"
android:textColor="@color/text"
2018-06-26 10:27:44 -07:00
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"
2020-01-16 11:37:52 +11:00
android:textSize="@dimen/small_font_size"
android:textColor="@color/text"
2018-06-26 10:27:44 -07:00
tools:text="30 min ago" />
</LinearLayout>
</org.thoughtcrime.securesms.conversation.ConversationUpdateItem>