Subscribe to Android Developers → goo.gle/AndroidDevs
@aymnand3215 Жыл бұрын
0:10 0:12
@wendyflowers9458 Жыл бұрын
0:16 0:16
@ManuStream Жыл бұрын
It's very informative, is the reusable sources for transformable 1 st example? Pinch, rotate, resize, Offset?🎉
@余余一-j3h15 күн бұрын
Thank you, I really enjoyed this video, can I ask you how to implement a hybrid swipe recognition that handles both left and right swipes and up and down swipes, just like a map view?
@chakflying1 Жыл бұрын
Thank you for explaining this magical feature in Google Photos 👍
@RaghavSharma-nt3hr Жыл бұрын
Wow! It's always a delight to understand concepts from the experts themselves. Thanks ❤
@abdonasr1222 Жыл бұрын
Very detailed video about Gesture APIs capabilities and use cases, thanks for this ♥
@AndroidDevelopers Жыл бұрын
Thank you for watching! We’re glad you found the video helpful.
@tch.777 Жыл бұрын
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!!!🙏
@ananthababu8272 Жыл бұрын
Great Teaching with Good use cases 👌
@AndroidDevelopers Жыл бұрын
Thank you! We appreciate the feedback.
@arvindkumar72446 Жыл бұрын
I will just say one thing. You are amazing.
@paulobusato211 ай бұрын
So, that's why they are called expert. Awesome!
@truepicksyt3323 Жыл бұрын
Excited to watch this 😀
@Maarttttt Жыл бұрын
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.
@JolandaVerhoef Жыл бұрын
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.
@Maarttttt Жыл бұрын
@@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???)
@rly_ Жыл бұрын
Just in time video 😮. I'm going to use it in couple of days ❤
@usernameutf-88446 күн бұрын
Awesome thanks
@robchr Жыл бұрын
This is awesome!
@MrPaulOpenshaw11 ай бұрын
Thanks for video!
@xncola Жыл бұрын
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 ?
@MrYoutruber Жыл бұрын
yeah, my horizontal pager stopped scrolling after adding pinch to zoom
@MrYoutruber Жыл бұрын
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
@xncola10 ай бұрын
@@MrYoutruber can you swipe while you are in a zooming state ?
@terttyssdf Жыл бұрын
it's quite informative,, could you share the link for the photos as well
@JohnSchizas-f2g Жыл бұрын
Amazing Video. Thank you very much !!!!!!! Keep up with great job.
@AbdallahMehiz3 ай бұрын
detectTransformGestures consumes other vertical and horizontal drag gestures if defined before it
@hxrin3748 Жыл бұрын
How does the grid layout handle scrolling when we're dragging over it?
@jolandaverhoef7674 Жыл бұрын
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.
@psytoolkit Жыл бұрын
This does not work as the modifier .pointerInput seems to want parameters in the brackets but that is not explained?
@jolandaverhoef7674 Жыл бұрын
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)
@MartinusKelimpungan Жыл бұрын
Does Jetpack Compose has built-in touch gesture for drag and drop for lazy list like RecyclerView did?
@jersn5560 Жыл бұрын
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?
@amsavarthanlv566711 ай бұрын
Look at the internals of combined clickable you will find that the gesture detector attached to it consumes the event by default
@Virus00000000000001Ай бұрын
where is the full project link?
@dewetvanrooyen845810 ай бұрын
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.
@cellnexus Жыл бұрын
Cool
@andrewdunbar828 Жыл бұрын
Does this imply that double-tap is not a gesture?
@bhanubhattarai13 Жыл бұрын
It is one of many tap gestures viz long press, double tap, tap, etc.
@andrewdunbar828 Жыл бұрын
@@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.)
@george_sepetadelis Жыл бұрын
Interesting
@j2shoes28810 ай бұрын
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.