title: How to blur background of an widget icon in android?
body: <p>I am trying to add a blur effect on the widget icon's background, so that the widget icon can have a blurry background. Googled a lot, but can't come up with definite answer. Can anyone please suggest me ways how to do it with a referral link? Thanks for any kind of help.</p>
  
  <p>Here is the XML code I am using for my widget.</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
      android:layout_width="fill_parent"
      android:layout_height="wrap_content"
      android:orientation="vertical" 
      android:layout_gravity="center"&gt;
  
      &lt;ImageView
          android:id="@+id/toggle"
          android:contentDescription="@string/content"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:src="@drawable/offw" /&gt;
  
  
  &lt;/LinearLayout&gt;
  </code></pre>
  
  <p>And here is the code of app_widget provider</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;appwidget-provider xmlns:android="http://schemas.android.com/apk/res/android" 
      android:widgetCategory="keyguard|home_screen"
      android:minWidth="36dip"
      android:minHeight="36dip"
      android:updatePeriodMillis="86400000"
      android:initialLayout="@layout/main"
  
  /&gt;
  </code></pre>