Jetpack Compose
A declarative UI framework for Android officially released by Google in 2021, representing a shift from the traditional View system to a modern reactive paradigm. It supports contemporary UI development patterns such as State Hoisting and MaterialTheme.
Core Facts
Timeline (last 90 days)
Modifier is the core mechanism in Jetpack Compose for decorating or modifying the behavior of composables, using chained calls and immutable data structure chains.
Jetpack Compose introduced the Progressive Blur API, which allows the blur radius to vary along spatial directions through a modifier block.
The Progressive Blur API is implemented through a Modifier.blur()-style extension function, and developers pass in gradient parameters to dynamically compute each pixel's blur radius during the drawing phase.
The Progressive Blur API is already available with the latest Compose version.
The Progressive Blur API is implemented at the Compose level and can integrate seamlessly with existing animation, gesture, and state management.
Developers usually obtain posture via the Flow returned by WindowInfoTracker.windowLayoutInfo(activity), subscribed to in a composable with collectAsState, and a change in folding state triggers recomposition as a state update.
In Compose, the window size class is usually obtained via currentWindowAdaptiveInfo().windowSizeClass, and a window change automatically triggers recomposition.
Recomposition is on-demand and fine-grained: only composables that read the changed state are re-invoked, and unaffected subtrees are skipped (skippable).
In Jetpack Compose, a configuration change (such as screen rotation or a window size change) is essentially a recomposition, and Compose automatically re-executes the composables that read the changed state.
In Compose, window size changes require no special handling; they are just one of many state changes, and the framework automatically propagates the new window information to the composables that read it.
40 more timeline events
All Facts (20)
In 2021, Google launched the Glance framework based on the Jetpack Compose declarative UI paradigm for widget development.
70%UnverifiedJetpack Glance is built on top of Android's RemoteViews framework and provides a Jetpack Compose-style declarative API
90%UnverifiedAndroid XR provides developers with spatial computing capabilities through the extended OpenXR standard and the Jetpack XR SDK.
60%UnverifiedThe Progressive Blur API is implemented through a Modifier.blur()-style extension function, and developers pass in gradient parameters to dynamically compute each pixel's blur radius during the drawing phase.
50%UnverifiedThe Progressive Blur API is implemented at the Compose level and can integrate seamlessly with existing animation, gesture, and state management.
50%UnverifiedModifier is the core mechanism in Jetpack Compose for decorating or modifying the behavior of composables, using chained calls and immutable data structure chains.
50%UnverifiedIn Compose, window size changes require no special handling; they are just one of many state changes, and the framework automatically propagates the new window information to the composables that read it.
50%UnverifiedDevelopers usually obtain posture via the Flow returned by WindowInfoTracker.windowLayoutInfo(activity), subscribed to in a composable with collectAsState, and a change in folding state triggers recomposition as a state update.
50%UnverifiedRecomposition is on-demand and fine-grained: only composables that read the changed state are re-invoked, and unaffected subtrees are skipped (skippable).
50%UnverifiedIn Compose, the window size class is usually obtained via currentWindowAdaptiveInfo().windowSizeClass, and a window change automatically triggers recomposition.
50%UnverifiedIn Jetpack Compose, a configuration change (such as screen rotation or a window size change) is essentially a recomposition, and Compose automatically re-executes the composables that read the changed state.
50%UnverifiedThe note-taking app uses Kotlin and Jetpack Compose as its tech stack.
50%UnverifiedThe Kotlin + Jetpack Compose combination reduces UI code volume and also makes it easier to maintain structural consistency when AI generates code.
50%UnverifiedJetpack Glance is Google's declarative UI toolkit for building App Widgets, based on the Jetpack Compose runtime and compiler, adapted for remote UI scenarios, and serializes the UI description through an intermediate representation for the host to render rather than directly manipulating RemoteViews.
50%UnverifiedRemote Compose is a brand-new UI framework that brings declarative APIs to remote UI scenarios, is highly aligned with Jetpack Compose, and brings modern graphics capabilities and responsive layouts to widgets.
50%UnverifiedBefore Compose 1.12, trackpad events were reported as the touch type; Compose changed the pointer type from touch to mouse, giving any component that relies on this information a more consistent mouse and trackpad experience, with tooltips being a typical example.
50%Unverifiedclickable, scrollable, draggable and custom pointer input are all built on top of the six-stage pointer event pipeline.
50%UnverifiedWhen developing specifically for glasses, the dedicated gesture detectors in the Glimmer library can be used to obtain click, forward and back directly.
50%UnverifiedCompose introduced the concept of a primary directional motion axis: a device can declare its primary axis to be horizontal, and Compose maps horizontal swipes to forward/back and then to the focus system's next/previous, working out of the box on both vertical and horizontal lists.
50%UnverifiedCompose breaks the pointer event handling pipeline into six stages: the Motion Event entering Compose, adding the time dimension, hit path testing, coordinate transformation, and the three-pass initial/main/final dispatch (the fifth and sixth stages).
50%