Subscribe to Android Developers → goo.gle/AndroidDevs
@aymnand321511 ай бұрын
0:10 0:12
@wendyflowers945811 ай бұрын
0:16 0:16
@Empty3Stream10 ай бұрын
It's very informative, is the reusable sources for transformable 1 st example? Pinch, rotate, resize, Offset?🎉
@chakflying111 ай бұрын
Thank you for explaining this magical feature in Google Photos 👍
@abdonasr122211 ай бұрын
Very detailed video about Gesture APIs capabilities and use cases, thanks for this ♥
@AndroidDevelopers11 ай бұрын
Thank you for watching! We’re glad you found the video helpful.
@tch.77711 ай бұрын
Amazing video, amazing explanation, I really enjoyed it, I did amazing things with this information, thank you very much, please keep making videos about this!!!🙏
@AbdallahMehiz4 күн бұрын
detectTransformGestures consumes other vertical and horizontal drag gestures if defined before it
@ananthababu827211 ай бұрын
Great Teaching with Good use cases 👌
@AndroidDevelopers11 ай бұрын
Thank you! We appreciate the feedback.
@paulobusato28 ай бұрын
So, that's why they are called expert. Awesome!
@arvindkumar7244611 ай бұрын
I will just say one thing. You are amazing.
@truepicksyt332311 ай бұрын
Excited to watch this 😀
@rly_11 ай бұрын
Just in time video 😮. I'm going to use it in couple of days ❤
@dewetvanrooyen84586 ай бұрын
So complicated I am super confused . Need to watch it a few times it would have been nice if this was a live demo showing us the steps while coding and testing the app.
@Maarttttt11 ай бұрын
I feel very limited that, in Compose, TouchIntercept nodes seem to hoard all pointer events for itself until the pointer is up again. Often I'd like multiple components to respond to pointer events at the same time.
@JolandaVerhoef11 ай бұрын
If you handle events yourself (instead of using gesture recognizes), you can choose not to consume events, in which case they are forwarded to the next node.
@Maarttttt11 ай бұрын
@@JolandaVerhoef Does not work when using pointerInput->awaitEachGesture. All events are still taken by one component. Perhaps it's a bug in SuspendPointerInputElement. (My previous comment was deleted???)
@xncola11 ай бұрын
How do the detectGestures function work if my image is in a horizontal pager for example? Wouldn't it overlap with the "swipe" gesture ? How can we detect if we should swipe or pan inside a zoomed image ?
@MrYoutruber9 ай бұрын
yeah, my horizontal pager stopped scrolling after adding pinch to zoom
@MrYoutruber9 ай бұрын
UPD: if I apply zoom to the HorizontalPager instead of the Image both gestures work but I need to reset the zoom when the page changes
@xncola7 ай бұрын
@@MrYoutruber can you swipe while you are in a zooming state ?
@MrPaulOpenshaw8 ай бұрын
Thanks for video!
@JohnSchizas-f2g10 ай бұрын
Amazing Video. Thank you very much !!!!!!! Keep up with great job.
@MartinusKelimpungan9 ай бұрын
Does Jetpack Compose has built-in touch gesture for drag and drop for lazy list like RecyclerView did?
@terttyssdf11 ай бұрын
it's quite informative,, could you share the link for the photos as well
@SuperTechGuy3211 ай бұрын
Cool
@RaghavSharma-nt3hr11 ай бұрын
Wow! It's always a delight to understand concepts from the experts themselves. Thanks ❤
@hxrin374811 ай бұрын
How does the grid layout handle scrolling when we're dragging over it?
@jolandaverhoef767411 ай бұрын
Great question! It was a bit too much to explain in this video, but the sample code contains this behavior. It basically sets some state when the pointer is close to an edge, and that state is used to periodically update the scroll state of the grid.
@psytoolkit11 ай бұрын
This does not work as the modifier .pointerInput seems to want parameters in the brackets but that is not explained?
@jolandaverhoef767411 ай бұрын
True, for the sake of time I did not go into much detail on that parameter. You need to pass a key. When the value of this key parameter changes, the pointer input block is re-executed. This is quite a common pattern (e.g. also used by LaunchedEffect)
@jersn556010 ай бұрын
I am confused, I observed this behavior myself, there is no way for a compose to prevent the propagation of event any further down the heirarchy. So why on the video it says that the PhotoItem consumes the event. How?
@amsavarthanlv56678 ай бұрын
Look at the internals of combined clickable you will find that the gesture detector attached to it consumes the event by default
@george_sepetadelis11 ай бұрын
Interesting
@andrewdunbar82811 ай бұрын
Does this imply that double-tap is not a gesture?
@bhanubhattarai1311 ай бұрын
It is one of many tap gestures viz long press, double tap, tap, etc.
@andrewdunbar82811 ай бұрын
@@bhanubhattarai13 Ah that makes sense. I was thrown by the definition of a gesture as a press event followed by a series of pointer events and finally a release event. (Sorry I probably used the wrong terms there.)
@withKaaveh11 ай бұрын
Please remove remote clicking in editing video 😅
@j2shoes2887 ай бұрын
Still very poor. Imagine you want a way to know if a user scrolling or pressing, and the PISS POOR SDK doesn't have the abililty to know the difference, since the scroll will trigger the press event.