2018-02-07 22:01:37 +00:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
2018-04-02 23:17:32 +00:00
|
|
|
<merge
|
|
|
|
xmlns:android="http://schemas.android.com/apk/res/android"
|
|
|
|
xmlns:tools="http://schemas.android.com/tools"
|
2018-06-26 17:27:44 +00:00
|
|
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
2018-04-02 23:17:32 +00:00
|
|
|
android:id="@+id/quote_container"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:visibility="gone"
|
|
|
|
android:layout_margin="3dp"
|
|
|
|
tools:visibility="visible">
|
2018-02-07 22:01:37 +00:00
|
|
|
|
2018-07-18 20:53:50 +00:00
|
|
|
<LinearLayout
|
2018-04-02 23:17:32 +00:00
|
|
|
android:layout_width="match_parent"
|
2018-07-18 20:53:50 +00:00
|
|
|
android:layout_height="wrap_content"
|
2018-08-11 13:55:52 +00:00
|
|
|
android:orientation="vertical">
|
2018-02-07 22:01:37 +00:00
|
|
|
|
2018-04-02 23:17:32 +00:00
|
|
|
<LinearLayout
|
2018-08-11 13:55:52 +00:00
|
|
|
android:id="@+id/quote_main"
|
|
|
|
android:layout_width="match_parent"
|
2018-04-02 23:17:32 +00:00
|
|
|
android:layout_height="wrap_content"
|
2018-08-11 13:55:52 +00:00
|
|
|
android:orientation="horizontal">
|
|
|
|
|
|
|
|
<ImageView
|
|
|
|
android:id="@+id/quote_bar"
|
2020-01-15 01:20:10 +00:00
|
|
|
android:layout_width="@dimen/accent_line_thickness"
|
2018-08-11 13:55:52 +00:00
|
|
|
android:layout_height="match_parent"
|
|
|
|
android:src="@color/white"
|
|
|
|
tools:tint="@color/purple_400" />
|
2018-02-07 22:01:37 +00:00
|
|
|
|
2018-04-02 23:17:32 +00:00
|
|
|
<LinearLayout
|
2018-08-11 13:55:52 +00:00
|
|
|
android:layout_width="0dp"
|
2018-04-02 23:17:32 +00:00
|
|
|
android:layout_height="wrap_content"
|
2018-08-11 13:55:52 +00:00
|
|
|
android:layout_marginStart="8dp"
|
|
|
|
android:layout_marginEnd="8dp"
|
|
|
|
android:layout_marginTop="8dp"
|
|
|
|
android:layout_marginBottom="8dp"
|
|
|
|
android:orientation="vertical"
|
|
|
|
android:layout_weight="1">
|
|
|
|
|
|
|
|
<org.thoughtcrime.securesms.components.emoji.EmojiTextView
|
|
|
|
android:id="@+id/quote_author"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
style="@style/Signal.Text.Caption"
|
2020-01-15 01:20:10 +00:00
|
|
|
android:textColor="@color/text"
|
|
|
|
android:fontFamily="sans-serif-medium"
|
|
|
|
android:textSize="@dimen/small_font_size"
|
2018-08-11 13:55:52 +00:00
|
|
|
android:maxLines="1"
|
|
|
|
android:ellipsize="end"
|
|
|
|
tools:text="Peter Parker" />
|
2018-06-26 17:27:44 +00:00
|
|
|
|
2018-08-11 13:55:52 +00:00
|
|
|
<LinearLayout
|
|
|
|
android:id="@+id/quote_attachment_container"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginBottom="2dp"
|
|
|
|
android:orientation="horizontal"
|
|
|
|
android:gravity="center_vertical"
|
|
|
|
android:visibility="gone"
|
|
|
|
tools:visibility="visible">
|
|
|
|
|
|
|
|
<ImageView
|
|
|
|
android:layout_width="27dp"
|
|
|
|
android:layout_height="35dp"
|
|
|
|
android:layout_marginEnd="4dp"
|
|
|
|
android:paddingStart="-4dp"
|
|
|
|
android:src="?attr/attachment_document_icon_small" />
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/quote_attachment_name"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
style="@style/Signal.Text.Body"
|
2020-01-15 01:20:10 +00:00
|
|
|
android:textColor="@color/text"
|
|
|
|
android:textSize="@dimen/medium_font_size"
|
2018-08-11 13:55:52 +00:00
|
|
|
android:maxLines="1"
|
|
|
|
android:ellipsize="end"
|
|
|
|
tools:text="The-Amazing-Spider-Man.cba" />
|
|
|
|
|
|
|
|
</LinearLayout>
|
2018-04-02 23:17:32 +00:00
|
|
|
|
|
|
|
<TextView
|
2018-08-11 13:55:52 +00:00
|
|
|
android:id="@+id/media_type"
|
|
|
|
android:layout_width="wrap_content"
|
2018-04-02 23:17:32 +00:00
|
|
|
android:layout_height="wrap_content"
|
2019-03-20 22:52:14 +00:00
|
|
|
android:layout_marginEnd="8dp"
|
2018-08-11 13:55:52 +00:00
|
|
|
style="@style/Signal.Text.Caption"
|
2018-09-21 22:16:52 +00:00
|
|
|
android:textColor="@color/core_grey_90"
|
2018-08-11 13:55:52 +00:00
|
|
|
android:paddingTop="4dp"
|
|
|
|
android:textStyle="italic"
|
|
|
|
android:visibility="gone"
|
|
|
|
tools:text="Photo"
|
|
|
|
tools:visibility="visible" />
|
|
|
|
|
|
|
|
<org.thoughtcrime.securesms.components.emoji.EmojiTextView
|
|
|
|
android:id="@+id/quote_text"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
2020-01-15 01:20:10 +00:00
|
|
|
android:layout_marginTop="4dp"
|
2018-08-11 13:55:52 +00:00
|
|
|
style="@style/Signal.Text.Body"
|
2018-04-02 23:17:32 +00:00
|
|
|
android:ellipsize="end"
|
2018-08-11 13:55:52 +00:00
|
|
|
android:maxLines="2"
|
|
|
|
tools:text="With great power comes great responsibility."
|
|
|
|
tools:visibility="visible" />
|
2018-04-02 23:17:32 +00:00
|
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
2018-08-11 13:55:52 +00:00
|
|
|
<FrameLayout
|
2018-07-18 20:53:50 +00:00
|
|
|
android:layout_width="wrap_content"
|
2018-08-11 13:55:52 +00:00
|
|
|
android:layout_height="match_parent">
|
2018-04-02 23:17:32 +00:00
|
|
|
|
2018-08-11 13:55:52 +00:00
|
|
|
<ImageView
|
|
|
|
android:id="@+id/quote_thumbnail"
|
|
|
|
android:layout_width="60dp"
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
android:scaleType="centerCrop"
|
|
|
|
android:visibility="gone"
|
|
|
|
tools:visibility="gone" />
|
|
|
|
|
|
|
|
<FrameLayout
|
|
|
|
android:id="@+id/quote_video_overlay"
|
|
|
|
android:layout_width="32dp"
|
|
|
|
android:layout_height="32dp"
|
|
|
|
android:background="@drawable/circle_white"
|
|
|
|
android:layout_gravity="center"
|
|
|
|
android:longClickable="false"
|
|
|
|
android:visibility="gone"
|
|
|
|
tools:visibility="visible">
|
|
|
|
|
|
|
|
<ImageView
|
|
|
|
android:layout_width="13dp"
|
|
|
|
android:layout_height="16dp"
|
|
|
|
android:layout_marginStart="11dp"
|
|
|
|
android:layout_marginTop="8dp"
|
|
|
|
android:tint="@color/core_blue"
|
|
|
|
android:scaleType="fitXY"
|
|
|
|
app:srcCompat="@drawable/triangle_right" />
|
|
|
|
|
|
|
|
</FrameLayout>
|
|
|
|
|
|
|
|
</FrameLayout>
|
2018-02-07 22:01:37 +00:00
|
|
|
|
2018-04-02 23:17:32 +00:00
|
|
|
</LinearLayout>
|
|
|
|
|
2018-08-11 13:55:52 +00:00
|
|
|
<LinearLayout
|
|
|
|
android:id="@+id/quote_missing_footer"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:orientation="horizontal"
|
|
|
|
android:padding="8dp"
|
|
|
|
android:visibility="gone"
|
|
|
|
tools:visibility="visible">
|
2018-07-18 20:53:50 +00:00
|
|
|
|
|
|
|
<ImageView
|
2018-08-11 13:55:52 +00:00
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginEnd="8dp"
|
|
|
|
android:src="@drawable/ic_broken_link"
|
2020-01-15 01:20:10 +00:00
|
|
|
android:tint="@color/text"/>
|
2018-07-18 20:53:50 +00:00
|
|
|
|
2018-08-11 13:55:52 +00:00
|
|
|
<TextView
|
|
|
|
android:id="@+id/quote_missing_text"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
style="@style/Signal.Text.Caption"
|
|
|
|
android:text="@string/QuoteView_original_missing"
|
2020-01-15 01:20:10 +00:00
|
|
|
android:textColor="@color/text"/>
|
2018-07-18 20:53:50 +00:00
|
|
|
|
2018-08-11 13:55:52 +00:00
|
|
|
</LinearLayout>
|
2018-07-18 20:53:50 +00:00
|
|
|
|
|
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
<ImageView
|
|
|
|
android:id="@+id/quote_dismiss"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
2019-01-15 08:41:05 +00:00
|
|
|
android:layout_marginEnd="6dp"
|
|
|
|
android:layout_marginTop="6dp"
|
2018-07-18 20:53:50 +00:00
|
|
|
android:layout_gravity="top|end"
|
|
|
|
android:background="@drawable/dismiss_background"
|
|
|
|
android:src="@drawable/ic_close_white_18dp"
|
2020-01-15 01:20:10 +00:00
|
|
|
android:tint="#99FFFFFF" />
|
2018-02-07 22:01:37 +00:00
|
|
|
|
|
|
|
</merge>
|