Skip to content

Instantly share code, notes, and snippets.

@svenbioinf
svenbioinf / gist:1fc1e81f5f3325e266b139b7e7f9d603
Created March 12, 2024 09:44
Fixed image position and stop re-scaling. Kotlin, Android Studio
#xml file
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent">
<ImageView
android:id="@+id/backgroundImageView"
android:layout_width="match_parent"
android:layout_height="match_parent"