IntelliJ Java IDE
The moose likes Android and the fly likes Android Camera showing corner border Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Mobile » Android
Reply Bookmark "Android Camera showing corner border" Watch "Android Camera showing corner border" New topic
Author

Android Camera showing corner border

Sim Kim
Ranch Hand

Joined: Aug 06, 2004
Posts: 268
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.

[Thumb - image.png]
 Filename image.png [Disk] Download
 Description
 Filesize 6 Kbytes
 Downloaded:  3 time(s)

 
 
subject: Android Camera showing corner border
 
Threads others viewed
odd framelayout/surfaceview problem
Button Not coming in Center
how to put button inside a SurfaceView and on the bootom of the screen?
Need Help on the scrolling Bar in Android?
Layouts, bottom position
MyEclipse, The Clear Choice