-
-
Notifications
You must be signed in to change notification settings - Fork 331
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
BlurView is not blurring well enough text and some images #219
Comments
What content root do you pass to the BlurView? |
I'm doing it like this
And I'm doing it in BottomSheetDialogFragment. So basically rootView of a parent fragment. I didn't try it with activity's decorView |
@Dimezis just tried to use |
What's the size and position of the BlurView? |
@Dimezis okay, I think it will be better to share an xml file with you ` <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
</androidx.constraintlayout.widget.ConstraintLayout>` This is the layout. And if you ask about animations - no. At least I'm not doing it manually. I mean the dialog itself is being animated when dragging, but it's controlled by BottomSheetDialogFragment, not my code. |
Don't know how to help you. Judging by the screenshot, the blur probably didn't get updated when you dragged the sheet.
|
I don't think that's the issue because it is blurring image in the middle of the screen. But the top part and the bottom part is not blurred |
The thing is that I noticed this issue not only in this case. Some time ago, I tried to put blur in the background of BottomNavigationView with a RecyclerView underneath it, and there were the same issue: some TextView's and ImageView's were not blurred at all |
The bottom part is not blurred because once again, you're passing the root that doesn't include the bottom bar. In any case, I can't help you without a repro sample |
Can you look into it, if I share access to the sample project? |
Sure |
So the issue is that somehow BlurView is not blurring properly some TextViews and images (ImageView). And I can not understand how to fix this. You can see that in the attached screenshot. As for the types of elements it's just TextView and ImagView, but the BottomNavigationView also contains lotties in some of the buttons and the background of it is ShapeDrawable.
I tried to look over the docs of the lib and samples and tried to use setFrameClearDrawable() with background of parentFragment rootView, but this didn't change nothing. Can you tell me what am I doing wrong and is there any way for fixing this?
The text was updated successfully, but these errors were encountered: