I am trying to add a background that includes a gradient (I want to use an image, not android xml, the declared gradient effect).
This image is remarkably corrupted by Android, it adds a bit of crap range, no matter what I try, the result is the same (two captures of approximately the same area of ββdistorted / normal images):


My image is used as the layout background inside my XML layout:
android:background="@drawable/background_gradient_dithered"
I tried to use intermediate stamina to force smoothing, whose xml:
<?xml version="1.0" encoding="utf-8"?> <bitmap xmlns:android="http://schemas.android.com/apk/res/android" android:src="@drawable/background_gradient" android:dither="true" android:antialias="true" android:filter="true"/>
I tried using the following code in my onCreate ():
getWindow().setFormat(PixelFormat.RGBA_8888);
Both have not changed anything.
thanks
Aster source share