Skip to content
Snippets Groups Projects
Commit fb932b29 authored by 0xd9a's avatar 0xd9a
Browse files

Add an outline around media

parent 1be12f1f
Branches
Tags
No related merge requests found
......@@ -6,7 +6,7 @@
android:layout_width="match_parent"
android:layout_height="match_parent">
<androidx.appcompat.widget.AppCompatImageView
<com.google.android.material.imageview.ShapeableImageView
android:id="@+id/media"
android:adjustViewBounds="true"
android:layout_height="match_parent"
......@@ -16,6 +16,9 @@
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
app:shapeAppearanceOverlay="@style/ShapeAppearanceOverlay.Fedilab.DrawerMedia"
app:strokeColor="?colorOutline"
app:strokeWidth="1dp"
tools:ignore="ContentDescription" />
<androidx.media3.ui.PlayerView
......
......@@ -273,5 +273,8 @@
<item name="android:insetBottom">0dp</item>
</style>
<style name="ShapeAppearanceOverlay.Fedilab.DrawerMedia" parent="">
<item name="cornerSize">6dp</item>
</style>
</resources>
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment