-
-
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
Add fading effect in blurview top and remove flickering when view is passed through it. #215
Comments
You should be able to do it with a custom BlurAlgorithm |
@Dimezis Do you have any example or idea to proceed with this? Actually what I want is that when any text or view passed through BlurView then it should show a shadowlayer on top. Just like attached image. |
Subclass the BlurView and draw a transparent gradient mask in draw() to fade the top edge |
@Dimezis Are you aware about any library with this solution? I tried to apply outer blurmaskfilter but it did not work for me. |
I'm not, but you don't necessarily need any additional libraries for this. Something like this will probably work https://stackoverflow.com/questions/50556388/how-to-make-a-transparent-alpha-gradient-mask-to-make-one-layer-fade-into-tran |
Thanks @Dimezis! |
Hi @Dimezis, After applying some additional adjustments I was able to achieve desired result up to some extent. But one question though why does this blur view flickers when any item of
|
Can we apply gradient blur into this to such extent that it gives a shadow effect on the view which is passed through it from top? Also get rid of blurview flickering when view passed through it?
The text was updated successfully, but these errors were encountered: