I have set ImageView as background for my Activity layout like this
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent">
<ImageView
android:id="@+id/backgroundImage"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:scaleType="centerCrop"
android:src="@drawable/default_bg_welcome"
tools:ignore="ContentDescription"/>
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="match_parent">
<!-- My content -->
</RelativeLayout>
</RelativeLayout>
Works great for API <23, but somehow on Android 6.0, the background shows as white. Removed any theme for the activity in Manifest, still the same. Has anybody had this issue? Any ideas what might have gone wrong?