1/20
Looks like no tags are added yet.
Name | Mastery | Learn | Test | Matching | Spaced |
---|
No study sessions yet.
What is the approach Jetpack Compose uses for handling UI and gestures?
A declarative, modular, and coroutine-frinedly approach using modifiers
What is used instead of XML event listeners in Compose?
Gesture detectors and modifiers like pointerInput
What does Modifier.pointerInput do?
Defines custom gesture detectors inside a coroutine scope
What does Modifier.clickable detect?
Click (tap) gestures
What does modifier.draggable detect?
Drag gestures
What does Modifier.scrollable handle?
Scroller interactions
What is Modifier.swipeable used for?
Complex swipe gestures (e.g., bottom sheets, toggles
What key does pointerInput usually take?
Unit or a state key
Name gesture detection APIs used inside pointerInput
awaitPointerEventScope{}, detectTapGestures, detectDragGestures
What does detectTapGestures support?
onTap, onLongPress, and onDoubleTap
What API is used for detecting drag gestures?
detectDragGestures
How do you update drag position in Compose?
Use Offset, remember, and update offset.value inside detectDragGestures
which modifiers handle vertical and horizontal scrolls?
verticalScroll(rememberScrollState()) and horizontalScroll(rememberScrollState())
What is used for efficent scrolling lists in compose?
LazyColumn or LazyRow
What gesture detector handles pinch, zoom, rotate, and pan?
detectTransformGestures
What are transform gestures useful for?
Image zooming, maps, photo editors
What does swipeable require?
A state (rememberSwipeableState), anchors, thresholds, and orientation
Name UI features that use swipeable
Bottom sheets, swipe-to-dismiss, toggle switches
What functions help with nesting gestures?
awaitFirstDown, awaitTouchSlopOrCancellation, consumeAllChanges()
Which modifier helps with nested scroll behaviors?
nestedScroll() and NestedScrollConnection
How do you animate gestures in Compose?
Use Animatable, coroutine launch, and snapTo() inside gesture detectors