updating url preview to match new designs
This commit is contained in:
parent
f1d8b9e974
commit
952ceced05
|
@ -0,0 +1,23 @@
|
||||||
|
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
|
android:width="24dp"
|
||||||
|
android:height="24dp"
|
||||||
|
android:viewportWidth="24"
|
||||||
|
android:viewportHeight="24">
|
||||||
|
<path
|
||||||
|
android:fillAlpha="0.9"
|
||||||
|
android:fillColor="#E3E8F0"
|
||||||
|
android:pathData="M24,12C24,18.6274 18.6274,24 12,24C5.3726,24 0,18.6274 0,12C0,5.3726 5.3726,0 12,0C18.6274,0 24,5.3726 24,12Z"
|
||||||
|
android:strokeAlpha="0.9" />
|
||||||
|
<path
|
||||||
|
android:fillColor="#00000000"
|
||||||
|
android:pathData="M7.9998,7.9998L15.9998,15.9998"
|
||||||
|
android:strokeWidth="1.33333"
|
||||||
|
android:strokeColor="#737D8C"
|
||||||
|
android:strokeLineCap="round" />
|
||||||
|
<path
|
||||||
|
android:fillColor="#00000000"
|
||||||
|
android:pathData="M16.0005,7.9998L8.0006,15.9998"
|
||||||
|
android:strokeWidth="1.33333"
|
||||||
|
android:strokeColor="#737D8C"
|
||||||
|
android:strokeLineCap="round" />
|
||||||
|
</vector>
|
|
@ -7,83 +7,79 @@
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
tools:parentTag="androidx.constraintlayout.widget.ConstraintLayout">
|
tools:parentTag="androidx.constraintlayout.widget.ConstraintLayout">
|
||||||
|
|
||||||
<View
|
<com.google.android.material.card.MaterialCardView
|
||||||
android:id="@+id/url_preview_left_border"
|
android:layout_width="match_parent"
|
||||||
android:layout_width="2dp"
|
android:layout_height="match_parent"
|
||||||
android:layout_height="0dp"
|
app:cardCornerRadius="8dp">
|
||||||
android:background="?vctr_content_tertiary"
|
|
||||||
app:layout_constraintBottom_toBottomOf="parent"
|
|
||||||
app:layout_constraintStart_toStartOf="parent"
|
|
||||||
app:layout_constraintTop_toTopOf="parent" />
|
|
||||||
|
|
||||||
<TextView
|
<LinearLayout
|
||||||
android:id="@+id/url_preview_title"
|
android:layout_width="match_parent"
|
||||||
style="@style/Widget.Vector.TextView.Body"
|
android:layout_height="wrap_content"
|
||||||
android:layout_width="0dp"
|
android:orientation="vertical">
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:layout_marginStart="7dp"
|
|
||||||
android:ellipsize="end"
|
|
||||||
android:maxLines="2"
|
|
||||||
android:textColor="?vctr_content_primary"
|
|
||||||
android:textStyle="bold"
|
|
||||||
app:layout_constraintEnd_toStartOf="@id/url_preview_close"
|
|
||||||
app:layout_constraintStart_toStartOf="@id/url_preview_left_border"
|
|
||||||
app:layout_constraintTop_toTopOf="parent"
|
|
||||||
tools:text="Jo Malone denounces her former brand's John Boyega decision" />
|
|
||||||
|
|
||||||
<ImageView
|
<ImageView
|
||||||
android:id="@+id/url_preview_image"
|
android:id="@+id/url_preview_image"
|
||||||
android:layout_width="0dp"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="157dp"
|
android:layout_height="wrap_content"
|
||||||
android:layout_marginTop="16dp"
|
android:adjustViewBounds="true"
|
||||||
android:importantForAccessibility="no"
|
android:importantForAccessibility="no"
|
||||||
android:scaleType="fitStart"
|
android:scaleType="fitXY"
|
||||||
app:layout_constraintEnd_toEndOf="parent"
|
tools:src="@tools:sample/backgrounds/scenic" />
|
||||||
app:layout_constraintStart_toStartOf="@id/url_preview_title"
|
|
||||||
app:layout_constraintTop_toBottomOf="@id/url_preview_title"
|
|
||||||
tools:src="@tools:sample/backgrounds/scenic" />
|
|
||||||
|
|
||||||
<TextView
|
<TextView
|
||||||
android:id="@+id/url_preview_description"
|
android:id="@+id/url_preview_site"
|
||||||
style="@style/Widget.Vector.TextView.Body"
|
style="@style/Widget.Vector.TextView.Caption"
|
||||||
android:layout_width="0dp"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_marginStart="7dp"
|
android:layout_marginStart="8dp"
|
||||||
android:layout_marginTop="8dp"
|
android:layout_marginEnd="8dp"
|
||||||
android:ellipsize="end"
|
android:layout_marginTop="6dp"
|
||||||
android:maxLines="4"
|
android:ellipsize="end"
|
||||||
android:textColor="?vctr_content_secondary"
|
android:maxLines="1"
|
||||||
app:layout_constraintEnd_toEndOf="parent"
|
android:singleLine="true"
|
||||||
app:layout_constraintStart_toStartOf="@id/url_preview_left_border"
|
android:textColor="?vctr_content_secondary"
|
||||||
app:layout_constraintTop_toBottomOf="@id/url_preview_image"
|
tools:text="BBC News" />
|
||||||
tools:text="The British perfumer says removing actor John Boyega from his own advert was “utterly despicable”." />
|
|
||||||
|
|
||||||
<TextView
|
<TextView
|
||||||
android:id="@+id/url_preview_site"
|
android:id="@+id/url_preview_title"
|
||||||
style="@style/Widget.Vector.TextView.Body"
|
style="@style/Widget.Vector.TextView.Body.Medium"
|
||||||
android:layout_width="0dp"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_marginStart="7dp"
|
android:layout_marginStart="8dp"
|
||||||
android:layout_marginTop="4dp"
|
android:layout_marginEnd="8dp"
|
||||||
android:ellipsize="end"
|
android:layout_marginTop="4dp"
|
||||||
android:maxLines="1"
|
android:ellipsize="end"
|
||||||
android:singleLine="true"
|
android:maxLines="2"
|
||||||
android:textColor="?vctr_content_tertiary"
|
android:textColor="?vctr_content_primary"
|
||||||
app:layout_constraintEnd_toEndOf="parent"
|
android:textStyle="bold"
|
||||||
app:layout_constraintStart_toStartOf="@id/url_preview_left_border"
|
tools:text="Jo Malone denounces her former brand's John Boyega decision" />
|
||||||
app:layout_constraintTop_toBottomOf="@id/url_preview_description"
|
|
||||||
tools:text="BBC News" />
|
|
||||||
|
|
||||||
<ImageView
|
<TextView
|
||||||
android:id="@+id/url_preview_close"
|
android:id="@+id/url_preview_description"
|
||||||
android:layout_width="@dimen/layout_touch_size"
|
style="@style/Widget.Vector.TextView.Body"
|
||||||
android:layout_height="@dimen/layout_touch_size"
|
android:layout_width="match_parent"
|
||||||
android:contentDescription="@string/action_close"
|
android:layout_height="wrap_content"
|
||||||
android:scaleType="center"
|
android:layout_marginStart="8dp"
|
||||||
android:src="@drawable/ic_close_24dp"
|
android:layout_marginEnd="8dp"
|
||||||
app:layout_constraintEnd_toEndOf="parent"
|
android:layout_marginTop="4dp"
|
||||||
app:layout_constraintTop_toTopOf="parent"
|
android:layout_marginBottom="8dp"
|
||||||
app:tint="?vctr_content_secondary"
|
android:ellipsize="end"
|
||||||
tools:ignore="MissingPrefix" />
|
android:maxLines="2"
|
||||||
|
android:textColor="?vctr_content_secondary"
|
||||||
|
tools:text="The British perfumer says removing actor John Boyega from his own advert was “utterly despicable”." />
|
||||||
|
|
||||||
|
</LinearLayout>
|
||||||
|
|
||||||
|
<ImageView
|
||||||
|
android:id="@+id/url_preview_close"
|
||||||
|
android:layout_width="@dimen/layout_touch_size"
|
||||||
|
android:layout_height="@dimen/layout_touch_size"
|
||||||
|
android:layout_gravity="top|end"
|
||||||
|
android:contentDescription="@string/action_close"
|
||||||
|
android:scaleType="center"
|
||||||
|
android:src="@drawable/ic_close_with_circular_bg"
|
||||||
|
tools:ignore="MissingPrefix" />
|
||||||
|
|
||||||
|
</com.google.android.material.card.MaterialCardView>
|
||||||
|
|
||||||
</merge>
|
</merge>
|
Loading…
Reference in New Issue