Win a copy of Java EE 8 High Performance this week in the Java/Jakarta EE forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Android Camera showing corner border  RSS feed

Ranch Hand
Posts: 268
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.

[Thumbnail for image.png]
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!