Open Peterragheb opened 4 years ago
call blurLayout.startBlur(); blurLayout.lockView(); in onStart function will solve your problem.
It works only if the screen is not scrollable.
If I use it in a scrollview it causes the app to crash with the following exception:
java.lang.IllegalArgumentException: y + height must be <= bitmap.height()
I fixed this calling an invalidate right after my image is loaded (i'm using a dynamic image retrieved by Picasso) and it working well to me
I'm also having this same issue in a coordinatorlayout. The middle right of the screen is not blurred
This will pause the blur after 300ms and it should blur the whole width of the screen
new Handler().postDelayed(() -> {
blurLayout.setFPS(0);
blurLayout.lockView();
blurLayout.invalidate();
}, 300);
Blurkit doesn't blur the whole width of screen in constraint layout. the last portion of the screen on the right is not blurred.And changing the blur radius doesn't affect it.
Here is a screenshot: