Answer the question
In order to leave comments, you need to log in
How to add image to camera output in layout?
There is a template:
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:orientation="vertical"
android:background="#FFFFFF"
>
<LinearLayout
android:layout_width="0dip"
android:layout_height="fill_parent"
android:background="#5ad1d7">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="left|center_vertical"
android:text=""
android:clickable="true"
android:padding="0dip"
android:textColor="#FFFFFF"
android:id="@+id/return_view"
/>
</LinearLayout>
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:id="@+id/main_camera"
android:background="#FFFFFF"
>
<org.opencv.android.JavaCameraView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:id="@+id/fd_activity_surface_view"
/>
</LinearLayout>
</LinearLayout>
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question