Gestures in Jetpack Compose

  Рет қаралды 26,134

Android Developers

Android Developers

Күн бұрын

Пікірлер: 45
@AndroidDevelopers
@AndroidDevelopers Жыл бұрын
Subscribe to Android Developers → goo.gle/AndroidDevs
@aymnand3215
@aymnand3215 Жыл бұрын
‏‪0:10‬‏ ‏‪0:12‬‏
@wendyflowers9458
@wendyflowers9458 Жыл бұрын
0:16 0:16
@ManuStream
@ManuStream Жыл бұрын
It's very informative, is the reusable sources for transformable 1 st example? Pinch, rotate, resize, Offset?🎉
@余余一-j3h
@余余一-j3h 15 күн бұрын
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
@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!!!🙏
@ananthababu8272
@ananthababu8272 Жыл бұрын
Great Teaching with Good use cases 👌
@AndroidDevelopers
@AndroidDevelopers Жыл бұрын
Thank you! We appreciate the feedback.
@arvindkumar72446
@arvindkumar72446 Жыл бұрын
I will just say one thing. You are amazing.
@paulobusato2
@paulobusato2 11 ай бұрын
So, that's why they are called expert. Awesome!
@truepicksyt3323
@truepicksyt3323 Жыл бұрын
Excited to watch this 😀
@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???)
@rly_
@rly_ Жыл бұрын
Just in time video 😮. I'm going to use it in couple of days ❤
@usernameutf-8844
@usernameutf-8844 6 күн бұрын
Awesome thanks
@robchr
@robchr Жыл бұрын
This is awesome!
@MrPaulOpenshaw
@MrPaulOpenshaw 11 ай бұрын
Thanks for video!
@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 Жыл бұрын
yeah, my horizontal pager stopped scrolling after adding pinch to zoom
@MrYoutruber
@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
@xncola
@xncola 10 ай бұрын
@@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.
@AbdallahMehiz
@AbdallahMehiz 3 ай бұрын
detectTransformGestures consumes other vertical and horizontal drag gestures if defined before it
@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.
@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)
@MartinusKelimpungan
@MartinusKelimpungan Жыл бұрын
Does Jetpack Compose has built-in touch gesture for drag and drop for lazy list like RecyclerView did?
@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 11 ай бұрын
Look at the internals of combined clickable you will find that the gesture detector attached to it consumes the event by default
@Virus00000000000001
@Virus00000000000001 Ай бұрын
where is the full project link?
@dewetvanrooyen8458
@dewetvanrooyen8458 10 ай бұрын
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
@cellnexus Жыл бұрын
Cool
@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.)
@george_sepetadelis
@george_sepetadelis Жыл бұрын
Interesting
@j2shoes288
@j2shoes288 10 ай бұрын
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 😅
You're Collecting Your Flows Wrong In Compose | THIS Is Why
11:35
Philipp Lackner
Рет қаралды 31 М.
State in Jetpack Compose
43:46
Android Developers
Рет қаралды 76 М.
The evil clown plays a prank on the angel
00:39
超人夫妇
Рет қаралды 53 МЛН
Quilt Challenge, No Skills, Just Luck#Funnyfamily #Partygames #Funny
00:32
Family Games Media
Рет қаралды 55 МЛН
黑天使被操控了#short #angel #clown
00:40
Super Beauty team
Рет қаралды 61 МЛН
AI is Replacing Coding? 🤖 | The Future of Skills & Work #SnaPodcast EP-1 Part 3
18:07
Compose Modifiers deep dive
21:02
Android Developers
Рет қаралды 36 М.
Advanced state and side effects in Jetpack Compose
41:21
Android Developers
Рет қаралды 38 М.
Lazy layouts in Compose
24:32
Android Developers
Рет қаралды 98 М.
I've Used Jetpack Compose For 4 Years - Here's the Good and the Bad
16:12
I Redesigned the ENTIRE YouTube UI from Scratch
19:10
Juxtopposed
Рет қаралды 880 М.
More performance tips for Jetpack Compose
20:47
Android Developers
Рет қаралды 41 М.
Introduction to drawing in Compose
9:29
Android Developers
Рет қаралды 48 М.
I Made an Android App in MINUTES with This AI Tool
10:21
Creator Magic
Рет қаралды 169 М.
Practical magic with animations in Jetpack Compose
32:46
Android Developers
Рет қаралды 52 М.
Самые простые строительные леса
0:54
Канал ИДЕЙ
Рет қаралды 1 МЛН
Это лютый угар 🤣 | приколы Арсен Симонян
0:14
Арсен Симонян
Рет қаралды 294 М.
Таким раствором работать одно удовольствие
1:00
Профессия созидатели
Рет қаралды 954 М.
🪄Вечная спичка #diy #выживание #поход
1:00
Короче, ВИ
Рет қаралды 2,8 МЛН
Monster My Best Friend 🥹❤️👻 #shorts Tiktok
1:01
BETER BÖCÜK
Рет қаралды 29 МЛН
Американцы красят асфальт?
0:27
BAZAR CLUB
Рет қаралды 188 М.