natario1 / CameraView

📸 A well documented, high-level Android interface that makes capturing pictures and videos easy, addressing all of the common issues and needs. Real-time filters, gestures, watermarks, frame processing, RAW, output of any size.
https://natario1.github.io/CameraView
Other
4.94k stars 933 forks source link

CircularReveal and cameraview #785

Closed mariuspena closed 4 years ago

mariuspena commented 4 years ago

How do I?

I show/hide the camera preview with an CircularReveal animation. It worked in v1, now I migrated to the v2 and the circularReveal does not mask the preview anymore. Is there something I could do to obtain the effect I want ? thanks

Version used

2.6.1

natario1 commented 4 years ago

You can try changing the cameraSurface attribute to texture, but you will loose a lot of functionality (see docs).

mariuspena commented 4 years ago

I switched to texture for now. but do you see any fix for this in the future ?

natario1 commented 4 years ago

No because surface view draws on a separate window that likely can't be clipped by the circular reveal animation.

mariuspena commented 4 years ago

got it. thanks!