Merge pull request 'Add an outline around media' (#1174) from 0xd9a/Fedilab:media_borders into develop

Reviewed-on: https://codeberg.org/tom79/Fedilab/pulls/1174
This commit is contained in:
Thomas 2025-04-12 08:50:30 +00:00
commit 6d5dbb2585
2 changed files with 7 additions and 1 deletions

View file

@ -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

View file

@ -273,5 +273,8 @@
<item name="android:insetBottom">0dp</item>
</style>
<style name="ShapeAppearanceOverlay.Fedilab.DrawerMedia" parent="">
<item name="cornerSize">6dp</item>
</style>
</resources>