Blur linear layout background
<p>In my app I have a <code>LinearLayout</code> which is transparent and it is attached to <code>WindowManager</code> .I want to make that <code>LinearLayout</code>  <code>Blur</code> so that everything behind the <code>LinearLayout</code> will look blurred.I had gone through various sources from that I had got how to make a <code>ImageView</code> blur and I had done that successfully using <code>RenderScript Api</code> here is the code:</p>

<pre><code> private static final float BLUR_RADIUS = 25f;

    Bitmap outputBitmap = Bitmap.createBitmap(image);
    final RenderScript renderScript = RenderScript.create(this);
    Allocation tmpIn = Allocation.createFromBitmap(renderScript, image);
    Allocation tmpOut = Allocation.createFromBitmap(renderScript, outputBitmap);

    //Intrinsic Gausian blur filter
    ScriptIntrinsicBlur theIntrinsic = ScriptIntrinsicBlur.create(renderScript, Element.U8_4(renderScript));
    theIntrinsic.setRadius(BLUR_RADIUS);
    theIntrinsic.setInput(tmpIn);
    theIntrinsic.forEach(tmpOut);
    tmpOut.copyTo(outputBitmap);
    return outputBitmap;
}


and finally adding it with `ImageView`

    ImageView imageView=(ImageView)findViewById(image-id);
    Bitmap bitmap = BitmapFactory.decodeResource(getResources(), R.drawable.nature);
    Bitmap blurredBitmap = blur(bitmap);
    imageView.setImageBitmap(blurredBitmap);
</code></pre>

<p>but sadly it blurs <code>ImageView</code> only.Any solution for blurring a layout or modifiying the above code to use it with Layout.</p>

<p>Hi everyone I had got to know how to blur an <code>ImageView</code> successfully but how can I blur an transparent LinearLayout.Is there any solution for this please help me</p>