2018-02-07 14:01:37 -08:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
2021-05-03 11:34:41 -03:00
|
|
|
<merge xmlns:android="http://schemas.android.com/apk/res/android"
|
2018-06-26 10:27:44 -07:00
|
|
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
2021-05-03 11:34:41 -03:00
|
|
|
xmlns:tools="http://schemas.android.com/tools"
|
2018-04-02 16:17:32 -07:00
|
|
|
android:id="@+id/quote_container"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_margin="3dp"
|
2021-05-03 11:34:41 -03:00
|
|
|
android:visibility="gone"
|
2022-04-07 19:51:35 -04:00
|
|
|
tools:parentTag="android.widget.FrameLayout"
|
2018-04-02 16:17:32 -07:00
|
|
|
tools:visibility="visible">
|
2018-02-07 14:01:37 -08:00
|
|
|
|
2018-07-18 13:53:50 -07:00
|
|
|
<LinearLayout
|
2018-04-02 16:17:32 -07:00
|
|
|
android:layout_width="match_parent"
|
2018-07-18 13:53:50 -07:00
|
|
|
android:layout_height="wrap_content"
|
2021-05-03 11:34:41 -03:00
|
|
|
android:orientation="horizontal">
|
|
|
|
|
|
|
|
<View
|
|
|
|
android:id="@+id/quote_bar"
|
|
|
|
android:layout_width="@dimen/quote_corner_radius_bottom"
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
tools:background="@color/purple_400" />
|
2018-02-07 14:01:37 -08:00
|
|
|
|
2018-04-02 16:17:32 -07:00
|
|
|
<LinearLayout
|
2018-08-11 09:55:52 -04:00
|
|
|
android:layout_width="match_parent"
|
2018-04-02 16:17:32 -07:00
|
|
|
android:layout_height="wrap_content"
|
2021-05-03 11:34:41 -03:00
|
|
|
android:orientation="vertical">
|
2018-02-07 14:01:37 -08:00
|
|
|
|
2018-04-02 16:17:32 -07:00
|
|
|
<LinearLayout
|
2021-05-03 11:34:41 -03:00
|
|
|
android:id="@+id/quote_main"
|
|
|
|
android:layout_width="match_parent"
|
2018-04-02 16:17:32 -07:00
|
|
|
android:layout_height="wrap_content"
|
2021-05-03 11:34:41 -03:00
|
|
|
android:orientation="horizontal">
|
2018-06-26 10:27:44 -07:00
|
|
|
|
2018-08-11 09:55:52 -04:00
|
|
|
<LinearLayout
|
2021-05-03 11:34:41 -03:00
|
|
|
android:layout_width="0dp"
|
2018-08-11 09:55:52 -04:00
|
|
|
android:layout_height="wrap_content"
|
2021-05-03 11:34:41 -03:00
|
|
|
android:layout_marginStart="8dp"
|
|
|
|
android:layout_marginTop="8dp"
|
|
|
|
android:layout_marginEnd="8dp"
|
|
|
|
android:layout_marginBottom="8dp"
|
|
|
|
android:layout_weight="1"
|
|
|
|
android:orientation="vertical">
|
|
|
|
|
|
|
|
<org.thoughtcrime.securesms.components.emoji.EmojiTextView
|
|
|
|
android:id="@+id/quote_author"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:ellipsize="end"
|
|
|
|
android:maxLines="1"
|
2022-05-26 17:32:52 -03:00
|
|
|
android:textAppearance="@style/Signal.Text.LabelLarge"
|
2021-05-03 11:34:41 -03:00
|
|
|
android:textColor="@color/core_black"
|
|
|
|
tools:text="Peter Parker" />
|
2018-08-11 09:55:52 -04:00
|
|
|
|
2021-05-03 11:34:41 -03:00
|
|
|
<LinearLayout
|
|
|
|
android:id="@+id/quote_attachment_container"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginBottom="2dp"
|
|
|
|
android:gravity="center_vertical"
|
|
|
|
android:orientation="horizontal"
|
|
|
|
android:visibility="gone"
|
|
|
|
tools:visibility="visible">
|
|
|
|
|
|
|
|
<ImageView
|
|
|
|
android:layout_width="27dp"
|
|
|
|
android:layout_height="35dp"
|
|
|
|
android:layout_marginEnd="4dp"
|
|
|
|
android:paddingStart="-4dp"
|
|
|
|
android:src="@drawable/ic_document_small" />
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/quote_attachment_name"
|
2022-05-26 17:32:52 -03:00
|
|
|
style="@style/Signal.Text.BodyMedium"
|
2021-05-03 11:34:41 -03:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:ellipsize="end"
|
|
|
|
android:maxLines="1"
|
|
|
|
android:textColor="@color/core_grey_90"
|
|
|
|
tools:text="The-Amazing-Spider-Man.cba" />
|
|
|
|
|
|
|
|
</LinearLayout>
|
2018-08-11 09:55:52 -04:00
|
|
|
|
|
|
|
<TextView
|
2021-05-03 11:34:41 -03:00
|
|
|
android:id="@+id/media_type"
|
|
|
|
android:layout_width="wrap_content"
|
2018-08-11 09:55:52 -04:00
|
|
|
android:layout_height="wrap_content"
|
2021-05-03 11:34:41 -03:00
|
|
|
android:layout_marginEnd="8dp"
|
|
|
|
android:paddingTop="4dp"
|
2022-05-26 17:32:52 -03:00
|
|
|
android:textAppearance="@style/Signal.Text.BodyMedium"
|
2022-03-23 10:18:56 -04:00
|
|
|
android:textColor="@color/core_black"
|
2022-05-26 17:32:52 -03:00
|
|
|
android:textSize="14sp"
|
2021-05-03 11:34:41 -03:00
|
|
|
android:visibility="gone"
|
|
|
|
tools:text="Photo"
|
|
|
|
tools:visibility="visible" />
|
|
|
|
|
|
|
|
<org.thoughtcrime.securesms.components.emoji.EmojiTextView
|
|
|
|
android:id="@+id/quote_text"
|
2022-05-26 17:32:52 -03:00
|
|
|
style="@style/Signal.Text.BodyMedium"
|
2021-05-03 11:34:41 -03:00
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
2018-08-11 09:55:52 -04:00
|
|
|
android:ellipsize="end"
|
2021-05-03 11:34:41 -03:00
|
|
|
android:maxLines="2"
|
|
|
|
app:emoji_renderMentions="false"
|
|
|
|
tools:text="With great power comes great responsibility."
|
|
|
|
tools:visibility="visible" />
|
2018-08-11 09:55:52 -04:00
|
|
|
|
|
|
|
</LinearLayout>
|
2018-04-02 16:17:32 -07:00
|
|
|
|
2022-04-07 19:51:35 -04:00
|
|
|
<org.thoughtcrime.securesms.components.emoji.EmojiImageView
|
|
|
|
android:id="@+id/quote_missing_story_reaction_emoji"
|
|
|
|
android:layout_width="32dp"
|
|
|
|
android:layout_height="32dp"
|
2022-05-26 17:32:52 -03:00
|
|
|
android:layout_gravity="center_vertical"
|
2022-04-07 19:51:35 -04:00
|
|
|
android:layout_marginStart="12dp"
|
|
|
|
android:layout_marginEnd="8dp"
|
|
|
|
android:visibility="gone"
|
|
|
|
tools:src="@drawable/ic_emoji"
|
|
|
|
tools:visibility="visible" />
|
|
|
|
|
2021-05-03 11:34:41 -03:00
|
|
|
<FrameLayout
|
2018-08-11 09:55:52 -04:00
|
|
|
android:layout_width="wrap_content"
|
2022-05-26 17:32:52 -03:00
|
|
|
android:layout_height="match_parent"
|
|
|
|
android:background="@color/white">
|
2018-04-02 16:17:32 -07:00
|
|
|
|
2022-05-16 10:59:20 -03:00
|
|
|
<com.google.android.material.imageview.ShapeableImageView
|
2021-05-03 11:34:41 -03:00
|
|
|
android:id="@+id/quote_thumbnail"
|
|
|
|
android:layout_width="@dimen/quote_thumb_size"
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
android:scaleType="centerCrop"
|
|
|
|
android:visibility="gone"
|
2022-04-07 19:51:35 -04:00
|
|
|
tools:visibility="visible" />
|
2021-05-03 11:34:41 -03:00
|
|
|
|
|
|
|
<FrameLayout
|
|
|
|
android:id="@+id/quote_video_overlay"
|
|
|
|
android:layout_width="32dp"
|
|
|
|
android:layout_height="32dp"
|
|
|
|
android:layout_gravity="center"
|
|
|
|
android:background="@drawable/circle_white"
|
|
|
|
android:longClickable="false"
|
|
|
|
android:visibility="gone"
|
|
|
|
tools:visibility="visible">
|
|
|
|
|
|
|
|
<androidx.appcompat.widget.AppCompatImageView
|
|
|
|
android:layout_width="13dp"
|
|
|
|
android:layout_height="16dp"
|
2021-10-06 13:39:22 -03:00
|
|
|
android:layout_gravity="center_horizontal"
|
2022-05-26 17:32:52 -03:00
|
|
|
android:layout_marginTop="8dp"
|
2021-05-03 11:34:41 -03:00
|
|
|
android:scaleType="fitXY"
|
|
|
|
android:tint="@color/core_ultramarine"
|
2021-10-06 13:39:22 -03:00
|
|
|
app:srcCompat="@drawable/exo_icon_play" />
|
2021-05-03 11:34:41 -03:00
|
|
|
|
|
|
|
</FrameLayout>
|
2018-08-11 09:55:52 -04:00
|
|
|
|
|
|
|
</FrameLayout>
|
|
|
|
|
2021-05-03 11:34:41 -03:00
|
|
|
</LinearLayout>
|
2018-07-18 13:53:50 -07:00
|
|
|
|
2021-05-03 11:34:41 -03:00
|
|
|
<LinearLayout
|
|
|
|
android:id="@+id/quote_missing_footer"
|
2018-08-11 09:55:52 -04:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
2021-05-03 11:34:41 -03:00
|
|
|
android:orientation="horizontal"
|
|
|
|
android:padding="8dp"
|
|
|
|
android:visibility="gone"
|
|
|
|
tools:visibility="visible">
|
2018-07-18 13:53:50 -07:00
|
|
|
|
2021-05-03 11:34:41 -03:00
|
|
|
<androidx.appcompat.widget.AppCompatImageView
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginEnd="8dp"
|
|
|
|
android:src="@drawable/ic_broken_link"
|
|
|
|
android:tint="@color/quote_missing_icon_color" />
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/quote_missing_text"
|
2022-05-26 17:32:52 -03:00
|
|
|
style="@style/Signal.Text.MaterialCaption"
|
2021-05-03 11:34:41 -03:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:text="@string/QuoteView_original_missing"
|
|
|
|
android:textColor="@color/core_grey_90" />
|
2018-07-18 13:53:50 -07:00
|
|
|
|
2021-05-03 11:34:41 -03:00
|
|
|
</LinearLayout>
|
2018-07-18 13:53:50 -07:00
|
|
|
|
2021-05-03 11:34:41 -03:00
|
|
|
|
|
|
|
</LinearLayout>
|
2018-07-18 13:53:50 -07:00
|
|
|
</LinearLayout>
|
|
|
|
|
2022-04-07 19:51:35 -04:00
|
|
|
<org.thoughtcrime.securesms.components.emoji.EmojiImageView
|
|
|
|
android:id="@+id/quote_story_reaction_emoji"
|
|
|
|
android:layout_width="32dp"
|
|
|
|
android:layout_height="32dp"
|
|
|
|
android:layout_gravity="bottom|end"
|
2022-05-26 17:32:52 -03:00
|
|
|
android:layout_marginEnd="@dimen/quote_story_emoji_margin"
|
|
|
|
android:visibility="gone"
|
2022-04-07 19:51:35 -04:00
|
|
|
tools:src="@drawable/ic_emoji"
|
|
|
|
tools:visibility="visible" />
|
2021-05-03 11:34:41 -03:00
|
|
|
|
2020-11-09 09:12:28 -05:00
|
|
|
<androidx.appcompat.widget.AppCompatImageView
|
2018-07-18 13:53:50 -07:00
|
|
|
android:id="@+id/quote_dismiss"
|
2022-05-26 17:32:52 -03:00
|
|
|
android:layout_width="48dp"
|
|
|
|
android:layout_height="48dp"
|
2018-07-18 13:53:50 -07:00
|
|
|
android:layout_gravity="top|end"
|
|
|
|
android:background="@drawable/dismiss_background"
|
2022-05-26 17:32:52 -03:00
|
|
|
app:srcCompat="@drawable/ic_x_20"
|
|
|
|
app:tint="@color/signal_colorOnSurface" />
|
2018-02-07 14:01:37 -08:00
|
|
|
|
|
|
|
</merge>
|