Git Product home page Git Product logo

Comments (3)

hyuwah avatar hyuwah commented on July 30, 2024 1

Your welcome mas, I'm glad it helped.
I'll mark this as resolved and close the issue, ya.

from draggableview.

hyuwah avatar hyuwah commented on July 30, 2024

Hi mas @nurhadidev, thank you for your interest in this library. 🙏

Regarding your issue in CameraX PreviewView implementation, does this kind of behavior in the following video is what you're expecting?

draggableview_camerax_previewview.mp4

In the video above, the CameraX's PreviewView is turned into draggable view with XY sticky mode. If that's what you're looking for, I could give you the code example.

I'm using these version for the camerax libs

val camerax = "1.2.3"
implementation("androidx.camera:camera-camera2:${camerax}")
implementation("androidx.camera:camera-lifecycle:${camerax}")
implementation("androidx.camera:camera-view:${camerax}")

Here's the code example: Test App.zip

from draggableview.

nurhadidev avatar nurhadidev commented on July 30, 2024

Thank you so much for the code, now it works.

Actually, the problem is my poor code. I wrapped PreviewView in a CardView, and make it as draggable view, that is way when I touched on the preview surface, it won't work.

and again, matur nuwun mas, ;)

from draggableview.

Related Issues (14)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.