Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

I managed to side step this issue using 2 methods.

1) The first method is to assign CameraBridgeViewBase.setMaxFrameSize(639, 359) in the java file.

This is because the resolution of the Glass is 640x360, so setting it 1 pixel smaller displays correctly.

2) The second method is to declare <android:layout_margin="1dp"> in the layout xml file.

This is similar to the solution #1, by putting a margin around the surfaceview.

Thank you.