Skip to content

Instantly share code, notes, and snippets.

@liezl200
Created September 8, 2013 14:00
Show Gist options
  • Save liezl200/6484924 to your computer and use it in GitHub Desktop.
Save liezl200/6484924 to your computer and use it in GitHub Desktop.
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
xmlns:opencv="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_height="match_parent" >
<org.opencv.android.JavaCameraView
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:id="@+id/fd_activity_surface_view"
opencv:camera_id="front"/>
<ImageButton
android:id="@+id/button_capture"
android:background="@drawable/camera"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:layout_alignParentBottom="true"
android:layout_marginBottom="15dip"
android:layout_alignParentRight="true"
android:onClick="capturePhoto">
</ImageButton>
</RelativeLayout>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment