I am creating an application where I want to restrict the camera preview to about 80% of camera screen. I could accomplish it using the layout_weight=0.8 . Now I need to implement border at the corner of the camera preview.
I have attached a snapshot of what I really want to accomplish. The borders shown in red color is what I really want . Any pointer will be helpful.
Here is how I have reduced camera image to 80%.
Please see the attached image of what I really want.