2015-01-15 13:35:35 -08:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
2020-06-16 18:12:14 -04:00
|
|
|
<androidx.cardview.widget.CardView xmlns:android="http://schemas.android.com/apk/res/android"
|
|
|
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
|
|
|
xmlns:tools="http://schemas.android.com/tools"
|
|
|
|
android:id="@+id/group_media_card"
|
|
|
|
style="@style/Widget.Signal.CardView.PreferenceRow"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content">
|
2015-03-24 13:37:57 -07:00
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:orientation="vertical"
|
2020-06-16 18:12:14 -04:00
|
|
|
android:paddingStart="16dp"
|
|
|
|
android:paddingTop="24dp"
|
|
|
|
android:paddingEnd="16dp"
|
|
|
|
android:paddingBottom="24dp">
|
|
|
|
|
|
|
|
<FrameLayout
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content">
|
|
|
|
|
|
|
|
<ViewStub
|
|
|
|
android:id="@+id/message_details_header_message_view_update"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout="@layout/conversation_item_update"/>
|
|
|
|
|
|
|
|
<ViewStub
|
|
|
|
android:id="@+id/message_details_header_message_view_sent_multimedia"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout="@layout/conversation_item_sent_multimedia"/>
|
|
|
|
|
|
|
|
<ViewStub
|
|
|
|
android:id="@+id/message_details_header_message_view_received_multimedia"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout="@layout/conversation_item_received_multimedia"/>
|
|
|
|
|
|
|
|
</FrameLayout>
|
2015-03-24 13:37:57 -07:00
|
|
|
|
2018-10-11 16:45:22 -07:00
|
|
|
<LinearLayout
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content">
|
|
|
|
|
2019-11-01 10:18:16 -03:00
|
|
|
<androidx.appcompat.widget.AppCompatTextView
|
2020-06-16 18:12:14 -04:00
|
|
|
android:id="@+id/message_details_header_error_text"
|
2019-11-01 10:18:16 -03:00
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_weight="1"
|
|
|
|
android:visibility="gone"
|
|
|
|
android:textSize="16sp"
|
|
|
|
android:padding="5dp"
|
|
|
|
tools:visibility="visible"
|
|
|
|
android:text="@string/message_details_header__issues_need_your_attention"
|
|
|
|
android:drawablePadding="4dp"
|
|
|
|
app:drawableStartCompat="@drawable/ic_info_outline_message_details_24"
|
|
|
|
android:gravity="center_vertical" />
|
2018-10-11 16:45:22 -07:00
|
|
|
|
|
|
|
<Button
|
2020-06-16 18:12:14 -04:00
|
|
|
android:id="@+id/message_details_header_resend_button"
|
2018-10-11 16:45:22 -07:00
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="38sp"
|
|
|
|
style="@style/InfoButton"
|
2019-03-20 15:52:14 -07:00
|
|
|
android:paddingStart="10dp"
|
|
|
|
android:paddingEnd="10dp"
|
2018-10-11 16:45:22 -07:00
|
|
|
android:paddingTop="5dp"
|
|
|
|
android:paddingBottom="5dp"
|
|
|
|
android:layout_gravity="center_vertical"
|
2019-03-20 15:52:14 -07:00
|
|
|
android:drawableStart="@drawable/ic_refresh_white_18dp"
|
2018-10-11 16:45:22 -07:00
|
|
|
android:text="@string/message_recipients_list_item__resend"
|
|
|
|
android:visibility="gone"
|
|
|
|
tools:visibility="visible" />
|
|
|
|
|
|
|
|
</LinearLayout>
|
2015-03-24 13:37:57 -07:00
|
|
|
|
2020-06-16 18:12:14 -04:00
|
|
|
<androidx.constraintlayout.widget.ConstraintLayout
|
|
|
|
android:id="@+id/message_details_header_message_metadata"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content">
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/message_details_header_sent_time_label"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginTop="16dp"
|
|
|
|
android:gravity="end"
|
|
|
|
android:text="@string/message_details_header__sent"
|
|
|
|
android:textStyle="bold"
|
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
|
|
app:layout_constraintTop_toTopOf="parent" />
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/message_details_header_sent_time"
|
2021-06-25 16:49:48 -04:00
|
|
|
android:layout_width="0dp"
|
2020-06-16 18:12:14 -04:00
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginStart="@dimen/message_details_table_row_pad"
|
|
|
|
android:background="?selectableItemBackground"
|
2021-06-25 16:49:48 -04:00
|
|
|
android:maxLines="2"
|
|
|
|
app:layout_constraintTop_toTopOf="@+id/message_details_header_sent_time_label"
|
2020-06-16 18:12:14 -04:00
|
|
|
app:layout_constraintStart_toEndOf="@+id/message_details_header_label_barrier"
|
2021-06-25 16:49:48 -04:00
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
2020-06-16 18:12:14 -04:00
|
|
|
tools:text="Jan 18, 2015, 12:29:37 AM GMT-08:00" />
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/message_details_header_received_time_label"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginTop="16dp"
|
|
|
|
android:gravity="end"
|
|
|
|
android:text="@string/message_details_header__received"
|
|
|
|
android:textStyle="bold"
|
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
2021-06-25 16:49:48 -04:00
|
|
|
app:layout_constraintTop_toBottomOf="@+id/message_details_header_sent_time" />
|
2020-06-16 18:12:14 -04:00
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/message_details_header_received_time"
|
2021-06-25 16:49:48 -04:00
|
|
|
android:layout_width="0dp"
|
2020-06-16 18:12:14 -04:00
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginStart="@dimen/message_details_table_row_pad"
|
|
|
|
android:background="?selectableItemBackground"
|
2021-06-25 16:49:48 -04:00
|
|
|
android:maxLines="2"
|
|
|
|
app:layout_constraintTop_toTopOf="@+id/message_details_header_received_time_label"
|
2020-06-16 18:12:14 -04:00
|
|
|
app:layout_constraintStart_toEndOf="@id/message_details_header_label_barrier"
|
2021-06-25 16:49:48 -04:00
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
2020-06-16 18:12:14 -04:00
|
|
|
tools:text="Jan 18, 2015, 12:31:15 AM GMT-08:00" />
|
|
|
|
|
|
|
|
<androidx.constraintlayout.widget.Group
|
|
|
|
android:id="@+id/message_details_header_received_group"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
app:constraint_referenced_ids="message_details_header_received_time_label,message_details_header_received_time" />
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/message_details_header_expires_in_label"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginTop="16dp"
|
|
|
|
android:gravity="end"
|
|
|
|
android:text="@string/message_details_header__disappears"
|
|
|
|
android:textStyle="bold"
|
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
2021-06-25 16:49:48 -04:00
|
|
|
app:layout_constraintTop_toBottomOf="@+id/message_details_header_received_time" />
|
2020-06-16 18:12:14 -04:00
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/message_details_header_expires_in"
|
2021-06-25 16:49:48 -04:00
|
|
|
android:layout_width="0dp"
|
2020-06-16 18:12:14 -04:00
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginStart="@dimen/message_details_table_row_pad"
|
2021-06-25 16:49:48 -04:00
|
|
|
android:maxLines="2"
|
|
|
|
app:layout_constraintTop_toTopOf="@+id/message_details_header_expires_in_label"
|
2020-06-16 18:12:14 -04:00
|
|
|
app:layout_constraintStart_toEndOf="@id/message_details_header_label_barrier"
|
2021-06-25 16:49:48 -04:00
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
tools:text="1 week 6 days 23 hours 54 minutes 16 seconds and 200 milliseconds" />
|
2020-06-16 18:12:14 -04:00
|
|
|
|
|
|
|
<androidx.constraintlayout.widget.Group
|
|
|
|
android:id="@+id/message_details_header_expires_group"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
app:constraint_referenced_ids="message_details_header_expires_in_label,message_details_header_expires_in" />
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/message_details_header_transport_label"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginTop="16dp"
|
|
|
|
android:gravity="end"
|
|
|
|
android:text="@string/message_details_header__via"
|
|
|
|
android:textStyle="bold"
|
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
2021-06-25 16:49:48 -04:00
|
|
|
app:layout_constraintTop_toBottomOf="@+id/message_details_header_expires_in" />
|
2020-06-16 18:12:14 -04:00
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/message_details_header_transport"
|
2021-06-25 16:49:48 -04:00
|
|
|
android:layout_width="0dp"
|
2020-06-16 18:12:14 -04:00
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginStart="@dimen/message_details_table_row_pad"
|
2021-06-25 16:49:48 -04:00
|
|
|
android:maxLines="2"
|
|
|
|
app:layout_constraintTop_toTopOf="@+id/message_details_header_transport_label"
|
2020-06-16 18:12:14 -04:00
|
|
|
app:layout_constraintStart_toEndOf="@id/message_details_header_label_barrier"
|
2021-06-25 16:49:48 -04:00
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
tools:text="Data (Signal)" />
|
2020-06-16 18:12:14 -04:00
|
|
|
|
|
|
|
<androidx.constraintlayout.widget.Barrier
|
|
|
|
android:id="@+id/message_details_header_label_barrier"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
app:barrierDirection="end"
|
|
|
|
app:constraint_referenced_ids="message_details_header_sent_time_label,message_details_header_received_time_label,message_details_header_expires_in_label" />
|
|
|
|
|
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
|
|
|
|
2015-03-24 13:37:57 -07:00
|
|
|
</LinearLayout>
|
2020-06-16 18:12:14 -04:00
|
|
|
|
|
|
|
</androidx.cardview.widget.CardView>
|