Gestures in Jetpack Compose

  Рет қаралды 23,938

Android Developers

Android Developers

Күн бұрын

Пікірлер: 42
@AndroidDevelopers
@AndroidDevelopers 11 ай бұрын
Subscribe to Android Developers → goo.gle/AndroidDevs
@aymnand3215
@aymnand3215 11 ай бұрын
‏‪0:10‬‏ ‏‪0:12‬‏
@wendyflowers9458
@wendyflowers9458 11 ай бұрын
0:16 0:16
@Empty3Stream
@Empty3Stream 10 ай бұрын
It's very informative, is the reusable sources for transformable 1 st example? Pinch, rotate, resize, Offset?🎉
@chakflying1
@chakflying1 11 ай бұрын
Thank you for explaining this magical feature in Google Photos 👍
@abdonasr1222
@abdonasr1222 11 ай бұрын
Very detailed video about Gesture APIs capabilities and use cases, thanks for this ♥
@AndroidDevelopers
@AndroidDevelopers 11 ай бұрын
Thank you for watching! We’re glad you found the video helpful.
@tch.777
@tch.777 11 ай бұрын
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!!!🙏
@AbdallahMehiz
@AbdallahMehiz 4 күн бұрын
detectTransformGestures consumes other vertical and horizontal drag gestures if defined before it
@ananthababu8272
@ananthababu8272 11 ай бұрын
Great Teaching with Good use cases 👌
@AndroidDevelopers
@AndroidDevelopers 11 ай бұрын
Thank you! We appreciate the feedback.
@paulobusato2
@paulobusato2 8 ай бұрын
So, that's why they are called expert. Awesome!
@arvindkumar72446
@arvindkumar72446 11 ай бұрын
I will just say one thing. You are amazing.
@truepicksyt3323
@truepicksyt3323 11 ай бұрын
Excited to watch this 😀
@rly_
@rly_ 11 ай бұрын
Just in time video 😮. I'm going to use it in couple of days ❤
@dewetvanrooyen8458
@dewetvanrooyen8458 6 ай бұрын
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.
@Maarttttt
@Maarttttt 11 ай бұрын
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
@JolandaVerhoef 11 ай бұрын
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
@Maarttttt 11 ай бұрын
@@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???)
@xncola
@xncola 11 ай бұрын
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
@MrYoutruber 9 ай бұрын
yeah, my horizontal pager stopped scrolling after adding pinch to zoom
@MrYoutruber
@MrYoutruber 9 ай бұрын
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
@xncola
@xncola 7 ай бұрын
@@MrYoutruber can you swipe while you are in a zooming state ?
@MrPaulOpenshaw
@MrPaulOpenshaw 8 ай бұрын
Thanks for video!
@JohnSchizas-f2g
@JohnSchizas-f2g 10 ай бұрын
Amazing Video. Thank you very much !!!!!!! Keep up with great job.
@MartinusKelimpungan
@MartinusKelimpungan 9 ай бұрын
Does Jetpack Compose has built-in touch gesture for drag and drop for lazy list like RecyclerView did?
@terttyssdf
@terttyssdf 11 ай бұрын
it's quite informative,, could you share the link for the photos as well
@SuperTechGuy32
@SuperTechGuy32 11 ай бұрын
Cool
@RaghavSharma-nt3hr
@RaghavSharma-nt3hr 11 ай бұрын
Wow! It's always a delight to understand concepts from the experts themselves. Thanks ❤
@hxrin3748
@hxrin3748 11 ай бұрын
How does the grid layout handle scrolling when we're dragging over it?
@jolandaverhoef7674
@jolandaverhoef7674 11 ай бұрын
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
@psytoolkit 11 ай бұрын
This does not work as the modifier .pointerInput seems to want parameters in the brackets but that is not explained?
@jolandaverhoef7674
@jolandaverhoef7674 11 ай бұрын
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)
@jersn5560
@jersn5560 10 ай бұрын
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?
@amsavarthanlv5667
@amsavarthanlv5667 8 ай бұрын
Look at the internals of combined clickable you will find that the gesture detector attached to it consumes the event by default
@george_sepetadelis
@george_sepetadelis 11 ай бұрын
Interesting
@andrewdunbar828
@andrewdunbar828 11 ай бұрын
Does this imply that double-tap is not a gesture?
@bhanubhattarai13
@bhanubhattarai13 11 ай бұрын
It is one of many tap gestures viz long press, double tap, tap, etc.
@andrewdunbar828
@andrewdunbar828 11 ай бұрын
@@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.)
@withKaaveh
@withKaaveh 11 ай бұрын
Please remove remote clicking in editing video 😅
@j2shoes288
@j2shoes288 7 ай бұрын
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.
@robchr
@robchr 10 ай бұрын
This is awesome!
Practical magic with animations in Jetpack Compose
32:46
Android Developers
Рет қаралды 47 М.
Lazy layouts in Compose
24:32
Android Developers
Рет қаралды 93 М.
Which One Is The Best - From Small To Giant #katebrush #shorts
00:17
Крутой фокус + секрет! #shorts
00:10
Роман Magic
Рет қаралды 18 МЛН
Android Gestures: Getting Started
19:16
CodingWithMitch
Рет қаралды 54 М.
I Turned Valorant into a LIVING HELL... (this is INSANE)
30:27
Custom layouts and graphics in Compose
20:25
Android Developers
Рет қаралды 53 М.
Full Guide to Jetpack Compose Effect Handlers
24:56
Philipp Lackner
Рет қаралды 94 М.
Full Guide to Nested Navigation Graphs in Jetpack Compose
12:01
Philipp Lackner
Рет қаралды 64 М.
Image Caching with Coil Compose - Everything You Need to Know
21:28
Philipp Lackner
Рет қаралды 17 М.