Skip to content
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

Request: Blurry.Delete() with Animation #104

Open
R-Ashh opened this issue Feb 2, 2021 · 1 comment
Open

Request: Blurry.Delete() with Animation #104

R-Ashh opened this issue Feb 2, 2021 · 1 comment

Comments

@R-Ashh
Copy link

R-Ashh commented Feb 2, 2021

Thanks to the Support team whoever trying to do something for the community, I have a suggestion to make this library better, it would be awesome if the Blurry.Delete() method can accept Animation with duration so it won't go away all at once. Thanks in advance.

@bernatdelgado87
Copy link

bernatdelgado87 commented Nov 29, 2021

Is I recently commented at
#45
This is a workaround to make this. Hope works for you :)


val view: View = rootView.findViewWithTag<View>(Blurry::class.java.simpleName)
           if (view != null) {
               view.animate()
                   .alpha(0f)
                   .setDuration(50)
                   .withEndAction {
                       (rootView as ViewGroup).removeView(view)
                   }
                   .start()
           }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants