Gestures in Jetpack Compose

  Рет қаралды 25,269

Android Developers

Android Developers

Күн бұрын

Пікірлер: 43
@AndroidDevelopers
@AndroidDevelopers Жыл бұрын
Subscribe to Android Developers → goo.gle/AndroidDevs
@aymnand3215
@aymnand3215 Жыл бұрын
‏‪0:10‬‏ ‏‪0:12‬‏
@wendyflowers9458
@wendyflowers9458 Жыл бұрын
0:16 0:16
@ManuStream
@ManuStream 11 ай бұрын
It's very informative, is the reusable sources for transformable 1 st example? Pinch, rotate, resize, Offset?🎉
@chakflying1
@chakflying1 Жыл бұрын
Thank you for explaining this magical feature in Google Photos 👍
@RaghavSharma-nt3hr
@RaghavSharma-nt3hr Жыл бұрын
Wow! It's always a delight to understand concepts from the experts themselves. Thanks ❤
@abdonasr1222
@abdonasr1222 Жыл бұрын
Very detailed video about Gesture APIs capabilities and use cases, thanks for this ♥
@AndroidDevelopers
@AndroidDevelopers Жыл бұрын
Thank you for watching! We’re glad you found the video helpful.
@tch.777
@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!!!🙏
@paulobusato2
@paulobusato2 9 ай бұрын
So, that's why they are called expert. Awesome!
@arvindkumar72446
@arvindkumar72446 Жыл бұрын
I will just say one thing. You are amazing.
@ananthababu8272
@ananthababu8272 Жыл бұрын
Great Teaching with Good use cases 👌
@AndroidDevelopers
@AndroidDevelopers Жыл бұрын
Thank you! We appreciate the feedback.
@AbdallahMehiz
@AbdallahMehiz Ай бұрын
detectTransformGestures consumes other vertical and horizontal drag gestures if defined before it
@Maarttttt
@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
@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
@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???)
@truepicksyt3323
@truepicksyt3323 Жыл бұрын
Excited to watch this 😀
@rly_
@rly_ Жыл бұрын
Just in time video 😮. I'm going to use it in couple of days ❤
@xncola
@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
@MrYoutruber 11 ай бұрын
yeah, my horizontal pager stopped scrolling after adding pinch to zoom
@MrYoutruber
@MrYoutruber 11 ай бұрын
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 9 ай бұрын
@@MrYoutruber can you swipe while you are in a zooming state ?
@terttyssdf
@terttyssdf Жыл бұрын
it's quite informative,, could you share the link for the photos as well
@JohnSchizas-f2g
@JohnSchizas-f2g Жыл бұрын
Amazing Video. Thank you very much !!!!!!! Keep up with great job.
@robchr
@robchr Жыл бұрын
This is awesome!
@MartinusKelimpungan
@MartinusKelimpungan 11 ай бұрын
Does Jetpack Compose has built-in touch gesture for drag and drop for lazy list like RecyclerView did?
@MrPaulOpenshaw
@MrPaulOpenshaw 9 ай бұрын
Thanks for video!
@dewetvanrooyen8458
@dewetvanrooyen8458 8 ай бұрын
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.
@hxrin3748
@hxrin3748 Жыл бұрын
How does the grid layout handle scrolling when we're dragging over it?
@jolandaverhoef7674
@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.
@EvoOfDroid
@EvoOfDroid Жыл бұрын
Cool
@psytoolkit
@psytoolkit Жыл бұрын
This does not work as the modifier .pointerInput seems to want parameters in the brackets but that is not explained?
@jolandaverhoef7674
@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)
@Virus00000000000001
@Virus00000000000001 5 күн бұрын
where is the full project link?
@jersn5560
@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?
@amsavarthanlv5667
@amsavarthanlv5667 10 ай бұрын
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 Жыл бұрын
Interesting
@andrewdunbar828
@andrewdunbar828 Жыл бұрын
Does this imply that double-tap is not a gesture?
@bhanubhattarai13
@bhanubhattarai13 Жыл бұрын
It is one of many tap gestures viz long press, double tap, tap, etc.
@andrewdunbar828
@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.)
@j2shoes288
@j2shoes288 8 ай бұрын
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.
@withKaaveh
@withKaaveh Жыл бұрын
Please remove remote clicking in editing video 😅
Practical magic with animations in Jetpack Compose
32:46
Android Developers
Рет қаралды 50 М.
Advanced state and side effects in Jetpack Compose
41:21
Android Developers
Рет қаралды 37 М.
Мама у нас строгая
00:20
VAVAN
Рет қаралды 6 МЛН
Кто круче, как думаешь?
00:44
МЯТНАЯ ФАНТА
Рет қаралды 4,8 МЛН
Motorbike Smashes Into Porsche! 😱
00:15
Caters Clips
Рет қаралды 23 МЛН
More performance tips for Jetpack Compose
20:47
Android Developers
Рет қаралды 41 М.
Lazy layouts in Compose
24:32
Android Developers
Рет қаралды 96 М.
Building a scalable, modularized, testable app from scratch
21:31
Android Developers
Рет қаралды 187 М.
Fundamentals of Compose Layouts and Modifiers - MAD Skills
11:56
Android Developers
Рет қаралды 101 М.
Intuitive: Thinking in Compose - MAD Skills
7:10
Android Developers
Рет қаралды 126 М.
Full Guide to Nested Navigation Graphs in Jetpack Compose
12:01
Philipp Lackner
Рет қаралды 68 М.
Full Guide to Jetpack Compose Effect Handlers
24:56
Philipp Lackner
Рет қаралды 97 М.
Мама у нас строгая
00:20
VAVAN
Рет қаралды 6 МЛН