I used this to give a blur effect to my text, you can change it to your preference, play with opacity:
<?xml version="1.0" encoding="utf-8"?> <shape xmlns:android="http://schemas.android.com/apk/res/android" android:shape="rectangle"> <gradient android:centerColor="#33FFFFFF" android:endColor="#33FFFFFF" android:gradientRadius="270" android:startColor="#33FFFFFF" android:type="radial" /> <corners android:bottomLeftRadius="25dp" android:bottomRightRadius="25dp" android:topLeftRadius="25dp" android:topRightRadius="25dp" /> </shape>
alternatively, you may be interested in this or this
As another alternative, you can use a small blur bitmap and repeat it:
<xml version="1.0" encoding="utf-8"?> <LinearLayout android:id="@+id/MainLayout" xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height="fill_parent" android:orientation="vertical" android:background="@drawable/backrepeat" >
Then prepare:
<bitmap xmlns:android="http://schemas.android.com/apk/res/android" android:src="@drawable/back" android:tileMode="repeat" />
source share