wasabeef / Blurry

Blurry is an easy blur library for Android
Apache License 2.0
5.57k stars 602 forks source link

LinearLayout Blur Problem #32

Open nihasmata opened 8 years ago

nihasmata commented 8 years ago

Hi, My root view is a linear layout.When apply blur effect for this layout like below, it is not working

       Blurry.with(MainFragmentActivity.this)
                            .radius(25)
                            .sampling(2)
                            .async()
                            .animate(500)
                            .onto((ViewGroup) findViewById(R.id.content));

But when i changed root view type as RelativeLayout, it is working.How to apply blur effect for LinearLayout ?

Gregliest commented 7 years ago

I'm not sure that this is possible given the current architecture. This library works by taking a screenshot, blurring it, then adding the blurred screenshot to the ViewGroup. With a LinearLayout, the screenshot will be appended to the view, not overlaid. The documentation should probably be updated.