(android) How can I make each list items blurred?
<p>I'm using this library to blur a view (<a href="https://github.com/Dimezis/BlurView/blob/master/app/src/main/res/values/colors.xml" rel="nofollow noreferrer">https://github.com/Dimezis/BlurView/blob/master/app/src/main/res/values/colors.xml</a>). </p>

<p>This library has the custsom view, the 'BlurView' and it blurs all underlying views dynamically even when the background image changes. It worked pretty well.  </p>

<p>I wanted to implement it for my RecyclerView so that each item's background can blur the background of the activity. 
But the result came out like this: 
<a href="https://i.stack.imgur.com/sdjkx.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/sdjkx.png" alt="enter image description here"></a></p>

<p>I think this library took a snapshot of the app screen and blurred it. You can see the Toolbar is blurred altogether. 
I want this blur effect to be dynamic so that it can blur the background real time when the user scrolls up and down. It worked fine as a single view but not as a list item.  </p>

<p>Here's my code. </p>

<p><strong>MainActivity.java</strong></p>

<pre><code>ListView listView = (ListView) findViewById(R.id.listview);
    PlanListAdapter adapter = new PlanListAdapter(this, getWindow().getDecorView(),new String[]{"Cookie", "Pie", "Banana split", "Peanut butter"});
    listView.setAdapter(adapter);
</code></pre>

<p><strong>PlanListAdapter.java</strong></p>

<pre><code>public class PlanListAdapter extends ArrayAdapter {


    private String[] titles;
    private Context context;
    private View decorView;

    public PlanListAdapter(Context context, View decorView, String[] names) {
        super(context, -1);
        this.context = context;
        this.titles = names;
        this.decorView = decorView;
    }

    @NonNull
    @Override
    public View getView(int position, View convertView, ViewGroup parent) {

        View rootView = parent.getRootView();
        View itemView = LayoutInflater.from(context).inflate(R.layout.layout_planitem, null, false);
        BlurView blurView = (BlurView) itemView.findViewById(R.id.blur_item);
        blurView.setupWith(rootView)
                .windowBackground(decorView.getBackground())
                .blurAlgorithm(new RenderScriptBlur(context, true))
                .blurRadius(24f);

        return itemView;
    }

    @Override
    public int getCount() {
        return titles.length;
    }
}
</code></pre>