2019-01-15 00:41:05 -08:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
|
|
|
<merge
|
|
|
|
xmlns:android="http://schemas.android.com/apk/res/android"
|
|
|
|
xmlns:tools="http://schemas.android.com/tools"
|
|
|
|
xmlns:app="http://schemas.android.com/apk/res-auto">
|
|
|
|
|
2020-08-19 10:06:26 +10:00
|
|
|
<androidx.constraintlayout.widget.ConstraintLayout
|
2019-01-15 00:41:05 -08:00
|
|
|
android:id="@+id/linkpreview_container"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
2020-01-13 15:29:06 +11:00
|
|
|
android:padding="@dimen/small_spacing"
|
2019-01-15 00:41:05 -08:00
|
|
|
android:background="?linkpreview_background_color">
|
|
|
|
|
|
|
|
<org.thoughtcrime.securesms.components.OutlinedThumbnailView
|
|
|
|
android:id="@+id/linkpreview_thumbnail"
|
|
|
|
android:layout_width="72dp"
|
|
|
|
android:layout_height="0dp"
|
|
|
|
android:scaleType="centerCrop"
|
|
|
|
android:visibility="gone"
|
|
|
|
app:layout_constraintBottom_toTopOf="@+id/linkpreview_divider"
|
|
|
|
app:layout_constraintHeight_min="72dp"
|
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
|
|
app:layout_constraintTop_toTopOf="@+id/linkpreview_title"
|
|
|
|
tools:src="@drawable/ic_contact_picture"
|
|
|
|
tools:visibility="visible" />
|
|
|
|
|
|
|
|
<org.thoughtcrime.securesms.components.emoji.EmojiTextView
|
|
|
|
android:id="@+id/linkpreview_title"
|
|
|
|
style="@style/Signal.Text.Body"
|
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginStart="8dp"
|
|
|
|
android:layout_marginEnd="8dp"
|
|
|
|
android:ellipsize="end"
|
|
|
|
android:fontFamily="sans-serif-medium"
|
2020-01-14 11:13:23 +11:00
|
|
|
android:maxLines="1"
|
2020-01-13 15:29:06 +11:00
|
|
|
android:textSize="@dimen/medium_font_size"
|
2019-01-15 00:41:05 -08:00
|
|
|
android:textColor="?linkpreview_primary_text_color"
|
|
|
|
app:layout_constraintEnd_toStartOf="@+id/linkpreview_close"
|
|
|
|
app:layout_constraintHorizontal_bias="0.0"
|
|
|
|
app:layout_constraintStart_toEndOf="@+id/linkpreview_thumbnail"
|
|
|
|
app:layout_constraintTop_toTopOf="parent"
|
|
|
|
tools:text="Wall Crawler Strikes Again!" />
|
|
|
|
|
|
|
|
<org.thoughtcrime.securesms.components.emoji.EmojiTextView
|
|
|
|
android:id="@+id/linkpreview_site"
|
|
|
|
style="@style/Signal.Text.Caption"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginStart="8dp"
|
|
|
|
android:layout_marginTop="2dp"
|
2020-01-13 15:29:06 +11:00
|
|
|
android:maxLines="1"
|
2020-01-13 16:47:50 +11:00
|
|
|
android:textSize="@dimen/small_font_size"
|
2019-01-15 00:41:05 -08:00
|
|
|
android:textColor="?linkpreview_secondary_text_color"
|
2020-01-13 15:29:06 +11:00
|
|
|
android:alpha="0.6"
|
2019-01-15 00:41:05 -08:00
|
|
|
app:layout_constraintStart_toEndOf="@+id/linkpreview_thumbnail"
|
|
|
|
app:layout_constraintTop_toBottomOf="@+id/linkpreview_title"
|
|
|
|
tools:text="dailybugle.com" />
|
|
|
|
|
|
|
|
<View
|
|
|
|
android:id="@+id/linkpreview_divider"
|
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_height="1dp"
|
|
|
|
android:layout_marginStart="8dp"
|
|
|
|
android:layout_marginTop="6dp"
|
|
|
|
android:background="?linkpreview_divider_color"
|
|
|
|
android:visibility="gone"
|
|
|
|
app:layout_constraintBottom_toBottomOf="@+id/linkpreview_thumbnail"
|
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
app:layout_constraintStart_toEndOf="@+id/linkpreview_thumbnail"
|
|
|
|
app:layout_constraintTop_toBottomOf="@+id/linkpreview_site"
|
|
|
|
app:layout_constraintVertical_bias="0.0"
|
|
|
|
tools:visibility="visible" />
|
|
|
|
|
|
|
|
<ImageView
|
|
|
|
android:id="@+id/linkpreview_close"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginEnd="6dp"
|
|
|
|
android:layout_marginTop="4dp"
|
|
|
|
android:src="@drawable/ic_close_white_18dp"
|
|
|
|
android:tint="@color/gray70"
|
|
|
|
android:visibility="gone"
|
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
app:layout_constraintTop_toTopOf="parent"
|
|
|
|
tools:visibility="visible" />
|
|
|
|
|
2020-01-13 15:29:06 +11:00
|
|
|
<com.github.ybq.android.spinkit.SpinKitView
|
|
|
|
style="@style/SpinKitView.DoubleBounce"
|
2019-01-15 00:41:05 -08:00
|
|
|
android:id="@+id/linkpreview_progress_wheel"
|
2020-01-13 15:29:06 +11:00
|
|
|
android:layout_width="72dp"
|
2019-01-15 00:41:05 -08:00
|
|
|
android:layout_height="72dp"
|
2020-01-13 15:29:06 +11:00
|
|
|
android:layout_gravity="center"
|
|
|
|
android:padding="@dimen/small_spacing"
|
|
|
|
app:SpinKit_Color="@color/text"
|
2019-01-15 00:41:05 -08:00
|
|
|
android:visibility="gone"
|
|
|
|
app:layout_constraintBottom_toTopOf="@+id/linkpreview_divider"
|
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
2020-01-13 15:29:06 +11:00
|
|
|
app:layout_constraintTop_toTopOf="parent" />
|
2019-01-15 00:41:05 -08:00
|
|
|
|
2020-08-19 10:06:26 +10:00
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
2019-01-15 00:41:05 -08:00
|
|
|
|
|
|
|
</merge>
|