T
T
Torna2017-09-28 17:53:35
Android
Torna, 2017-09-28 17:53:35

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>

Need to add a logo inside the video? Is it possible to do this only with templates? Thank you.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Denis Zagaevsky, 2017-09-28
@zagayevskiy

Place JavaCameraView in framelayout and imageview in it.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question