I used this library https://github.com/pedrovgs/DraggablePanel and I have a youtube fragment at top side, a camera preview (inside a fragment) at bottom side.
I want my camera preview show only half bottom part of camera (I don't take pictures, I just preview the bottom part of the front camera is like a mirror) How do I crop my camera preview? Thank you all the help!
I've tried set SurfaceView height=screenwidth and parentView height=my_height but my top fragment (youtube fragment) was displayed like a SurfaceView