I need to implement a circular camera preview. I am using camera2 api with TextureView. I added the layout as follows:
<FrameLayout>
<TextureView/>
<CircularImageView/>
<FrameLayout/>
Doing this I am getting the below result:
As you can see, the camera preview is displayed in a square, but I want that to be a circular one, also keeping the yellow image in the background. How can I achieve this ? I did refer few examples on similar questions perviously asked but they are done using old camera api and not TextureView.
Any help is appreciated.