You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
private void setupBlurView() {
float radius = 10f;
View decorView = requireActivity().getWindow().getDecorView();
//ViewGroup you want to start blur from. Choose root as close to BlurView in hierarchy as possible.
ViewGroup rootView = (ViewGroup) decorView.findViewById(android.R.id.content);
//Set drawable to draw in the beginning of each blurred frame (Optional).
//Can be used in case your layout has a lot of transparent space and your content
//gets kinda lost after after blur is applied.
Drawable windowBackground = decorView.getBackground();
binding.blurView.setupWith(rootView)
.setFrameClearDrawable(windowBackground)
.setBlurAlgorithm(new RenderScriptBlur(requireContext()))
.setBlurRadius(radius)
.setBlurAutoUpdate(true)
.setHasFixedTransformationMatrix(true); // Or false if it's in a scrolling container or might be animated
}
The text was updated successfully, but these errors were encountered:
1.6.6
Android 10 (Huawei P20 Pro)
Simply put a progressbar under the blurView and after first cycle a sorta cut-out square will show up around the progressbar
The text was updated successfully, but these errors were encountered: