Skip to content
This repository has been archived by the owner on Jun 26, 2023. It is now read-only.

Help with WaterMarks #1

Open
lucazin opened this issue Oct 1, 2019 · 0 comments
Open

Help with WaterMarks #1

lucazin opened this issue Oct 1, 2019 · 0 comments

Comments

@lucazin
Copy link

lucazin commented Oct 1, 2019

im try to use this lib with cameraview to put drawables and move drag and rotate inside..

but i think cameraview block this.. the image stay in top left on the screen..and i can move

im try to use this lib ..
https://github.com/Mun0n/TurboImageProject

like u do with drawing

can u help me ?

`
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context=".MainActivity">

<com.otaliastudios.cameraview.CameraView
    android:id="@+id/camera"
    android:keepScreenOn="true"
    app:cameraAudio="off"
    android:layout_width="0dp"
    android:layout_height="0dp"
    app:layout_constraintTop_toTopOf="parent"
    app:layout_constraintBottom_toBottomOf="parent"
    app:layout_constraintStart_toStartOf="parent"
    app:layout_constraintEnd_toEndOf="parent"
    >

    <RelativeLayout
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        app:layout_drawOnPreview="true"
        app:layout_drawOnPictureSnapshot="true"
        app:layout_drawOnVideoSnapshot="true"
        >

        <com.munon.turboimageview.TurboImageView
            android:id="@+id/turboImageView"
            android:layout_width="match_parent"
            android:layout_height="match_parent"

            />

    </RelativeLayout>
</com.otaliastudios.cameraview.CameraView>

<com.google.android.material.floatingactionbutton.FloatingActionButton
    android:id="@+id/fab_video"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    app:fabSize="normal"
    android:src="@drawable/ic_videocam_black_24dp"
    app:layout_constraintBottom_toBottomOf="parent"
    app:layout_constraintEnd_toEndOf="parent"
    android:layout_marginBottom="16dp"
    android:layout_marginEnd="16dp"
    />

<com.google.android.material.floatingactionbutton.FloatingActionButton
    android:id="@+id/fab_picture"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    app:fabSize="mini"
    android:src="@drawable/ic_camera_alt_black_24dp"
    app:layout_constraintBottom_toBottomOf="@id/fab_video"
    app:layout_constraintTop_toTopOf="@id/fab_video"
    app:layout_constraintEnd_toStartOf="@id/fab_video"
    android:layout_marginEnd="16dp"
    />

<com.google.android.material.floatingactionbutton.FloatingActionButton
    android:id="@+id/fab_front"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    app:fabSize="mini"
    android:src="@drawable/ic_camera_front_black_24dp"
    app:layout_constraintBottom_toBottomOf="@id/fab_video"
    app:layout_constraintTop_toTopOf="@id/fab_video"
    app:layout_constraintEnd_toStartOf="@id/fab_picture"
    android:layout_marginEnd="16dp"
    />

</androidx.constraintlayout.widget.ConstraintLayout>`

aa

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant