Comments (3)
Your welcome mas, I'm glad it helped.
I'll mark this as resolved and close the issue, ya.
from draggableview.
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.
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)
- Create helper to extend the behaviour to any view HOT 2
- How to make draggable webview using this ?
- Is there a function to resize the ImageView while on dragging? HOT 1
- How to drag over other items?
- OnLongClickListener not working HOT 1
- Convert lib to java HOT 2
- OnPositionChangedListener HOT 1
- implementation in scroll view? HOT 2
- ClassCastException raise when cast ViewRootImpl cast to View HOT 6
- disable drag
- View not dragging when it was on bottomsheet. HOT 1
- how can i maintain view position while orientation change ?
- how to change its view position by passing value of x and y ?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from draggableview.