CameraKit / blurkit-android

The missing Android blurring library. Fast blur-behind layout that parallels iOS.
MIT License
3.72k stars 309 forks source link

BlurLayout#setAlpha is useless #41

Closed fython closed 5 years ago

fython commented 5 years ago

I want to make a simple fade animation with BlurLayout. But I found BlurLayout#setAlpha(float) is useless.

Then I search out the reason why my alpha settings wasn't applied:

BlurLayout.java#L282

BlurLayout.java#L461

It might not a good idea that restore alpha value to the fixed value (1.0) after finishing eval blurred image.

Possible solutions

Can we provide an attribute for the final alpha value, or save the current value before setting alpha value to zero?