Android background image quality
<p>I tried everything from post <a href="http://stackoverflow.com/questions/8417608/awful-background-image-quality-in-android">Awful background image quality in Android</a> but still same result.</p>

<p>Background quality s very low and it looks awful.</p>

<p>I added this in xml</p>

<pre><code> &lt;?xml version="1.0" encoding="utf-8"?&gt;
&lt;bitmap xmlns:android="http://schemas.android.com/apk/res/android"
    android:antialias="true"
    android:dither="true"
    android:src="@drawable/ve_background" &gt;

&lt;/bitmap&gt;
</code></pre>

<p>and in source  added</p>

<pre><code>    getWindow().setFormat(PixelFormat.RGBA_8888);
getWindow().addFlags(WindowManager.LayoutParams.FLAG_DITHER);
</code></pre>

<p>and tried with this also</p>

<pre><code>BitmapFactory.Options options = new BitmapFactory.Options();
options.inPreferredConfig = Bitmap.Config.ARGB_8888;
Bitmap gradient = BitmapFactory.decodeResource(getResources(), R.drawable.ve_background, options);

findViewById(R.id.layout).setBackgroundDrawable(new BitmapDrawable(gradient));
</code></pre>

<p>but nothing is working</p>
