Android background image quality -
i tried post awful background image quality in android still same result.
background quality s low , looks awful.
i added in xml
<?xml version="1.0" encoding="utf-8"?> <bitmap xmlns:android="http://schemas.android.com/apk/res/android" android:antialias="true" android:dither="true" android:src="@drawable/ve_background" > </bitmap>
and in source added
getwindow().setformat(pixelformat.rgba_8888); getwindow().addflags(windowmanager.layoutparams.flag_dither);
and tried also
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));
but nothing working
Comments
Post a Comment