mmin18 / RealtimeBlurView

A realtime blurring overlay for Android (like iOS UIVisualEffectView)
Other
3.21k stars 350 forks source link

Any public method to pause blur when activity is paused? #8

Closed imknown closed 7 years ago

imknown commented 7 years ago

https://github.com/mmin18/RealtimeBlurView/blob/master/library/src/com/github/mmin18/widget/RealtimeBlurView.java#L121

Is it?

mmin18 commented 7 years ago

No. And it don't has a pause method.

The blur will only trigger when activity draws, and background activity will not draw (unless the active activity is transparent)

imknown commented 7 years ago

Thx, i created one ViewStub for BlurView on my root Activity (the Activity has fragments). When i call BlurView.setVisibility(View.GONE), and will it a good way to hide the BlurView?

mmin18 commented 7 years ago

Yes. If it's hidden, it will not blur.

imknown commented 7 years ago

Thank you a lot. There is one another animator frame-dropped problem. I'll recreate one new.