Add checkerboard background to the images in the image view
All checks were successful
continuous-integration/drone/pr Build is passing

A checkerboard is drawn beneath the image in the imageview to allow
a simpler viewing of images with transparency
This commit is contained in:
2022-11-03 23:16:48 +01:00
parent b02a588dff
commit c09a32e9ad
2 changed files with 20 additions and 9 deletions

View File

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<androidx.coordinatorlayout.widget.CoordinatorLayout xmlns:android="http://schemas.android.com/apk/res/android"
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_height="match_parent">
@ -9,7 +9,8 @@
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_centerVertical="true"
android:layout_centerHorizontal="true"
android:adjustViewBounds="true"
android:background="?attr/colorOnBackground"
app:srcCompat="@android:drawable/screen_background_dark" />
</androidx.coordinatorlayout.widget.CoordinatorLayout>
</RelativeLayout>