Wear Compose
| Latest Update | Stable Release | Release Candidate | Beta Release | Alpha Release |
|---|---|---|---|---|
| December 02, 2026 | 1.7.2 | - | - | 1.8.0-alpha05 |
Declaring dependencies
To add a dependency on Wear, you must add the Google Maven repository to your project. Read Google's Maven repository for more information.
Add the dependencies for the artifacts you need in the build.gradle file for
your app or module:
Groovy
dependencies { implementation "androidx.wear.compose:compose-foundation:1.7.2" // For Wear Material Design UX guidelines and specifications implementation "androidx.wear.compose:compose-material3:1.7.2" // For integration between Wear Compose and AndroidX Navigation 3 (recommended) implementation "androidx.wear.compose:compose-navigation3:1.7.2" // Alternatively, for integration with AndroidX Navigation 2: // implementation "androidx.wear.compose:compose-navigation:1.7.2" // For Wear preview annotations implementation "androidx.wear.compose:compose-ui-tooling:1.7.2" // NOTE: DO NOT INCLUDE dependencies on androidx.wear.compose:compose-material, // androidx.compose.material:material, or androidx.compose.material3:material3. // androidx.wear.compose:compose-material3 is designed as a replacement, // not an addition, to those libraries. // If there are features that you feel are missing from // androidx.wear.compose:compose-material3, please raise a bug to let us know. }
Kotlin
dependencies { implementation("androidx.wear.compose:compose-foundation:1.7.2") // For Wear Material Design UX guidelines and specifications implementation("androidx.wear.compose:compose-material3:1.7.2") // For integration between Wear Compose and AndroidX Navigation 3 (recommended) implementation("androidx.wear.compose:compose-navigation3:1.7.2") // Alternatively, for integration with AndroidX Navigation 2: // implementation("androidx.wear.compose:compose-navigation:1.7.2") // For Wear preview annotations implementation("androidx.wear.compose:compose-ui-tooling:1.7.2") // NOTE: DO NOT INCLUDE dependencies on androidx.wear.compose:compose-material, // androidx.compose.material:material, or androidx.compose.material3:material3. // androidx.wear.compose:compose-material3 is designed as a replacement, // not an addition, to those libraries. // If there are features that you feel are missing from // androidx.wear.compose:compose-material3, please raise a bug to let us know. }
For more information about dependencies, see Add build dependencies.
Feedback
Your feedback helps make Jetpack better. Let us know if you discover new issues or have ideas for improving this library. Please take a look at the existing issues in this library before you create a new one. You can add your vote to an existing issue by clicking the star button.
See the Issue Tracker documentation for more information.
Version 1.8
Version 1.8.0-alpha05
December 02, 2026
androidx.wear.compose:compose-*:1.8.0-alpha05 is released. Version 1.8.0-alpha05 contains these commits.
API Changes
- Exposed
snapSegmentThresholdonTransformingLazyColumnVisibleItemInfoso custom snapping behaviors can read each item's requested snap segment threshold. (Ic0fc2) - Added
DrawCurvedToEdgeDefaults.Anchorfor the recommended anchor angle (I65c73)
Bug Fixes
- Fixed
rememberTransformationSpec(vararg specs)recomputing on every recomposition andResponsiveTransformationSpecequality ignoringscreenSize. (Ic2494) - Fixed
TransformingLazyColumnState.layoutInfo.reverseLayoutreportingfalsewhenreverseLayout = trueon an empty list, and fixedTransformingLazyColumnitemscrollProgress, horizontalcontentPadding, and edge click threshold not updating whenstate,LocalLayoutDirection, orLocalDensitychanges. (I72642) - Fixed
EdgeButtontemporarily growing and shrinking back when deleting the last item of aTransformingLazyColumnwith placement animations. (Ie2dcd) - Fixed
ScrollIndicator(TransformingLazyColumnState)to remember its state adapter and update whenLocalReduceMotionor overscroll changes. (Ibbab3) - Fixed
ResponsiveTransformationSpecignoring customtargetValueinTransformationVariableSpec. (I696d7) - Fixed
TransformingLazyColumnedge item click visibility threshold whenreverseLayoutis enabled or off-screen animated items are present. (I7e186) - Removed unused direct dependencies from published Wear Compose libraries:
material-icons-corefromcompose-material3,compose-foundationandmaterial-ripplefromcompose-material-core, andannotationfromcompose-ui-tooling. (I7e521) - Fixed an issue where the system status bar could unexpectedly disappear when navigating between or popping multiple
AppScaffoldinstances sharing the same Activity window (whilst it is recommended to have an singleAppScaffoldfor your app, some apps needed to support multipleAppScaffolds during Compose adoption). (I8c6d1) - One-handed gesture accessibility announcements now describe the gesture bound to the action using the system-provided gesture name, when available - otherwise, they fallback to the existing
double-pinchandwrist-turndescriptions. (I0d3dc) - Clarified sample code and system status bar support levels for
Modifier.suppressStatusBar(I7d87b) - Improved
ScalingLazyColumnperformance by avoiding double composition of inline items during initial positioning. (Ica331) - Fixed an issue in
TransformingLazyColumnwhere tall items could end up off-center afterscrollToItem,requestScrollToItem,animateScrollToItem, initial layout, or state restoration. (I09806) FontVariation.Settingswith the same settings in a different order are now equal, andsettingsandtoString()may no longer follow the order the settings were passed in. (Idf8ca)Fixed delayed
TimeTextrestoration during predictive back inSwipeDismissableNavHost. (I65765)Reduced memory used by the default Wear Compose Material3 typography: styles with identical font variation settings now share a single typeface. (If1a25)
Fixed
TimePickerconfirm button not receiving focus wheninitialSelectionisTimePickerSelection.ConfirmButton. (I518ff)
Version 1.8.0-alpha04
November 18, 2026
androidx.wear.compose:compose-*:1.8.0-alpha04 is released. Version 1.8.0-alpha04 contains these commits.
API Changes
- Added
DurationPicker, a new component for Wear Compose Material 3 which allows users to select a duration (as opposed to the existingTimePickerwhich should be used only to select a time). Also added aPickerGroupScope.PickerGroupItemoverload with agradientColorparameter.TimePickerType.MinutesSecondshas been deprecated, andDurationPickershould be used withDurationPickerType.MinutesSecondsinstead. (I4bc8c) - Renamed
Modifier.curveToEdgetoModifier.drawCurvedToEdgeand addedDrawCurvedToEdgeDefaultsfor recommended sweep angles. (Ic2e07) - Added
AlertDialogDefaults.EdgeButtonandAlertDialogDefaults.ConfirmButtonoverloads with a newgestureVisibilityThresholdparameter, used to configure how much of the button must be visible before the associated one-handed gesture is enabled. SettinggestureVisibilityThresholdto zero turns the gesture off on that button. (I39d87) - Rotary and fling snapping of
TransformingLazyColumnnow step through tall items in several snaps instead of skipping to their center in a single snap. By default, an item taller than the band around the center of a round screen in which it is fully visible is split into equal segments, each with its own snap point. The newModifier.snapSegmentThresholdinTransformingLazyColumnItemScopecustomizes how an item is split, or keeps it whole if the threshold >=measuredHeight. With a snap offset, a slow release now snaps the item nearest to the snap line rather than to the center, and a fling faster than 400dp/s always moves on to the next snap point in its direction. Rotary input before a snap scrolls the list linearly, and turning against a running snap cancels it. (Ic5e66) - Added a
scrollFractionparameter toOneHandedGestureDefaults.scrollDown()to configure how far each gesture scrolls as a fraction of the viewport height. (I2973d)
Bug Fixes
compileSdkfor Compose UI and all Compose libraries that build against it (including Wear Compose libraries) have been updated to 37.2. This will require transitively updatingcompileSdkfor all apps and libraries using them. (I2859d)- Custom accessibility actions added via
Modifier.semanticsonSplitCheckboxButton,SplitSwitchButton, andSplitRadioButton(for example when used withSwipeToReveal) are now propagated to the focusable primary clickable container Row, so thatTalkBackannounces available actions. (Ibfebe) - Fixed a crash in
ButtonGroupwhenexpansionWidthexceeds a neighbor's width, or when either spacing or content padding exceeds the group's available width. (Id3bdf) - Wear Compose Material 3 Dialog now supports predictive back gestures from API 36 onwards, providing haptic feedback at the dismiss threshold and matching Navigation 3 exit transitions. (Id4c7c)
- Fixed a memory leak where the last revealed
SwipeToRevealitem kept its removed screen in memory. (Ied8b5) - Fixed an issue where
ButtonGroupScopemodifiers (weight,minWidth,animateWidth) never compared equal, causing unnecessary node updates and remeasurement on recomposition. (I5e95d) - Fixed an issue where
Modifier.oneHandedGesturecalledonGestureAvailableagain whenever the caller recomposed, resulting in repeated gesture indicator hints. The indicator hint is now only shown on the initial composition. (I0b514) - Ensure
onSwipePrimaryActionis triggered on full swipe inSwipeToReveal(Ia01ba) - Fixed an issue where circular screen paddings, transformation specs, and component dimensions in Wear Compose Material 3 shrunk when the Wear OS Global Status Bar reduced
Configuration.screenHeightDp. Wear Compose Material3 now uses thescreenWidthDp(rather thanscreenHeightDp) as the screen size, which does not shrink. (I34567) - Improved
AlertDialogperformance by avoiding double composition when content fits on the screen. Note thatAlertDialogslots (icon,title, andtext) are now measured with unbounded maximum height when content fits on the screen (matching the scrollable case), soModifier.fillMaxSize()andModifier.fillMaxHeight()applied inside those slots will no longer expand vertically. (I8963d) - Fixed a one-frame flash of the system status bar when
AppScaffoldenters composition. (Ic0e83) - Fixed an
IllegalStateExceptioncrash inSwipeToRevealwhen subcomposed inside aLookaheadScope(such as inside aTransformingLazyColumn). (I12b5b)
Version 1.8.0-alpha03
November 04, 2026
androidx.wear.compose:compose-*:1.8.0-alpha03 is released. Version 1.8.0-alpha03 contains these commits.
API Changes
- Integrate material3-ripple in Wear material3 and add support for inset focus rings, introduce
LocalRippleThemeConfigurationandRippleThemeConfigurationto support configuring focus indication, and deprecateRippleConfiguration.rippleAlpha. (Ifb63a) - Added
LocalTimeSourceto allow overridingTimeText's time source viaCompositionLocalin tests and previews. (Ic981a) - Added
Modifier.suppressStatusBar()to allow screens and components to suppress the status bar and automatically collapse top status bar insets. Removed the unreleasedStatusBarSuppression()composables; useModifier.suppressStatusBar()instead. (I0a0d6)
Bug Fixes
Dialognow only uses a full-screen offscreen layer while it is animating or being swiped, reducing GPU memory usage while it is shown and idle. (I65baf)- Fixed an issue where state written from a background thread while
TransformingLazyColumnwas measuring could be lost. (I3ed10) - Fixed a bug in
OneHandedGestureDefaults.scrollDownToNextItemso that the first double pinch gesture always scrolls down, even when the list is at the top and the first item sits below the anchor point.
Version 1.8.0-alpha02
October 21, 2026
androidx.wear.compose:compose-*:1.8.0-alpha02 is released. Version 1.8.0-alpha02 contains these commits.
API Changes
- Renamed
PullToRefreshDefaults.indicatorShapetoIndicatorShapeand changedPullToRefreshStateto an interface. (I95b98) - Added
showIndicatorDelayMillisparameter toModifier.oneHandedGestureto customize the delay beforeonGestureAvailableis invoked. Defaults toOneHandedGestureDefaults.ShowIndicatorDelayMillis(1 second). (I38cc7) - Added
StatusBarSuppressionoverload with a content lambda to allow wrappingScreenScaffoldand suppressing the System Status Bar top-down while automatically resetting top content padding to 0.dp. (I18ff9) - Added a discrete integer steps overload and
showMinimumSegmentparameter to Material 3Slider. (Idce23) - Removed experimental feature flag
WearComposeFoundationFlags.isWarpingCurvedTextEnabled. Warped curved text is now always enabled by default. (Ifc5c2) - Removed experimental feature flag
WearComposeMaterial3Flags.isSwipeToRevealDualFlingThresholdEnabled. The dual fling threshold behavior inSwipeToRevealis now always enabled. (Ia8036)
Bug Fixes
- Fixed a 1-frame visual glitch where
TimeTextwould momentarily appear when entering composition on an already scrolled-down list. (Id13da) - Fixed an issue where
ScreenScaffoldScrollIndicatorwould not reappear on scroll after idling when used without an enclosingAppScaffold. (I445e5) - Fixed an issue where
PullToRefreshBoxindicator remained stuck on screen whenonRefreshdid not transitionisRefreshingtotrue. (I097e2) - Added
PullToRefreshto Wear Compose Material 3 baseline profile. (Ib8e13) - Update
PredictiveBackSceneto switchLocalScreenIsActive.currentto the target screen on navigation instantly. (I3904b) - Fixed an issue in
TransformingLazyColumnScrollInfoProviderwhereanchorItemOffsetfailed to reset to zero when content padding shrank while scrolled. (I779a0) - Fixed
TransformingLazyColumnState.animateScrollToItemto smoothly center the target item without a final jump when items usetransformedHeight. (I429c8) - Fixed an issue in
ScalingLazyColumnScrollInfoProviderwhereanchorItemOffsetfailed to reset to zero when content padding shrank while scrolled. (Ie8b06) - Fixed
TransformingLazyColumnanimation issues by disabling animations during raw scroll passes. (Iacfb4) - Added AndroidManifest.xml file for Wear Compose Material3, which configures the com.google.wear.ENABLE_GLOBAL_STATUS_BAR meta-data tag(Ic8804)
Version 1.8.0-alpha01
October 07, 2026
androidx.wear.compose:compose-*:1.8.0-alpha01 is released. Version 1.8.0-alpha01 contains these commits.
API Changes
- Added new
AppScaffoldandScreenScaffoldoverloads without thetimeTextparameter, establishing the recommended direction for Wear Compose 1.8 to migrate to the new System Status Bar. When running on older builds without System Status Bar, these new overloads fall back to defaultTimeText. The existing overloads now migrate to the System Status Bar by default unless an explicit customtimeTextis provided. (I40a5e) - Added
StatusBarSuppressionhelper composable to suppress the System Status Bar within full-screen and overlay components. (I387c3) - Introduced Modifier.
curveToEdge, which uses a shader to curve a component to the border of the parent container around the center, always treating the container as a circle. Known issues: clickable components will have incorrect clickable bounds andTalkBackdoes not highlight components correctly. (I8bbaa) - Added
PullToRefreshBoxandPullToRefreshStateto Wear Compose Material 3, with drag distances and refresh thresholds tailored for Wear OS devices.(Iee9a5) - Promoted
PullToRefreshBox,PullToRefreshDefaults, andPullToRefreshStateto stable public APIs in Wear Compose Material 3. (I079b6) - Adds an overload of
SwipeToRevealwith a transformation parameter to support container transformations inTransformingLazyColumn. (I328ce) - Libraries now target Kotlin 2.2 and require kotlinc 2.2 (I82396, b/498369605)
- Removed experimental feature flag
WearComposeFoundationFlags.isTransformingLazyColumnClickableThresholdEnabled. The clickable threshold inTransformingLazyColumnis now always enabled. (Ib68c8) - Removed experimental flag
WearComposeFoundationFlags.isTransformingLazyColumnPinnableContainerEnabled. (Ibad2e)
Bug Fixes
- Fixed bug in Wear Compose Foundation
HorizontalPager, where the gesture handling failed to prioritize correctly between paging and swiping to dismiss. (I54caf) - Added
Modifier.testTag("time_text")toTimeTextso that it can be detected in test cases where System Status Bar falls back to a defaultTimeTextcomposable. (Iacb09) - Fixed
IllegalStateExceptioninOneHandedGestureModifier.updateCompositionLocalscaused by accessing nodes before attachment. (I662271) - Added
AlertDialoggesture support, so that scrolling down andConfirmbutton clicks are available by default. (I51f81) - Fixed in-app
TimeTextflash when transitioning to inherited status bar by improving visibility suppression logic inScreenContent. (I12dd01) - Fixed an issue where components suppressing the System Status Bar (such as Stepper) fell back to rendering an in-app
TimeText. (I86830) - Fixed
StatusBarSuppression()to respectLocalStatusBarEnabledwhen the global status bar is disabled, preventing unnecessary layout passes in dialogs. (I4f77f6) - Fixed an issue in Wear Material3
ScaffoldwherecurrentScrollInfoProviderdid not inherit from underlying screens when the top screen provided null. (I97874) - Added support for
Dialogstatus bar suppression and nestedScreenScaffolds in Wear Material3 Scaffold. (I01772) - Fixed an issue in
AppScaffoldwhere the status bar overlay reappeared while scrolling when the top anchor item. (I421b3) - Fixed an issue where
ScreenScaffoldtop padding collapsed when opening screens with a disabled status bar mode. (I7cf4f) - Added multi-window status bar orchestration support to Wear Compose Material3 scaffolds, allowing dialogs and separate windows to drive their own system status bar controllers. (Ibf82c)
- Made
TransformingLazyColumnrobust to negative item spacings (I99ac7) - Optimized gesture indicators by replacing indicator pointer background in the resources with canvas functions using paths. (Iee2b7)
- Optimized gesture indicators by replacing primary and dismiss AVDs in the resources with draw functions using paths. (Ib2d05)
androidx.lifecycle:lifecycle-runtimedependency was updated to 2.10.0. This version is required for bundled lifecycle runtime lint checks to run with AGP version 9.5.0-alpha04 or later. (I99bfd, b/556807521)- Updated baseline profiles for Wear Compose Foundation, Material3, and Navigation3 libraries. (I9b0a3)
Version 1.7
Version 1.7.2
November 18, 2026
androidx.wear.compose:compose-*:1.7.2 is released. Version 1.7.2 contains these commits.
Bug Fixes
- Fixed an issue where
Modifier.oneHandedGesturecalledonGestureAvailableagain whenever the caller recomposed, resulting in repeated gesture indicator hints. The indicator hint is now only shown on the initial composition. (I0b514)
Version 1.7.1
October 07, 2026
androidx.wear.compose:compose-*:1.7.1 is released. Version 1.7.1 contains these commits.
Bug Fixes
- Fix
OneHandedGestureHintScrollIndicatoranimation flicker (I650c6) - Remove scroll lock from
OneHandedGestureScrollIndicatorand manage indicator visibility inScreenScaffoldwith a composition local (I13050) - Fix
IllegalStateExceptioninModifier.oneHandedGesture(I35151)
Version 1.7.0
September 23, 2026
androidx.wear.compose:compose-*:1.7.0 is released. Version 1.7.0 contains these commits.
Important changes since 1.6.0:
- Introduced new API for one-handed gestures, consisting of gesture handlers for primary action (double-pinch) and dismiss action (wrist-turn) as well as animated indicators for clicking/scrolling/paging that show when the gestures are available.
- Added
PinnableContainersupport toTransformingLazyColumn, for holding an item in memory instead of disposing when the item is scrolled out of the viewport. TransformingLazyColumnnow has support for animating items as they move out of the viewport, allowing them to smoothly slide off-screen instead of fading out.- Added
firstLayoutItemProvidertoTransformingLazyColumnas an optional customization for the first layout item. When specified, the provider defines the item and its edge used as the initial placement reference, which is useful for controlling the direction of content-shifting when items are dynamically updated. - Improvements to
SwipeToRevealto support nested scroll, fast flings, a second haptic at the partial reveal state andactionContentSpacingfor the distance between the main content and the action buttons. - Introduced
@FrequentlyChangingValueand@RememberInCompositionannotations that provide lint warnings to prevent performance issues caused by reading high-frequency state updates or failing to remember objects during composition.
Bug Fixes
androidx.lifecycle:lifecycle-runtimedependency was updated to 2.10.0. This version is required for bundled lifecycle runtime lint checks to run with AGP version 9.5.0-alpha04 or later. (If8e16)
Version 1.7.0-rc01
September 09, 2026
androidx.wear.compose:compose-*:1.7.0-rc01 is released. Version 1.7.0-rc01 contains these commits.
- This release updates the Compose for Wear OS 1.7.0 version to a release candidate, but there are otherwise no significant changes from the 1.7.0-beta02 release.
Version 1.7.0-beta02
August 26, 2026
androidx.wear.compose:compose-*:1.7.0-beta02 is released. Version 1.7.0-beta02 contains these commits.
Bug Fixes
- Updated baseline profiles for Wear Compose Foundation, Material3, and Navigation3 libraries. (I9b0a3)
- Fix gesture hint animation flicker in
OneHandedGestureScrollIndicator. (6e0c1cb)
Version 1.7.0-beta01
August 12, 2026
androidx.wear.compose:compose-*:1.7.0-beta01 is released. Version 1.7.0-beta01 contains these commits.
The 1.7.0-beta01 release of Compose for Wear OS indicates that this release of the library is feature complete and the API is locked. Wear Compose 1.7.0-beta01 includes the following new functionality:
- One-handed gesture support, consisting of gesture handlers for primary action (e.g. double-pinch) and dismiss action (e.g. wrist-turn) and animated indicators that show when the gestures are available on clickable UI elements (like buttons and cards), scrollable lists and pagers.
- Added
PinnableContainersupport toTransformingLazyColumn, for holding an item in memory instead of disposing when the item is scrolled out of the viewport. TransformingLazyColumnnow has support for animating items as they move out of the viewport, allowing them to smoothly slide off-screen instead of fading out.- Added
firstLayoutItemProvidertoTransformingLazyColumnas an optional customization for the first layout item. When specified, the provider defines the item and its edge used as the initial placement reference, which is useful for controlling the direction of content-shifting when items are dynamically updated. - Improvements to
SwipeToRevealto support nested scroll, fast flings, a second haptic at the partial reveal state andactionContentSpacingfor the distance between the main content and the action buttons. - Introduced
@FrequentlyChangingValueand@RememberInCompositionannotations that provide lint warnings to prevent performance issues caused by reading high-frequency state updates or failing to remember objects during composition.
API Changes
- Renamed
GestureActiontoOneHandedGestureAction,GesturePrioritytoOneHandedGesturePriorityandGestureIndicatorSizetoOneHandedGestureIndicatorSize(Ifc7f4, b/522761843)
Bug Fixes
- Fixed an issue in
ScrollInfoProviderwhich causedTimeTextto flash or disappear when list items change or resized. (Ief762, b/537433564)
Version 1.7.0-alpha07
July 29, 2026
androidx.wear.compose:compose-*:1.7.0-alpha07 is released. Version 1.7.0-alpha07 contains these commits.
API Changes
- Refactored
OneHandedGestureAPIs, replacing Boolean indicator state (that required a reset after showing the indicator) with a suspend function to run the animation. Each type of indicator now has its own indicator state class, encapsulating the animation logic for that indicator. Renamed from fromkeytogestureIdinGestureConfiguration. (I7974f, b/522761843) - Add
CompactButtonsingle-slot content overload (Idaffc, b/527889640) - Add
PinnableContainersupport toTransformingLazyColumn(Id3dc9, b/492418172)
Bug Fixes
- Added and updated module-level documentation for Wear Compose Foundation, Material 3, and Navigation 3. (I111d7, b/498153783)
- Fixed an issue in
ScreenScaffoldwhere recompositions could cause un-rememberedScrollInfoProviderto reset scroll tracking state. (I8be02, b/524620765) - Address
IllegalArgumentException: maxWidth must be >= than minWidtherror caused by large horizontal paddings (I014e8, b/531192734) - Fix
EdgeButtonanimation on fast fling. (I9657f, b/512700520)
Version 1.7.0-alpha06
July 15, 2026
androidx.wear.compose:compose-*:1.7.0-alpha06 is released. Version 1.7.0-alpha06 contains these commits.
API Changes
- Move
ButtonContent,AppCardContentandTitleCardContentcomposables for Material3 intoButtonDefaultsandCardDefaultsobjects respectively. (I8d589, b/527889640) - Remove default value from
Modifier.oneHandedGesturegestureLabelparameter (Ica100, b/527068051) - Rename
gestureLabeltoonGestureLabelinModifier.oneHandedGestureand make it nullable, for consistency with othercontentDescriptionparameters (I952a8, b/527068051) - Introduce
OneHandedGestureIndicatorStateto coordinate visibility and animation betweenModifier.oneHandedGesture()and gesture indicators. ReplaceInteractionSourcewith this state-driven approach for improved lifecycle control. AddwrapAroundparameter toOneHandedGestureDefaults.scrollToNextPagefor consistency with other default gesture scroll functions. (I9e1e3, b/522761843)
Bug Fixes
- Clarify
interactionSourcedocumentation forModifier.oneHandedGestureto state which interactions are emitted (I2dc8d) - Support for one-handed gestures in
AlertDialogby default has been removed temporarily, due to issues with the dependency on the Wear SDK in consumers that are otherwise not using the Wear SDK or one-handed gestures. (Ib19e0, b/503841738) - Enhanced
TransformingLazyColumnto support placement animations for items moving out of the viewport, allowing them to slide off-screen instead of fading out. Also fixed a visual snapping issue where dynamically scaled items would instantly snap to their target height during placement animations (I89d84, b/525071281) - Use index-based
ItemInfoinfirstVisibleItemLayoutItemInfo. (I256e3, b/527881678) - Fixed
TimePickeranimation behavior when Reduce Motion is enabled. (Ic9150, b/467288916)
Version 1.7.0-alpha05
July 01, 2026
androidx.wear.compose:compose-*:1.7.0-alpha05 is released. Version 1.7.0-alpha05 contains these commits.
API Changes
Added the
TransformingLazyColumnFirstLayoutItemProviderinterface in Foundation to enable customization of content that shifts direction during content updates, accompanied by out-of-the-boxrememberTransformingLazyColumnFirstLayoutItemProviderandrememberTransformingLazyColumnFirstVisibleItemProviderimplementations in Material3. (I54814, b/503353428)Renamed the fallback parameter from
currenttocenterIteminTransformingLazyColumnFirstLayoutItemProvider. AddedTransformingLazyColumnStateextensionsfirstVisibleItemLayoutItemInfoandlayoutItemInfoOf, and updatedrememberTransformingLazyColumnFirstLayoutItemProviderto use a clean, parameter-based lambda. (I9a8d9, b/503353428)Add overloads for multi-slot Material3 Button and Card content, for use with one-handed gestures. (I74ccb, b/515718015, b/490343658)
Add accessibility support to one-handed gestures. (I0054d, b/519085906)
Rename
OneHandedGestureDefaults.scrollToNextItem()toOneHandedGestureDefaults.scrollDownToNextItemand addwrapAroundparameter toOneHandedGestureDefaultsscroll functions (I940ce, b/509639667)Add non-composable
Modifier.oneHandedGesture()if developer wants to provide the key manually. (I191e1, b/504712626)Rename
offsetOfAPI inRevealStatetopositionOf. (I2675f, b/522387997)Introduced
actionContentSpacingparameter toSwipeToReveal, allowing developers to customize the distance between action slots and the content. (I2abaf, b/507073912)
Bug Fixes
- Fixed an issue in
ScreenScaffoldwhere recompositions could cause un-rememberedScrollInfoProviderto reset scroll tracking state. (I98f6d, b/524620765) TransformingLazyColumnscrollbar color follows gesture indicator background color during indicator animation (I353fb, b/524915104)- Changed
OneHandedGestureIndicatordefaultgestureIndicatorTinttoLocalContentColor(I1abd3, b/524228063) - Parameterize the content description of
DatePicker's day and year pickers to support localization. (I5dcd9, b/430563857) - Introduce adaptive display frequencies to
GestureIndicatorsbased on whether an indicator renders inside or outside its host UI component. (Ic618f, b/515071642) - Fix concurrency issue when triggering one-handed gestures (I7b95f, b/512086558)
Version 1.7.0-alpha04
June 03, 2026
androidx.wear.compose:compose-*:1.7.0-alpha04 is released. Version 1.7.0-alpha04 contains these commits.
API Changes
- Added
RevealState.drag(),SwipeToRevealDragScope, and exposed customflingBehaviorinSwipeToRevealto enable programmatic control over swipe gestures, offsets, and settling animations. (Ibfe56, [b/484185090] - Expanded
OneHandedGestureIndicatorto support both Primary and Dismiss actions, migrating its binding architecture toInteractionSourcefor automated lifecycle management. (I7e893, [b/512836472] - Added new gesture-based scrolling for ScalingLazyColumn-based components and Alert Dialogs. This update introduces a default 50% screen scroll for better predictability and includes an optional snap-to-item mode for precise navigation. (Ie9cfb, [b/509639667]
- Replace Wear Compose Material3's
isOneHandedGesturesInAlertDialogEnabledflag withLocalOneHandedGestureEnabledCompositionLocal, which can be used to disable one-handed gestures across component hierarchies. (Ib9240, [b/516777416] - Deprecated
ButtonDefaults.ExtraSmallIconSizeandButtonDefaults.SmallIconSize. These defaults were specific toCompactButtonand have been moved toCompactButtonDefaults.ExtraSmallIconSizeandCompactButtonDefaults.SmallIconSizerespectively. (Id747c, [b/513588028]
Bug Fixes
- Fix
EdgeButtonanimation on fast fling. (I88215, [b/512700520] - Fix
AppScaffoldTimeTextnot updating on recomposition. (Iecea5, [b/512439755] ScreenScaffoldshould explicitly use thePaddingValuesprovided by the inner content lambda. (I20d71, [b/512355364]- Introduced @
FrequentlyChangingValueand @RememberInCompositionannotations to provide lint warnings to prevent performance issues caused by reading high-frequency state updates or failing to remember objects during composition. (I955f4, [b/409488336] - Ensure the ripple effect originates from the center of the button when a one-handed gesture is triggered for
Buttoncomposables. (Ie61ec, [b/514600304] - Resolved a key collision issue in
Modifier.oneHandedGestureby incorporating gesture action and priority into the auto-generated key. (I49760, [b/517045657]
Version 1.7.0-alpha03
May 19, 2026
androidx.wear.compose:compose-*:1.7.0-alpha03 is released. Version 1.7.0-alpha03 contains these commits.
API Changes
- Add non-composable
Modifier.oneHandedGesture()if developer wants to provide the key manually. (I191e1, b/504712626) - Remove gesture indicators from
OneHandedGestureDefaultsand add color support to one-handed gestures (I7934f, b/505009712, b/504712626) - Added explicit handling for one-handed dismiss gestures in
AlertDialog. (Id71e8, b/509675781) DeferredTargetAnimationis no longer experimental, please remove opt-in. (I1e4ae, b/500030165)
Bug Fixes
- Fix concurrency issue when triggering one-handed gestures (I7b95f, b/512086558)
- Fixed that one-handed gesture indicators are mirrored based on wrist orientation rather than
LayoutDirection. (I6db5d, b/512003346) - Fix border drawing on TLC items (I0c3c1, b/510772213)
- Added inline image previews for samples in Kdoc for
SurfaceTransformation.kt,SwitchButton.kt andTextButton.kt. These images will now render in the documentation for Wear Compose Material 3 DAC pages, providing developers with immediate visual context for each button variant and example. (Ib53ae, b/484905061) - Added inline image previews for all samples in Kdoc of Button.kt. These images will now render directly in the documentation on the Wear Compose Material 3 DAC pages, providing developers with immediate visual context for each button variant and example. (Ie2fb5, b/484905061)
- Added inline image previews for samples in KDoc within
Card.kt,IconButton.kt,LevelIndicator.kt, andListHeader.kt. These images will now render in the documentation for Wear Compose Material 3 DAC pages. (I371bc, b/484905061) - Added inline image previews for samples in KDoc for
Picker,SegmentedCircularProgressIndicator,Slider, andStepper. These images will now render in the documentation for Wear Compose Material 3 DAC pages, providing developers with immediate visual context for these components and examples. (I6c6ef, b/484905061) - Added inline image previews for samples in KDoc for
CheckboxButton,SplitCheckboxButton,CircularProgressIndicator,ConfirmationDialog,SuccessConfirmationDialog,FailureConfirmationDialog, andcurvedText. These images will now render in the documentation for Wear Compose Material 3 DAC pages, providing developers with immediate visual context for these components and examples. (Ie4662, b/484905061) Fix AlertDialogScreenshotTest test(I9be58, b/508678506)- Added inline image previews for samples in KDoc for
NonClickableCard,OpenOnPhoneDialog,VerticalPageIndicator,VerticalPagerScaffold, andRadioButton. These images will now render in the documentation for Wear Compose Material 3 DAC pages, providing developers with immediate visual context for these components and examples. (I2aa2d, b/484905061)
Version 1.7.0-alpha02
May 06, 2026
androidx.wear.compose:compose-*:1.7.0-alpha02 is released. Version 1.7.0-alpha02 contains these commits.
Bug Fixes
- Fixed
GestureIndicatorsize inAlertDialogs(I0c16e, b/504912009) - Adjusted
LeftRevealed/RightRevealedanchors ofSwipeToRevealfor out-of-bounds revealed positioning. (Id84ff, b/498681589) - Add state description to
CheckboxandSwitch(Iba12e, b/485098874) - Fixed a visual bug in
FadingExpandingLabelwhere old text would flash when the number of lines decreased. (Ia40c9, b/503709020) - Add default one-handed gesture support to
Material3 AlertDialog(I5848e, b/479098589) - Built-in visibility logic in one-handed has been removed (I8c602, b/502903320)
Version 1.7.0-alpha01
April 08, 2026
androidx.wear.compose:compose-*:1.7.0-alpha01 is released. Version 1.7.0-alpha01 contains these commits.
API Changes
- Introduced new API for one-handed gestures, where prioritized callbacks may be registered for primary and dismiss actions. The system automatically identifies the most relevant on-screen target to ensure gestures and their indicators are only triggered for elements the user can currently see and interact with. Add
Modifier.oneHandedGestureto the composable associated with the gesture (e.g. Button) and useOneHandedGestureDefaults.GestureIndicatorto indicate to the user when the gesture action is available. Scrolling and paging can also be triggered with the primary gesture, withOneHandedGestureDefaults.scrollDownandOneHandedGestureDefaults.scrollToNextPagerecommended to be used in the callbacks.OneHandedGestureDefaults.ScrollGestureIndicatorandOneHandedGestureDefaults.VerticalPageGestureIndicatorare provided as alternatives toScrollIndicatorandPageIndicatorrespectively, to temporarily display a gesture indicator to the user. (Ic6324, b/479098447, b/485488443) - Added
requestAnchorItemtoTransformingLazyColumnStateand introducedTransformingLazyColumnAnchorTypeto provide developers precise control over item expansion direction and layout anchoring. (I0c1e6, b/494301025) - Added
isSwipeToRevealDualFlingThresholdEnabledflag, which is on by default, but can be disabled if bug fixes to swipe behavior inSwipeToRevealin this release cause a regression (in which case, please file a bug as soon as possible) (Ie6db6, b/497743775)
Bug Fixes
- Improved
SwipeToRevealto support fast flings, allowing users to fully reveal actions regardless of swipe distance (this change can be disabled by turning off isSwipeToRevealDualFlingThresholdEnabled flag). (I833fd, b/490728860) - Fixed
SwipeToRevealto trigger the full swipe when swiping over 75% of the screen width (this change can be disabled by turning offisSwipeToRevealDualFlingThresholdEnabledflag). (Id5604, b/490728860) - Added a second haptic feedback for
SwipeToRevealwhen the swipe reaches the partial reveal state (this change can be disabled by turning offisSwipeToRevealDualFlingThresholdEnabledflag). (Ic27e3, b/492273799) - Fixed an issue in
TransformingLazyColumnwhere item animations (Modifier.animateItem) stopped working. (I904ec, b/493167084) - Fixed a bug in
PickerGroup(and henceDatePicker) to prevent multiple touches causing intended scrolling on unselected Picker columns (Id76c5, b/378646798)
Wear Compose Version 1.6
Version 1.6.2
May 19, 2026
androidx.wear.compose:compose-*:1.6.2 is released. Version 1.6.2 contains these commits.
Bug Fixes
Fix border drawing on
TransformingLazyColumnitems (I0c3c1, b/510772213)Fix
itemSpacingassignment inTransformingLazyColumncontent padding measurement strategy (I12d2f, b/498137919)
Version 1.6.1
April 08, 2026
androidx.wear.compose:compose-*:1.6.1 is released. Version 1.6.1 contains these commits.
Bug Fixes
- Fixed an issue where item animations (via
Modifier.animateItem) stopped working inTransformingLazyColumn. (I904ec, b/493167084)
Version 1.6.0
March 25, 2026
androidx.wear.compose:compose-*:1.6.0 is released. Version 1.6.0 contains these commits.
Important changes since 1.5.0:
- Introduced Wear Compose Navigation3 library, which integrates with the Navigation 3 library’s
NavDisplayandSceneStrategycomponents, adding Wear-specific swipe-to-dismiss logic using our newSwipeDismissableSceneStrategy. - Added
TransformingLazyColumnsupport forreverseLayout, snapping usingTransformingLazyColumnDefaults.snapFlingBehaviorandModifier.minimumVerticalContentPadding, which allows defining a preferred content padding for items in the list when they are at the top or bottom edges. - Added new overloads for
AlertDialogwhich use aTransformingLazyColumnfor consistency with scrolling in other Material3 screens. - Improved curved text rendering, particularly for cursive fonts, with the introduction of text-warping via the new
CurvedTextStyleparameterwarpOffset, which is turned on by default for API 34 onwards. - Added
LocalAmbientModeManager, a newCompositionLocalthat supports defining different UI and behavior for interactive and ambient modes. - For a more complete list of the features introduced in version 1.6.0, see the beta01 release notes
Version 1.6.0-rc01
March 11, 2026
androidx.wear.compose:compose-*:1.6.0-rc01 is released. Version 1.6.0-rc01 contains these commits.
- This release updates the Compose for Wear OS 1.6.0 version to a release candidate, but there are otherwise no significant changes from the 1.6.0-beta01 release.
Version 1.6.0-beta01
February 25, 2026
androidx.wear.compose:compose-*:1.6.0-beta01 is released. Version 1.6.0-beta01 contains these commits.
The 1.6.0-beta01 release of Compose for Wear OS indicates that this release of the library is feature complete and the API is locked (except where marked as experimental). Wear Compose 1.6.0-beta01 includes the following new functionality:
- Wear Compose Navigation3 library, which integrates with the Navigation 3 library’s
NavDisplayandSceneStrategycomponents, adding Wear-specific swipe-to-dismiss logic using our newSwipeDismissableSceneStrategy. - Added
TransformingLazyColumnsupport forreverseLayout, snapping usingTransformingLazyColumnDefaults.snapFlingBehaviorandModifier.minimumVerticalContentPadding, which allows defining a preferred content padding for items in the list when they are at the top or bottom edges. - Added new overloads for
AlertDialogwhich use aTransformingLazyColumnfor consistency with scrolling in other Material3 screens. - Improved curved text rendering, particularly for cursive fonts, with the introduction of text-warping via the new
CurvedTextStyleparameterwarpOffset, which is turned on by default for API 34 onwards. - Added
LocalAmbientModeManager, a newCompositionLocalthat supports defining different UI and behavior for interactive and ambient modes. - Updated
TimePickerto support a newMinutesSecondstype and include a newinitialSelectionparameter to specify the initially selected time component. - New overloads on Cards to provide non-clickable variants where the cards are presentational only and are not intended to respond to user clicks.
- Added
LocalRippleConfigurationto provide control over ripple appearance. - Introduced
snapSensitivityparameter forRotaryScrollableDefaults.snapBehaviorandPagerScaffoldDefaultsnow includes the recommended default values forSnapPositionalThresholdandHighSnapPositionalThresholdfor use withPagerDefaults.snapFlingBehavior.
API Changes
- Renamed recommended default values for
Modifier.minimumVerticalContentPaddingfromminimumListVerticalContentPaddingtominimumVerticalListContentPaddingto emphasize that this content padding refers to the list, and updated associated documentation. (I496ca, b/426154225) - Curved text now does warping by default, improving curved text rendering, especially for cursive fonts. (I6979d, b/450526792, b/481617443)
Bug Fixes
- Fix interaction between TLCs
animateItemandminimumVerticalContentPadding. (Ia865c, b/483663045) - Warped offset for curved text is now only on by default for API 34 onwards, due to dependency on
PathIteratorfrom theandroidx.graphics.pathlibrary which is unavailable for developer testing under Robolectric before API 34 (hence breaking existing developer tests). (Ie5bae, b/484319336) - Make warped curved text more robust. (If2b34, b/483390353)
- Updated
ConfirmationDialogDefaults.SuccessIconto ignore RTL layout direction so that the check mark is not reversed. (Ic6add, b/481966029)
Version 1.6.0-alpha10
February 11, 2026
androidx.wear.compose:compose-*:1.6.0-alpha10 is released. Version 1.6.0-alpha10 contains these commits.
API Changes
- Renamed
Modifier.responsiveVerticalPaddingtoModifier.minimumVerticalContentPadding, with padding parameters as Dp, instead of theResponsiveVerticalPaddinginterface. Moved recommended defaults fromResponsiveVerticalPaddingDefaultsinto component specific defaults objects such asButtonDefaults,CardDefaultsand so on (Icaab2, b/426154225) - Added
WearComposeFoundationFlags.isTransformingLazyColumnClickableThresholdEnabledto control new functionality introduced forTransformingLazyColumn, which now ignores clicks beyond a 20dp threshold at the top and bottom of the layout, to prevent accidental taps where the item is only partially visible. Also, updated the change to only intercept edge-item clicks on events that are within the touch slop, to avoid ignoring drag gestures. (I1ba28, b/480910891) rememberAmbientModeManagernow usesLocalActivityin its implementation to obtain the current Activity, rather than taking the Activity as a parameter (Idf114, b/473603258)- Changed
AmbientModeto be non-exhaustive for extensibility (I92cc3, b/473603258) - Updated
rememberSwipeDismissableSceneStrategyStateto remove theswipeToDismissBoxStateparameter, as that is an implementation detail for up to API 35 only (I5907c, b/476105162) - [TLC] Added
Modifier.responsiveVerticalPaddingtoTransformingLazyColumn, enabling automatic content padding adjustments to align with Wear OS Material 3 design guidelines. (Ia7e73, b/426154225)
Bug Fixes
- Updated
TransformingLazyColumnprefetching condition so that urgency is calculated based on the viewport edges without padding (I48d85, b/476420552) Pickernow supports seamless transparency over custom backgrounds like gradients or images, by passingColor.Unspecifiedas the Picker’sgradientColor. ForTimePickerandDatePicker, this effect can be achieved by locally overridingMaterialTheme.colorScheme.backgroundtoColor.Unspecified. (Icc476, b/458429791, b/458429791)- Introduced a 20dp clickability threshold for
TransformingLazyColumnitems at the top and bottom of the screen, to prevent accidental taps when items are largely hidden. (I2c9cb, b/443285887) - Improved reduced motion handling in
OpenOnPhoneDialog. (Ib1d12, b/48558283)
Version 1.6.0-alpha09
January 28, 2026
androidx.wear.compose:compose-*:1.6.0-alpha09 is released. Version 1.6.0-alpha09 contains these commits.
API Changes
- Rename
PagerScaffoldDefaults.SnapPositionalThresholdtoLowSnapPositionalThresholdandRotaryScrollableDefaults.SnapSensitivitytoLowSnapSensitivity(I157ee, b/449949891) - Removed modifier from
SwipeDismissableSceneStrategy. (Iff30f, b/449949891)
Bug Fixes
- Fix rotary over-scroll animation lag in snap behavior (I7db89, b/474016470)
- Fix
SwipeDismissableSceneStrategyblocking system back on API 36+ (Icf20b, b/476105162) - Fix
SwitchButtonanimation to scale/fade as a complete shape (I7a7eb, b/378644361) - Improve
CheckboxButtoncheck icon intro rotation animation (I89944, b/378646769)
Version 1.6.0-alpha08
January 14, 2026
androidx.wear.compose:compose-*:1.6.0-alpha08 is released. Version 1.6.0-alpha08 contains these commits.
API Changes
RotaryScrollableDefaults.snapBehaviorhas been updated to take a floatsnapSensitivityparameter, andPagerScaffoldDefaultsnow makes public the recommended defaultSnapPositionalThresholdandHighSnapPositionalThresholdvalues for use withPagerDefaults.snapFlingBehavior. (I7e11c, b/449949891)- Added snapping support to
TransformingLazyColumnfor both touch and rotary input. When configuring snapping, It is recommended to provide bothflingBehaviorusingTransformingLazyColumnDefaults.snapFlingBehaviorandrotaryScrollableBehaviorusingRotaryScrollableDefaults.snapBehaviorfor a consistent experience. (I5326f, b/422455104) - Introduced
LocalAmbientModeManager, a new composable to easily define different UI and behavior for interactive and ambient modes. (I00161, b/427724331)
Bug Fixes
- Fixed an issue where lists with rotary snap behavior would not bounce back after overscrolling. (I05216, b/470317969)
- Fixed an issue with the ripple effect for the increment and decrement buttons in Material3 Slider. The ripple now correctly extends the full width of the slider component. (I8c0c4, b/378658409)
Version 1.6.0-alpha07
December 17, 2025
androidx.wear.compose:compose-*:1.6.0-alpha07 is released. Version 1.6.0-alpha07 contains these commits.
API Changes
- Added
wear-compose:compose-navigation3library artifact (I01b5c, b/427463127) - Added a
SwipeDismissableSceneStrategyfor Wear integration withNavigation3. It can be used with aNavDisplayto display Wear Compose content. (I7aa08, b/427463127) - Introduce
ResponsiveTransformingLazyColumn, a new Material3 component that builds onTransformingLazyColumnfrom wear compose foundation and automatically calculates and applies responsive vertical padding based on the list content type. (I102f4, b/426154225)
Bug Fixes
- Fix an issue where
PageIndicatorwas not properly redrawn when the current page index within thePagerStatechanged (e.g., by callingscrollToPage()or usinganimateScrollToPage()with reduced motion). (I97150, b/465669950) - Fix
TransformingLazyColumnsemanticsscrollOffsetcalculation (Idec30, b/417941554) - Corrected
SwipeToRevealundo action padding (I770f8, b/382259843) - Implemented
PredictiveBackSceneto handleNavigation3for API36+. (Idedf6, b/427463127)
Version 1.6.0-alpha06
December 03, 2025
androidx.wear.compose:compose-*:1.6.0-alpha06 is released. Version 1.6.0-alpha06 contains these commits.
API Changes
- Added
LocalRippleConfigurationto provide control over ripple appearance (I9e0fa, b/382336566) - Added new overloads for
AlertDialogwhich use aTransformingLazyColumnto provide advanced control over item scrolling animations. Added layout improvements for larger screens. (I862ff, b/438468382) - Added transformation parameter to
ButtonGroup, for use with dynamically changing containers likeTransformingLazyColumn. (I8743b, b/453710565)
Bug Fixes
- Fix issue with
AlertDialogtitle and confirm/dismiss buttons appearing multiple times in composition (I8e1b0, b/463955367) - Make
TimeTextcode more robust when listening forTimeZoneChanges. (I1c276, b/457909952) - Improved performance of
SplitRadioButtonandSplitCheckboxButtonby reducing recomposition counts. (I3ddc9, b/455845192)
Version 1.6.0-alpha05
November 19, 2025
androidx.wear.compose:compose-*:1.6.0-alpha05 is released. Version 1.6.0-alpha05 contains these commits.
API Changes
- Introduce
RotarySnapSensitivityfor rotary snap behavior andPagerSensitivityfor pager fling behavior, to allow applications to adjust the sensitivity level of rotary and fling behavior, especially for pagers. (Ic3a83, b/449949891) - Simplified changes to
rememberTransformingLazyColumnStatethat were made with the introduction of reverse layout forTransformingLazyColumn, consolidating to a single function and using a sentinel value to use the default anchor index. (I09302, b/453731755) - Added a new default
GenericFailureIconto be used inFailureConfirmationDialog, which shows a generic error icon. Renamed existingFailureIcontoConnectionFailureIcon. (I8e965, b/453730430)
Bug Fixes
- Made
TimePickermore robust when parsing complex locale patterns. (I7b169, b/456538838) - Fixed the initial
TransformingLazyColumnlayout whenverticalArrangementisArrangement.Center. (Id18ef, b/451481233) - Aligned
TransformingLazyColumnStateconstructor withrememberTransformingLazyColumnStatefunction (I36d6a, b/453731755) - Updated the tick icon for
CheckboxButtonto be rounded. (Ie645e, b/378645751) - Updated the tick icon for
SwitchButtonto be rounded. (I31fbf, b/378642590) - Corrected
scrollToItemoffset inTransformingLazyColumnwhich was inverting the scrolling direction. (Ib2c93, b/451481233) - Improved
SwitchButtonandSplitSwitchButtonperformance. (I708de, b/448781327)
Version 1.6.0-alpha04
October 22, 2025
androidx.wear.compose:compose-*:1.6.0-alpha04 is released. Version 1.6.0-alpha04 contains these commits.
API Changes
- Implement
reverseLayoutforTransformingLazyColumn(I19f9e, b/352513793) - Added
ConfirmationDialogDefaults.VariantFailureIconfor use inFailureConfirmationDialog. This new generic error icon may be preferred in some cases, compared toConfirmationDialogDefaults.FailureIconwhich shows a broken connection to the phone. (Ifc851, b/443115305)
Bug Fixes
- Improved performance of Picker by refactoring the use of
LaunchedEffect. (I94519, b/418192973) - Fixed a bug in
SwipeDismissableNavHoston API36+, where pressing the back button during predictive back animation interrupted and restarted the animation. The implementation now usesSeakableTransitionState.animateToinstead of Animatable, which has a slight performance benefit. (I2241f, b/428156670) - Fixed a bug for accessibility announcement ordering in
AlertDialog, where the confirm button was announced as 'Button. Confirm' rather than the standard 'Confirm. Button'. (Ic2381, b/429378202) - Improve
TimePickernumber visibility on small screens. (I68386, b/447625365) - Removed Lazy Layout fork from Wear Compose Foundation - this means that
TransformingLazyColumnnow uses the Compose Foundation Lazy Layout implementation, including prefetching, and benefits from a performance improvement on frame timings in most cases. (Idd743, b/445911630)
Version 1.6.0-alpha03
October 08, 2025
androidx.wear.compose:compose-*:1.6.0-alpha03 is released. Version 1.6.0-alpha03 contains these commits.
API Changes
- Added parameter to
TimePickerto specify the initially focused time component. The selection defaults to the first available component based on the locale andTimePickerType. (Ie5dfe, b/437015874) - Removed unused
targetProgressparameter inCircularProgressIndicatordrawCircularProgressIndicatormethod. (Ieeb3c, b/430544552)
Bug Fixes
- Implement missing support for
TransformingLazyColumnverticalAlignment- now supports standard arrangements that are top, bottom or center-based. (I2e630, b/444143326) - Improve curved text width computation to account for spaces before and after text (may break screenshots that include curved text, especially when it has a background like
TimeText). (I924a4, b/446601899) - Updated Compose Foundation’s
WarpedCurvedTextRendererto opt forEmojiCompatInitializerfromandroidx.emoji2to fix a runtime class error. (I589b4, b/444422736) - Updated
ScalingLazyColumnto focus on the scrollable node withCollectionInfo, so that it works with rotary in more contexts, such as on theMaterial3AlertDialog. (I6be3c, b/445332360)
Version 1.6.0-alpha02
September 24, 2025
androidx.wear.compose:compose-*:1.6.0-alpha02 is released. Version 1.6.0-alpha02 contains these commits.
API Changes
- Improved curved text rendering, particularly for cursive fonts, with the introduction of text-warping using the new
CurvedTextStyleparameterwarpOffset. (If5dcb)
Bug Fixes
- Optimized item animation caching during scroll in
TransformingLazyColumn. (I62ae8) - The
OpenOnPhoneDialogandConfirmationDialogvariations have been updated to setFLAG_KEEP_SCREEN_ON, so that the animations run to completion and the dialogs self-dismiss as intended. (Iad7d4) - Fixed a bug where
Modifier.edgeSwipeToDismisscrashed when used withSwipeDismissableNavHoston API 36 onwards. (Ifc13d) - Updated documentation and comments associated with the new
CurvedTextStyle warpOffsetparameter to correctly refer to the Unspecified case. (I41aa5)
Version 1.6.0-alpha01
September 10, 2025
androidx.wear.compose:compose-*:1.6.0-alpha01 is released. Version 1.6.0-alpha01 contains these commits.
API Changes
- Added non-clickable variants for
Card,TitleCard,OutlinedCardandAppCard(I509bb, b/406690146) - Removed the
interactionSourceparameter from new non-clickable card APIs. (If0c7a, b/440323280) - Added a new
MinutesSecondstype to theTimePickercomponent, which displays only minute and second columns, omitting the hour column (Ia9e94, b/438004664)
Bug Fixes
- Fix
HorizontalPagerScaffoldusage of its modifier parameter so thatHorizontalPagerdoes not lose the page indicator if adding aModifier.fillMaxSize()(I07ae1, b/441682601) - Align
ScrollIndicatordirection with content layout direction by default. (I0da0f, b/441489028) - Fixed
ScrollAwayissue when used withTransformingLazyColumn.TimeTextwas not scrolling correctly after navigating to another screen and back. (Ic0ef1, b/433549148) - Corrected
TransformingLazyColumnreporting ofSCROLL_BACKWARDSandSCROLL_FORWARDSsemantics for edge cases at the top/bottom of the screen. (I5c28d, b/405205994) - Fix a bug in
SwipeDismissableNavHostthat in-progress transitions were not marked as completed after swiping back on API 36. (Ife72e, b/441089689) - Update the default
OpenOnPhoneMaxSweepAngleto 200 degrees to prevent some translations of ‘Check your phone’ being truncated. (Ib2e4c, b/428243902)
Wear Compose Version 1.5
Version 1.5.6
December 03, 2025
androidx.wear.compose:compose-*:1.5.6 is released. Version 1.5.6 contains these commits.
Bug Fixes
- Optimize item animation caching during scroll in
TransformingLazyColumn. (I62ae8, b/441701460) - The
OpenOnPhoneDialogandConfirmationDialogvariations have been updated to setFLAG_KEEP_SCREEN_ON, so that the animations run to completion and the dialogs self-dismiss as intended. (Iad7d4, b/437986990) - Fixed a bug where
Modifier.edgeSwipeToDismisscrashed when used withSwipeDismissableNavHoston API 36 onwards. (Ifc13d, b/441901722)
Version 1.5.5
November 05, 2025
androidx.wear.compose:compose-*:1.5.5 is released. Version 1.5.5 contains these commits.
Bug Fixes
- Improve
TimePickernumber visibility on small screens (I70fbe)
Version 1.5.4
October 22, 2025
androidx.wear.compose:compose-*:1.5.4 is released. Version 1.5.4 contains these commits.
Bug Fixes
- Improved performance of Picker by refactoring the use of
LaunchedEffect. (I94519, b/418192973) - Fixed a bug in
SwipeDismissableNavHoston API36+, where pressing the back button during predictive back animation interrupted and restarted the animation. The implementation now usesSeakableTransitionState.animateToinstead of Animatable, which has a slight performance benefit. (I2241f, b/428156670) - Fixed a bug for accessibility announcement ordering in
AlertDialog, where the confirm button was announced as 'Button. Confirm' rather than the standard 'Confirm. Button'. (Ic2381, b/429378202)
Version 1.5.3
October 08, 2025
androidx.wear.compose:compose-*:1.5.3 is released. Version 1.5.3 contains these commits.
Bug Fixes
- Implement missing support for
TransformingLazyColumnverticalAlignment- now supports standard arrangements that are top, bottom or center-based. (I2e630, b/444143326)
Version 1.5.2
September 24, 2025
androidx.wear.compose:compose-*:1.5.2 is released. Version 1.5.2 contains these commits.
Bug Fixes
- Optimized item animation caching during scroll in
TransformingLazyColumn. (I62ae8) - The
OpenOnPhoneDialogandConfirmationDialogvariations have been updated to set FLAG_KEEP_SCREEN_ON, so that the animations run to completion and the dialogs self-dismiss as intended. (Iad7d4) - Fixed a bug where
Modifier.edgeSwipeToDismisscrashed when used withSwipeDismissableNavHoston API 36 onwards. (Ifc13d) - Updated documentation and comments associated with the new
CurvedTextStyle warpOffsetparameter to correctly refer to the Unspecified case. (I41aa5)
Version 1.5.1
September 10, 2025
androidx.wear.compose:compose-*:1.5.1 is released. Version 1.5.1 contains these commits.
Bug Fixes
- Fix
HorizontalPagerScaffoldusage of its modifier parameter so that HorizontalPager does not lose the page indicator if adding aModifier.fillMaxSize()(I07ae1, b/441682601) - Align
ScrollIndicatordirection with content layout direction by default. (I0da0f, b/441489028) - Fixed
ScrollAwayissue when used withTransformingLazyColumn.TimeTextwas not scrolling correctly after navigating to another screen and back. (Ic0ef1, b/433549148) - Corrected
TransformingLazyColumnreporting ofSCROLL_BACKWARDSandSCROLL_FORWARDSsemantics for edge cases at the top/bottom of the screen. (I5c28d, b/405205994) - Fix a bug in
SwipeDismissableNavHostthat in-progress transitions were not marked as completed after swiping back on API 36. (Ife72e, b/441089689) - Update the default
OpenOnPhoneMaxSweepAngleto 200 degrees to prevent some translations of ‘Check your phone’ being truncated. (Ib2e4c, b/428243902)
Version 1.5.0
August 27, 2025
androidx.wear.compose:compose-*:1.5.0 is released. Version 1.5.0 contains these commits.
Important changes since 1.4.0
First release of the Wear Compose Material 3 library, which supports the new Material 3 Expressive design system. This release includes:
- Updated
MaterialThemeand dynamic color theming. - New
AppScaffold, ScreenScaffold,HorizontalPagerScaffold, andVerticalPagerScaffoldcomponents to lay out the structure of the screen and coordinateScrollIndicator,TimeText,HorizontalPageIndicator, andVerticalPageIndicatoranimations. - Shape morphing
IconButton,TextButton,IconToggleButton, andTextToggleButton, with variations that animate when pressed or checked. EdgeButton, which has a special shape designed for the bottom of the screen.ButtonGroupimplements an expressive group of buttons, in a row that shape-morphs when touched.AlertDialogandConfirmationDialogwith variations for additional dialog content.TimePickerandDatePickercomponents.- Progress indicators include
CircularProgressIndicator(with segmented variation),ArcProgressIndicator, andLinearProgressIndicator.
In addition, Wear Compose Foundation 1.5.0 includes the following:
TransformingLazyColumn, a lazy, vertically scrolling list that supports scaling and morphing animations.- Support for paging in Wear Compose Foundation with
HorizontalPagerandVerticalPager. - Hierarchical Focus Groups - used to annotate composables in an application to keep track of the active part of the composition and coordinate focus.
Read about more about (Material 3 Expressive for Wear OS)
Additional changes
- For a more complete list of the features introduced in version 1.5.0, see the (beta01 release notes).
Version 1.5.0-rc02
August 13, 2025
androidx.wear.compose:compose-*:1.5.0-rc02 is released. Version 1.5.0-rc02 contains these commits.
Bug Fixes
- Fixed a bug in
TimePickerwhere long, internationalised strings for the period (AM/PM) could break the layout. (I0fa81)
Version 1.5.0-rc01
July 30, 2025
androidx.wear.compose:compose-*:1.5.0-rc01 is released. Version 1.5.0-rc01 contains these commits.
Bug Fixes
TimePickeris now fully driven by the user's locale, usingDateFormat.getBestDateTimePatternto determine the order and content of its pickers and separators. This fixes incorrect column ordering for CJK languages, resolves RTL layout issues in languages like Arabic, uses localized separators, and supports both 0-11 and 1-12 hour formats based on the locale (I5d543)DatePickernow displays a numeric month in some locales, such as CJK, to avoid mixing numeric and linguistic formats (e.g., 2025 | 07 | 02 instead of 2025 | 7月 | 02). This change applies a heuristic that checks if the locale uses linguistic suffixes for the year and, if so, switches the month format from textual (MMM) to numeric (MM) for consistency. (Ia93fe)- The vertical space for the heading in the Picker component is now constant, preventing a visible shift when a picker column is selected, especially in
Talkbackmode. (I7f8b7) - Fixed an accessibility bug caused by
HorizontalPageIndicatorandVerticalPageIndicatorbeing drawn full screen. The page indicators are no longer full-screen, and will be positioned automatically when used withHorizontalPagerScaffoldorVerticalPagerScaffold. When not using a pager scaffold, specify the alignment explicitly usingmodifier = Modifier.align(Alignment.BottomCenter)withHorizontalPageIndicatorandmodifier =Modifier.align(Alignment.CenterEnd)withVerticalPageIndicator. (I3a0ad) - The swipe direction in
SwipeToRevealis now consistent for both LTR and RTLLayoutDirections. (I6d427) - Reinstated
SwipeToRevealvertical centering for actions. IfhasPartiallyRevealedState = true,RevealStateshould be reset toRevealValue.Coveredby the caller when scrolling occurs. (I6473d) SwipeDismissableNavHostnow correctly clips content for API 36 onwards. (Ib9a44)
Version 1.5.0-beta06
July 16, 2025
androidx.wear.compose:compose-*:1.5.0-beta06 is released. Version 1.5.0-beta06 contains these commits.
Bug Fixes
- Fix
EdgeButtonanimation whenLazyColumnorScalingLazyColumnhavereverseLayout = true. (I46a1a) - Fixed a bug in
ScreenScaffoldwhere touch-to-explore was not working under Talkback if aScrollIndicator/PageIndicatorwas provided. (I6dcee) TransformingLazyColumnnow allows for custom morphing fromTransformationSpecby readingitemHeightvalue provided byTransformationSpecin the background painter. (I6a599)- Animated enabled/disabled color transitions for
IconButton, to be consistent withIconToggleButton. (Ife10a) - Removed the minimum section clamping in
CircularProgressIndicatorto avoid a noticeable jump to the minimum dot size when animating. As part of this change, thetargetProgressparameter indrawCircularProgressIndicatoris now unused. (I33309) - Picker now has the semantic role
ValuePickerwhich can be used by screen readers to make pickers more accessible. Picker also has updated accessibility click labels which differentiate between adjusting the value in read-only mode and selecting the current value otherwise. (I33309)
Version 1.5.0-beta05
July 2, 2025
androidx.wear.compose:compose-*:1.5.0-beta05 is released. Version 1.5.0-beta05 contains these commits.
Bug Fixes
- Updated the documentation to clarify usage of
Modifier.edgeSwipeToDismiss(I78cb5) - Addressed bug where multiple revealed items could be shown with
SwipeToRevealin lazy lists (I1d4f6) - Container shapes in
TransformingLazyColumnare now scaled, in order to avoid clipping the contents. (I9221a) - The
TimePickerandDatePickerlabel for hour/minute/second or year/month/day now has heading semantics for screen readers (I77d8b) - Removed the pause between loops in the indeterminate
CircularProgressIndicator(Iaf0bb) - Fixed an animation bug in
TransformingLazyColumnwhen items are removed. (I73034) - Corrected handling of anchor items in
TransformingLazyColumnwhen items are removed. (I841a8) PickerGroupnow animates the Pickers horizontally when autocentering is turned on and the selected (centered) picker is changed. (Ic82c4)
Version 1.5.0-beta04
June 18, 2025
androidx.wear.compose:compose-*:1.5.0-beta04 is released. Version 1.5.0-beta04 contains these commits.
Bug Fixes
- Fix layout bug in
TransformingLazyColumn, where content that fits within the screen is now aligned correctly from the top of the screen (I80115) - Fixed an issue with
TransformingLazyColumnwhere the bottom item was incorrectly scaled when scrolling to the very bottom of a list with anEdgeButton. The scroll progress now follows a gradient descent when restoring the layout. (Iea375) TransformingLazyColumnnow reads the item height inside the background painter, which allows customTransformationSpecsto implement morphing. (I022f0)SwipeToRevealnow vertically centers the revealed actions correctly. (I4419b)- Fixed a bug in
SwipeToRevealthat prevented it working correctly with swipe-to-dismiss if both views and compose were in use on the screen. (I5dc0e) - Fixed a bug where
SwipeToRevealactions were drawn with a vertical offset when scrolling. (I29444) AlertDialog,ConfirmationDialog,OpenOnPhoneDialogandSwipeToRevealnow round up paddings and sizes that are calculated as a percentage of the screen size. (I76367)ButtonDefaults.outlinedButtonBordernow updates following enabled/disabled state changes size(If2ddd)- Fixed a bug in
EdgeButtonheight that occurred on complex screens with Pager andScreenScaffold. (I946e3) - Fixed a race condition that could cause Placeholder animations to stop. (I53530)
- Improved
HorizontalPageIndicatorandVerticalPageIndicatorperformance by drawing to Canvas. (Ifae1e) - Refined the shape of EdgeButton to smooth the transitions between the ellipsis and circles that make up the outline. (I7721e)
- Fixed a bug in
LevelIndicatorthat caused animations to stop, due to unnecessary recompositions. (I45d08)
Version 1.5.0-beta03
June 4, 2025
androidx.wear.compose:compose-*:1.5.0-beta03 is released. Version 1.5.0-beta03 contains these commits.
API Changes
OpenOnPhoneDialognow announces only the message text under TalkBack, and skips the icon semantics. TheOpenOnPhoneDialogDefaultshave been updated to remove theiconContentDescriptionand thecontentDescriptionparameter fromicon(). Also,ConfirmationDialogDefaultsnow has modifier parameters onSuccessIconandFailureIconcomposables. (Id2ae2)
Bug Fixes
- Changed the order in which we apply the effect of
SurfaceTransformationparameters. Before, the transformations applied to Wear Material3 components were done as follows: background painter, container transformation, content transformation. Now, the first 2 are inverted, and we apply any passed in modifier between them, so it is affected by container transformations. This fixes cases like using a placeholder shimmer effect with elements in a TLC using the transformation parameter. (I786cf) RevealState.Saverwas added to be used to restore the state ofSwipeToRevealwhen activity or process is recreated.rememberRevealStatefunction now uses this Saver by default. (Ie0ecb)SwipeToRevealprimary and secondary actions buttons should default toButtonDefault.Height(fixed bug where these were filling the maximum height for taller buttons). (Ibfba1)- Changed
SwipeToRevealto reset the last component interacted with, when the swipe right gesture is performed. (Ia8450) SwipeToRevealwas changed to settle on theRevealingstate when the end position of the swipe is in between the revealing and revealed anchors, and is closer to the Revealing anchor. (If4458)- Now
ButtonGroup's content is properly inverted in a RTL layout (Ib378d) AnimatedTextnow supports RTL text direction (I4533c)TransformingLazyColumnnow resizes items correctly when the bottom item is removed (Idacab)TransformingLazyColumnnow makes just one measuring pass, which improves performance by reducing frame times. (I501a1)
Version 1.5.0-beta02
May 20, 2025
androidx.wear.compose:compose-*:1.5.0-beta02 is released. Version 1.5.0-beta02 contains these commits.
Bug Fixes
- Updated baseline profiles for foundation, material & material3 libraries. (I53f06)
- Fixed a bug in
TransformingLazyColumn, where items resized when the bottom item was removed. (Idacab) - Fixed a bug with
TransformingLazyColumn, when the list got stuck at the top or bottom of the list. (I49d00) OpenOnPhoneDialogunder TalkBack should announce the curved text, rather than the icon content description. (I4efe8)- Fixed a bug in
SwipeToRevealthat would report the wrong anchor inRevealState.currentValuewhenhasPartiallyRevealedStateis set to false. (I9c7cf) SwipeToRevealundo buttons are nowButtonDefaults.Heightby default. (I1f6c8)BasicSwipeToDismissBoxperformance has been improved by eliminating use of Canvas for drawing scrims. (I68f2c)- Fixed an accessibility bug in Slider, where the announced percentage did not match the value after updates (I91146)
- Fixed a bug on
placeholderShimmerimplementation. (Iee39b TransformingLazyColumnperformance has been improved, by optimizingScrollProgresscalculation by 30%. (I4c4cb)
Version 1.5.0-beta01
May 7, 2025
androidx.wear.compose:compose-*:1.5.0-beta01 is released. Version 1.5.0-beta01 contains these commits.
The 1.5.0-beta01 release of Compose for Wear OS indicates that this release of the library is feature complete and the API is locked (except where marked as experimental).
Wear Compose 1.5.0-beta01 includes the Wear Compose Material3 library, which supports the new UI design system called Material 3 Expressive. It is recommended to upgrade from Material to Material3 to embrace the new visual design in apps, and to benefit from the new components as follows:
MaterialThemefor updated and extended color schemes, typography, and shapes to bring both depth and variety to your designs.- Dynamic Color Theming which automatically generates a color scheme for your app to match the watch face colors.
- New components automatically adapt to larger screen sizes by default
- Shape Morphing - round button components like
IconButton,TextButton,IconToggleButtonandTextToggleButtonsupport variations that animate when pressed or checked. EdgeButton- a new edge-hugging button with a special shape designed for the bottom of the screen.- Scaffolds - introducing
AppScaffoldandScreenScaffoldto lay out the structure of the screen and coordinateScrollIndicatorandTimeTextanimations. - Buttons - numerous stadium-shaped buttons are supported with flexible, single-slot containers and multi-slot variations for buttons with icons and labels.
CheckboxButtonandSwitchButtonare provided when toggle buttons are needed, whilstRadioButtonis the available selection button (‘Split’ variations of the toggle and selection buttons are also provided). ButtonGroup- implements an expressive group of buttons in a row that shape-morph when touched.AlertDialogvariations support ok/cancel buttons or anEdgeButton.ConfirmationDialogis available to display a message with a timeout, supporting special animations for success, failure and open-on-phone variations.- Pickers -
TimePickerandDatePickervariations are supported as well as the Picker andPickerGroupcomponents for building your own picker screens. ProgressIndicators- circular, and linear progress indicators are supported (theCircularProgressIndicatorhas segmented and indeterminate variations).- Cards - a number of card variations are available, including
TitleCardwhich offers specific layouts for cards with title, time, subtitle or content slots.TitleCardcan also be given an image background to reinforce the meaning of the information in a card. - Pagers -
HorizontalPagerScaffold,VerticalPagerScaffoldandAnimatedPagecomponents coordinateHorizontalPageIndicatorandVerticalPagerIndicatoranimations.HorizontalPagerandVerticalPagerare released in the Wear Compose Foundation library. - Placeholders - draws a skeleton shape over a component, for situations where no provisional content is available.
- Sliders and Steppers - both sliders and steppers allow users to make a selection from a range of values. Sliders are more compact and can be segmented, whereas Stepper is a full screen component typically paired with a
StepperLevelIndicator. SwipeToReveal- used to add additional actions to a composable when it is swiped right-to-left.
In addition, Wear Compose Foundation 1.5.0-beta01 includes these new components:
TransformingLazyColumn- a lazy, vertically scrolling list the supports scaling and morphing animations- Hierarchical Focus Groups - used to annotate composables in an application, to keep track of the active part of the composition and coordinate focus.
- Pagers -
HorizontalPagerandVerticalPagercomponents, built on the Compose Foundation components with Wear-specific enhancements to improve performance and adherence to Wear OS guidelines.
API Changes
- Updated the Hierarchical Focus API - renamed
Modifier.hierarchicalFocustoModifier.hierarchicalFocusGroupand removed the callback parameter; removed the overload ofModifier.hierarchicalFocusRequesterwith aFocusRequesterparameter; created a newCompositionLocal,LocalScreenIsActiveso that components can inform and check which screen is the active one. (I5ff7c). - Deprecated
SwipeToRevealfrom Wear Compose Foundation in favor ofSwipeToRevealAPIs in Wear Compose Material and Wear Compose Material3. Please replace Wear FoundationSwipeToRevealimports with Wear Compose Material/ Wear Compose Material3 imports to continue using the APIs. (Ia147d). - Wear Compose Material3
SwipeToRevealdependencies on Foundation were moved to the material3 package, e.g.RevealValue,RevealDirection,RevealActionType,RevealState,rememberRevealState. Developers should change their imports of these classes and functions fromandroidx.wear.compose.foundationtoandroidx.wear.compose.material3. (I640e6). - Updated the Wear Compose Material3
SwipeToRevealAPI as follows: addedprimaryAction,onFullSwipe,secondaryAction,undoPrimaryAction,undoSecondaryActionandhasPartiallyRevealedStateparameters to theSwipeToRevealcomposable; removed the ability to customizepositionalThresholdandanimationSpecfromRevealState; removedlastActionType,revealThresholdand width fromRevealState; changed theRevealStateconstructor to accept aRevealDirectioninstead of anchors; removedcreateRevealAnchors, anchors, andbidirectionalAnchorsfunctions;SwipeToRevealScopefunctionsprimaryAction,secondaryAction,undoPrimaryActionandundoSecondaryActionwere renamed toPrimaryActionButton,SecondaryActionButton,UndoActionButtonand made into Composable functions; markedRevealActionTypeas internal. (I885d0). - Further updated
SwipeToRevealAPI as follows: renamedonFullSwipetoonSwipePrimaryAction; renamedSwipeToRevealNonAnchoredSampleto indicate the use of thehasPartiallyRevealedStateparameter; removedactionButtonHeight, since the default is the Button's default height and the larger height can be set using a modifier; removed theSmallActionButtonHeightfromSwipeToRevealDefaults; made the value parameter inRevealValueandRevealDirectionconstructors private. (I465ce).
Bug Fixes
- Fixed
ScreenScaffold’sEdgeButtonhandling so that, after aTransformingLazyColumnitem is removed, theEdgeButtonis animated into place. (I6d366). - Updated Wear Compose dependencies on Compose libraries to version 1.8.0. (I2ef3f).
- Updated the motion of the indeterminate
CircularProgressIndicatorso that it no longer regresses temporarily. (Ieddb1). - Fixed a
SwipeDismissableNavHostbug - the focus was not switching correctly after swiping back, causing rotary input to fail (this was for API 36+, which uses predictive back). (Ieddb1). - Amended documentation for the Hierarchical Focus API (Idf2ff).
- Updated the documentation for Button and Card to state how
containerPainteranddisabledContainerPainteroverridecontainerColoranddisabledContainerColor(I4a453). - Reverted a change to
TimeTextin the previous release which moved theBroadcastReceiverto a worker thread, because it caused issues for apps that manage their own threading during navigation. (I34d02). - Updated the Picker samples to remove unnecessary remember calls and instead use
rememberUpdatedStatein Picker to remember the latestcontentDescriptionlambda function. (Icb5b1). - Updated text styles in
TimePickerandDatePickerso that font changes no longer result in truncation. (I26194). ListHeaderandListSubHeadernow default text alignment to center-aligned and start-aligned respectively. (I78339).- Updated Foundation and Material Swipe to Reveal samples and demos to announce custom accessibility actions (the custom actions must be added as semantics on the content, not on the
SwipeToRevealcomposable itself). (Ie92a3). - Updated the default
MaxLinesset on theEdgeButtoncontent according to its size - it is now 1 for extra small, 2 for small and medium, and 3 for large. (Ie35f6). - Simplified
LocalReduceMotionso that the observer is only registered once, to improve performance. (Ib1979). - Minimized the number of redraws in
ScrollIndicator, to improve performance. (Ia7a67). - Fixed a bug in
TransformingLazyColumn, where the top visible item in the list did not scale correctly when EdgeButton achieved its full height. (I30580).
Version 1.5.0-alpha14
April 23, 2025
androidx.wear.compose:compose-*:1.5.0-alpha14 is released. Version 1.5.0-alpha14 contains these commits.
API Changes
- All the Material
SwipeToRevealdependencies on FoundationSwipeToRevealwere moved to Material package, e.g.RevealValue,RevealDirection,RevealActionType,RevealState,rememberRevealState. Developers should change their imports of these classes and functions fromandroidx.wear.compose.foundationtoandroidx.wear.compose.material. (Ib7cb8) - Updated the API of
HierarchicalFocusCoordinatorto be modifiers instead of composables. - Migration notes:
HierarchicalFocusCoordinator(function, content)can be replaced by adding aModifier.hierarchicalFocus(function())tocontent, or the enclosing composable.ActiveFocusListener { if (it) focusRequester.requestFocus() }can be replaced by addingModifier.hierarchicalFocusRequester(focusRequester)- Other rarer uses of
ActiveFocusListenercan use the new parameter onModifier.hierarchicalFocus focusRequester(rememberActiveFocusRequester())can be replaced byhierarchicalFocusRequester()val focusRequester = rememberActiveFocusRequester()can be replaced byremember { FocusRequester() }and addingModifier.hierarchicalFocusRequester(focusRequester). (Ie319a)
Bug Fixes
- The velocity threshold that swipe gestures need to exceed to trigger a change of state has been increased for the following components:
SwipeToReveal,BasicSwipeToDismissBoxandSwipeDismissableNavHost(only for API 35 and below forSwipeDismissableNavHost). (If47bf) - Fixed an animation issue when new items are added into
TransformingLazyColumn. (I589b2)
Version 1.5.0-alpha13
April 9, 2025
androidx.wear.compose:compose-*:1.5.0-alpha13 is released. Version 1.5.0-alpha13 contains these commits.
API Changes
- Projects released with Kotlin 2.0 require KGP 2.0.0 or newer to be consumed (Idb6b5)
- Added
targetPageproperty toPagerState(I4de8b)
Bug Fixes
- Prevent unnecessary recomposition during predictive back. (Iecd6d)
- Fixed
ScrollInfoProvider’sisScrollableproperty to return the current value. (Icbfb8)
Version 1.5.0-alpha12
March 26, 2025
androidx.wear.compose:compose-*:1.5.0-alpha12 is released. Version 1.5.0-alpha12 contains these commits.
API Changes
- Improve
SwipeToRevealdefault implementation ofgestureInclusionto only ignore gestures if the state of the component is Covered. (I7e3d6) - For
SwipeToReveal, madebidirectionalGestureInclusiona val instead of a function and added@FloatRangetoedgeZoneFractionparam ingestureInclusion. (Ica7c3)
Bug Fixes
- Change
SwipeToRevealbidirectionalGestureInclusionto return an object instead of a class. (I29597) - Disabled use of haptics when running tests under
RoboElectric. (I58bd1) - Update
SwipeToRevealpaddings between content and action buttons, and also the padding between the icon and text of the action buttons. (Ic46cb)
Version 1.5.0-alpha11
March 12, 2025
androidx.wear.compose:compose-*:1.5.0-alpha11 is released. Version 1.5.0-alpha11 contains these commits.
API Changes
- Updated
PagerState, removing the Compose FoundationPagerStateas the base class and addingcurrentPage,currentPageOffsetFractionandpageCountproperties. Updated theGestureInclusioninterface, renaming the method toignoreGestureStart. (I4ae07) - Add
requireOffsettoSwipeToDismissBoxStateas the recommended way of getting an offset ofSwipeToDismissBoxState. (I21042) - Added
CurvedModifier.semantics, initially supporting content description and traversal index (I0b093) - We have added
CurvedModifier.clearAndSetSemanticsto provide a means by which curved semantics can be turned off.CurvedTextcontinues to default the content description to the text, buttimeTextCurvedTextandtimeTextSeparatordo not now announce their contents. (I4b568) HorizontalPager’s default handling of swipe gestures has been renamed toPagerDefaults.gestureInclusion. The default behavior is now to only ignore swipe gestures that start on the left edge of the first page, and only then when Talkback is turned off. In other cases, the default behavior is that swipe gestures will not be ignored by the pager, so they will not be available to swipe-to-dismiss handlers. (Iee486)- Added rotary overscroll for
rotaryScrollableapi. Overscroll and nested scroll were added torotaryScrollablefling behavior. This change should bring on-par overscroll and nested scroll functionality between touch scroll and rotary scroll. (I71926) - Added support for an edge-swipe zone to
SwipeToReveal. FoundationSwipeToReveal’s default behavior is now to disallow swiping when the gesture starts from the edge. Material3SwipeToReveal’s default behavior is now to disallow swiping when the gesture starts from the edge, when theSwipeDirectionis set to single direction. (I32ef0) - TLC now uses empty contentPadding by default instead of putting first and last items into center. (I77ab7)
Bug Fixes
- Wear Compose libraries have been updated to the Kotlin 2.0 compiler. (I2de79)
- Fixed the curved
LetterSpacingsample on foundation. (Iebf7c)
Version 1.5.0-alpha10
February 26, 2025
androidx.wear.compose:compose-*:1.5.0-alpha10 is released. Version 1.5.0-alpha10 contains these commits.
API Changes
- Make
SwipeToRevealDefaultspublic. (I0c34c) - We have replaced the
swipeToDismissEdgeZoneFractionparameter inHorizontalPager. Instead a new parameter,gestureInclusionhas been introduced which can be used to achieve necessary swipe to dismiss behaviour.gestureInclusiontakes in an instance ofGestureInclusionwhich decides whether the subsequent scroll event should proceed or not. Allowing a gesture means that the Pager consumes it - otherwise, it will be handled elsewhere such as by a swipe-to-dismiss handler. The new default behaviour is to disallow gestures on the leftmost edge of the first page in the Pager, and hence allow swipe to dismiss in this region. All other pages will permit the Pager to consume all gestures, meaning Swipe to dismiss cannot be triggered from them. To achieve Swipe to dismiss behaviour on all pages, simply provide a customGestureInclusioninstance (seePagerDefaults.disableLeftEdgeOnFirstPage) that ignores the current page. Another breaking change introduced here is that the Pager component is no longer full screen by default, instead addModifier.fillMaxSize()to achieve this behaviour. (I9d3aa) - We have renamed
createAnchorstocreateRevealAnchorsin the swipe-to-reveal API(If5999) - We have removed
RevealScopefrom the swipe-to-reveal API. (Ie4ad5) - We have removed Revealing and Revealed from
RevealValuein the swipe-to-reveal API. (I8dbc5) - We have renamed
SwipeDirectiontoRevealDirectionin the swipe-to-reveal API. (I7472f) - We have changed the signature of the
positionalThresholdparameter ofSwipeToReveal'srememberRevealStatefunction. (I29c0a) - We have added a new
overscrollEffectparameter added toScalingLazyColumn,TransformingLazyColumnandScreenScaffold. (I0cee8) - When using
PagerDefaults#snapFlingBehaviour, thepagerSnapDistanceparameter has been replaced with an Int parametermaxFlingPages, which can be used to specify the max number of pages the Pager should fling. (I8cfc0) - Wear Pager now has its own
PagerScopeinstead of using Compose FoundationPagerScope. (I9195b) - We have added support for
lineHeighton Curved text (I1c936) - We have added
initialAnchorItemIndexandinitialAnchorItemOffsettoTransformingLazyColumnStateandrememberTransformingLazyColumnStateto that the initial scroll position can be specified inTransformationLazyColumn. (I0a0d5) - Deprecate
runWithTimingDisabledin favor ofrunWithMeasurementDisabled, which more clearly describes the behavior - all metrics are paused. Additionally, expose theMicrobenchmarkScopesuperclass since redeclaring therunWithMeasurementDisabledfunction to open access isn't possible, since it's inline. (I9e23b, b/389149423, b/149979716) - We have added
TransformingLazyColumnItemScrollProgress.Unspecifiedto the API to avoid boxing onTransformingLazyColumnItemScrollProgress. (I0835d)
Bug Fixes
- Improve Kdoc for
CurvedTextStyle(Id45e3) - We have made
SwipeableV2(part of theSwipeToRevealimplementation) internal instead of public but restricted to library group. (Idbb94) - We have added tests to
HierarchicalFocusCoordinator(I1ce54, b/395548918) - We have made improvements to
SwipeToRevealin wear compose foundation samples. (I5f307) - Fix scroll axis semantic data for
verticalScrollAxisRangeinTransformingLazyColumnfor accessibility (I68123) - Improve performance of rotary haptics on Wear4+ by removing unnecessary background threads (I39cfe)
- Change
SwipeDismissableNavHostto usePredictiveBackNavHostonly on API 36 onwards. (I59bed) - We have added a guard against a crash when accessing the reducemotion setting. (I01e2c)
- We have implemented prefetching for
TransformingLazyColumnto reduce jank (Icca88)
Version 1.5.0-alpha09
January 29, 2025
androidx.wear.compose:compose-*:1.5.0-alpha09 is released. Version 1.5.0-alpha09 contains these commits.
API Changes
- On
CurvedTextStyle, we have split letter spacing into clockwise letter spacing and counter clockwise letter spacing. This is required because clockwise letters fan out from the baseline whereas counter-clockwise letters fan in (so larger letter spacing is needed) (I4b848) - The
CompositionLocalLocalReduceMotionhas been simplified to return a Boolean instead of aReduceMotionobject. TheReduceMotioninterface has now been deprecated. Previous invocations such asLocalReduceMotion.current.enabled()can be replaced withLocalReduceMotion.current(I4937f) - In
PagerDefaults,snapAnimationSpechas been renamed toSnapAnimationSpec. (I20c9a)
Version 1.5.0-alpha08
January 15, 2025
androidx.wear.compose:compose-*:1.5.0-alpha08 is released. Version 1.5.0-alpha08 contains these commits.
API Changes
- We have updated all Wear Compose libraries to ‘explicit API’ mode. (Iebf9f)
- We have made the pager’s snap animation parameter part of
PagerDefaults. (Ifff64) - We have added an offset parameter was to
SwipeToDismissBoxState. (I586bd)
Bug Fixes
- Rotary platform haptics are now called for Wear OS versions after V (Idb03e)
Version 1.5.0-alpha07
December 11, 2024
androidx.wear.compose:compose-*:1.5.0-alpha07 is released. Version 1.5.0-alpha07 contains these commits.
API Changes
TransformingLazyColumnStatenow provides a way to observe the current scroll progress based on anchor item indices. (I72b01)- We have added animations to
TransformingLazyColumnwhen adding, removing and moving items, if they have the newModifier.animateItem. (Iecb9c) TransformingLazyColumnnow exposes values forbeforeContentPaddingandafterContentPadding. (Iccd5f)TransformingLazyColumnnow provides the composition localLocalTransformingLazyColumnItemScopewhich components (such asCards andButtons in Material3) can use to automatically morph when placed inside aTransformingLazyColumn. Callers can disable automatic morphing using the newTransformExclusionwrapper. (I1652f)
Bug Fixes
- We have updated min and max fling velocities for rotary on devices targeting U onwards. (I33559)
- We have fixed a crash that occurred if an item in
TransformingLazyColumndid not contain any composables (Idb99d) - We have added
ScrollFeedbackProvidersupport for rotary haptics on Android Vanilla ice cream. (Ibc553) - We have applied an increased touch slop when using
SwipeToRevealin order to reduce the chances of accidentally triggering a swipe when vertically scrolling. (Ic0672) - We have updated
SwipeDismissableNavHostto usePredictiveBackHandlerwhen available with API 35 onwards. In that case, new animations will be applied. (I08c11)
Version 1.5.0-alpha06
November 13, 2024
androidx.wear.compose:compose-*:1.5.0-alpha06 is released. Version 1.5.0-alpha06 contains these commits.
API Changes
- We have simplified the
ScrollInfoProviderforPagerStateby removing theorientationparameter, which is no longer needed. The new behavior is forTimeTextto remain in place for both horizontal and vertical paging. (I71767) TransformingLazyColumnwas introduced in earlier releases. We are now removing Wear'sLazyColumnaliases (which were forwarding toTransformingLazyColumn) in favor of the new nameTransformingLazyColumn. We have also removedTransformingLazyColumnVisibleItemInfo'sheightproperty - please usemeasuredHeightinstead. (I0ea1e)- We have changed the
PagerDefaults.snapFlingBehaviorsnapAnimationSpecfrom aTweento aSpringspec.(I10d02, b/349781047, b/303807950) - We have promoted the
LocalReduceMotionCompositionLocalto stable (Ia6f32)
Bug Fixes
- We have updated
Modifier.rotaryScrollableto usefocusTargetWithSemanticsfor better semantics support in rotary. (Ief0a0) - We have updated the minimum API dependency to 1.7.4 for Compose libraries. (I88b46)
- We have disabled width morphing in
TransformingLazyColumnas a workaround to a clipping bug. (I3dfb8) - We have fixed a bug that caused disappearing items after overscroll with
TransformingLazyColumn(Id7668) - We have added
LazyLayoutSemanticsforTransformingLazyColumn. (Ia8f56)
Version 1.5.0-alpha05
October 30, 2024
androidx.wear.compose:compose-*:1.5.0-alpha05 is released. Version 1.5.0-alpha05 contains these commits.
API Changes
- We have added support for
animateScrollToonTransformingLazyColumnStateso that scrolling to an item can be animated. (I4097d) - We have added
requestScrollToonTransformingLazyColumnStateto defer scrolling to the next measurement. (I20a5e) - We have added support for
contentPaddinginTransformingLazyColumn. (I3a69c)
Bug Fixes
- We have fixed a bug in rendering the
TransformingLazyColumnwhen the content height is shorter than the screen height. (I6c3e1) - The
ScrollInfoProvderforTransformingLazyColumnnow correctly tracks the first item. (I1e4a3) TransformingLazyColumnStatenow saves its state (anchorItemIndexandanchorItemScrollOffset). (I3d265)
Version 1.5.0-alpha04
October 16, 2024
androidx.wear.compose:compose-*:1.5.0-alpha04 is released. Version 1.5.0-alpha04 contains these commits.
API Changes
- We have renamed the Wear Compose Foundation
LazyColumntoTransformingLazyColumnso that the distinction is clearer between this and the Compose FoundationLazyColumn. (I0608b) - Added rotary support for Horizontal/Vertical pagers, enabling users to navigate pagers using rotary input devices. (I9770d)
- We have updated the new
PagerDefaultsto make clear that the pager will snap-to-page by default. (Iff7d0) TransformingLazyColumnItemScrollProgressis now a value class which should improve the performance. (Ic399e)TransformingLazyColumnnow supports rotary out of the box. (I05206)TransformingLazyColumnStatenow supportsscrollToItem. (I507b3)- Removed
@ExperimentalWearFoundationApifromSwipeToRevealAPI (I34a66)
Version 1.5.0-alpha03
October 2, 2024
androidx.wear.compose:compose-*:1.5.0-alpha03 is released. Version 1.5.0-alpha03 contains these commits.
API Changes
- We have added support for bi-directional swiping in
SwipeToReveal, for rare cases where the current screen does not support swipe to dismiss. . The default is still to swipe-to-reveal only on right-to-left swipes and it is strongly advised to respect the default behavior to avoid conflict with swipe to dismiss. (Ifac04) - We have updated
LazyColumnStateto overridecanScrollForwardandcanScrollBackward- this now stops scrolling when the first or last item is exactly at the center of the screen. (Ia77d7) - We have added new
HorizontalPagerandVerticalPagercomponents which address common issues, such as focus handling and interacting with system swipe to dismiss that could occur on Wear. (I2902b) - We have added support for
LazyColumnto expose the client'skeyandcontentTypethroughlayoutItems. (I1bd9c)
Bug Fixes
- We have updated the curved text animations to be smoother, using paint flags. (I73a15)
- We have updated the Material Dialog documentation to reflect that
onDismissRequestis not called after show flag is set to false. (Ifd8d6) - We have fixed a bug with the vignette animation in the Material Dialog (I126bf)
Version 1.5.0-alpha02
September 18, 2024
androidx.wear.compose:compose-*:1.5.0-alpha02 is released. Version 1.5.0-alpha02 contains these commits.
API Changes
- We have added support for the Wear Compose
LazyColumnwith ourScreenScaffold(and added an implementation ofScrollInfoProviderforLazyColumnState). (Ib8d29) - We have added
viewportSizetoLazyColumnLayoutInfo. (I4187f)
Bug Fixes
- We have fixed a bug so that rotary scrolling is now disabled in
ScalingLazyColumnwhen theuserScrollEnabledflag is set tofalse. (I490ab, b/360295825) - We have made a bug fix to address unexpected vertical padding on curved text. The curved text height now more closely matches the actual space used by the text. Please note that this is likely to break screenshot tests that involve curved text (Iaa6ef)
- We have reverted a bug fix to
Dialogwhere theonDismissRequestcallback was called whenshowDialogwas set to false, because in some cases this resulted inonDismissRequestbeing called multiple times. (I64656)
Version 1.5.0-alpha01
September 4, 2024
androidx.wear.compose:compose-*:1.5.0-alpha01 is released. Version 1.5.0-alpha01 contains these commits.
API Changes
- We have added a new
LazyColumninto the Wear Compose Foundation library with associatedLazyColumnStateandLazyColumnScopeAPIs. This serves as the foundation for building customisable scaling and morphing effects with Wear Compose. (Ib3b22) - We have added an indexed version of
itemsIndexedintoLazyColumnScopeas part of the newLazyColumnAPI. (Ib4a57) - We have added
LazyColumnmodifiers in order to support scaling and morphing behaviors. (Ie229a) HierarchicalFocusCoordinatorhas been promoted to stable. (I31035)- We have added support for letter spacing to curved text. (I3c740)
- Added a
rotationLockedparameter toCurvedLayout.curvedComposableto stop components being rotated. (I66898) - The temporary
LocalUseFallbackRippleImplementationAPI from wear material and wear material3 has been removed (I62282) - Removed
WearDevices.SQUAREfrom the@WearPreviewDevicesmulti-preview (I11c02)
Bug Fixes
SwipeToRevealnow positions the revealed items on the visible portion of the screen, this helps whenSwipeToRevealis used within a list, so the items are always interactable and never fall outside the screen. (I38929)SwipeToRevealnow resets thelastActionTypeto None whenanimatedTohas completed. (I59b03)- Improved the documentation for the new
rotationLockedparameter oncurvedComposable. (Ifbd57) - Fixed a crash when passing
NaNintoScalingLazyColumnSnapFlingBehavior’sperformFling. (Ic13da) - Fixed bug on curved layout size modifier (I0fedf)
- We have added support for letter spacing specified in 'sp'. (I9f6e3)
- We have fixed a bug in Material2 Dialog where the
onDismissRequestcallback was not being called when the dialog became invisible (I64656) - Renamed
LayoutCoordinates.introducesFrameOfReferencetoLayoutCoordinates.introducesMotionFrameOfReferenceto better reflect its purpose. Renamed related function to calculate coordinates based on that flag. (I3a330)
Version 1.4
Version 1.4.1
February 12, 2025
androidx.wear.compose:compose-*:1.4.1 is released. Version 1.4.1 contains these commits.
Bug Fixes
- We have guarded against a crash when accessing the global reducemotion setting, which was triggered on some platforms where that setting was not provided. (I01e2c)
Version 1.4.0
September 4, 2024
androidx.wear.compose:compose-*:1.4.0 is released. Version 1.4.0 contains these commits.
Important changes since 1.3.0
ScalingLazyColumnandPickernow support rotary input by default - it is recommended to remove explicit rotary handling and defer to the default system behavior. If necessary, use therotaryScrollableBehaviorparameter to configure either scroll or snap behavior - for snap behavior, it is recommended to provide snap behavior and touch scrolling capabilities using theflingBehaviorparameter.Modifier.rotaryScrollableis a new modifier that connects rotary events with scrollable containers, allowing users to scroll using a crown or a rotating bezel on their Wear OS device.SwipeDismissableNavHostnow provides an entry animation for in-app transitions.PositionIndicatoris now shown by default when a screen is first displayed.
Additional changes
- For a more complete set of the changes introduced in version 1.3.0, see the beta01 release notes.
Version 1.4.0-rc01
August 21, 2024
androidx.wear.compose:compose-*:1.4.0-rc01 is released. Version 1.4.0-rc01 contains these commits.
- We have updated the Compose dependencies to 1.7.0-rc01 and pinned Wear Compose Navigation to androidx.lifecycle 2.8.3
Version 1.4.0-beta03
June 12, 2024
androidx.wear.compose:compose-*:1.4.0-beta03 is released. Version 1.4.0-beta03 contains these commits.
Bug Fixes
- We have updated
Modifier.rotaryScrollableto replace use of ‘focusable’ with ‘focusTarget’ which improves performance. (Id294b) - We have fixed an issue where the
ProgressIndicatorrepeated its announcement underTalkBack. (I94563) - We have updated the Wear Compose library baseline profiles. (I3cbc3)
Version 1.4.0-beta02
May 29, 2024
androidx.wear.compose:compose-*:1.4.0-beta02 is released. Version 1.4.0-beta02 contains these commits.
Bug Fixes
- We have increased the boundary width passed to screen readers from curved text in order to address issues with truncation (Id865f).
- We have constrained the boundary of the
HorizontalPageIndicatorthat was passed to screen readers - previously the indicator occupied the full screen (Id8d7a).
Version 1.4.0-beta01
May 14, 2024
androidx.wear.compose:compose-*:1.4.0-beta01 is released. Version 1.4.0-beta01 contains these commits.
The 1.4-beta01 release of Compose for Wear OS indicates that this release of the library is feature complete and the API is locked (except where marked as experimental). Wear Compose 1.4 includes the following new functionality:
- We have added
Modifier.rotaryScrollable, a new modifier that connects rotary events with scrollable containers, allowing users to scroll via a crown or a rotating bezel on their Wear OS device. In addition,ScalingLazyColumnandPickernow support rotary input by default. Use therotaryScrollableBehaviorparameter to configure either scroll or snap behavior. For snap behavior, it is recommended to provide snap via theflingBehaviorparameter as well for touch scrolling. SwipeDismissableNavHostnow provides an entry animation for in-app transitions.PositionIndicatoris now shown by default when a screen is first displayed.SelectableChipandSplitSelectableChiphave been added as a variation onToggleChip- use this withRadioButtonin order to provide selectable semantics instead of toggleable semantics for accessibilityListHeadernow supports height adjustments when contents need extra height to accommodate large font sizes.
Bug Fixes
- We have fixed a bug where selectable chips announced double tap to toggle when already selected. (I7ed88)
Version 1.4.0-alpha08
May 1, 2024
androidx.wear.compose:compose-*:1.4.0-alpha08 is released. Version 1.4.0-alpha08 contains these commits.
API Changes
- We have made the following changes to the new rotary API: renamed
Modifier.rotarytoModifier.rotaryScrollable; renamed theRotaryBehaviorinterface toRotaryScrollableBehaviorand its functionhandleScrollEventtoperformScroll; renamedRotaryScrollableAdaptertoRotaryScrollableLayoutInfoProviderand removed thescrollableStateproperty. (I0c8a6) - We have made additional changes to the rotary API: renamed
RotaryScrollableLayoutInfoProvidertoRotarySnapLayoutInfoProvider(because this provider is only needed for rotary with snap); changed the type of thesnapOffsetparameter inRotaryScrollableDefaults.snapBehavior snapOffsetfrom Int to Dp. (Iddebe) - We have renamed the
clickInteractionSourceparameter onSplitSelectableChiptocontainerInteractionSource. (Ia8f84) - We have updated the click callback parameter names for
SplitSelectableChip- fromonClicktoonSelectionClickand fromonBodyClicktoonContainerClick. (I32237)
Bug Fixes
- We have updated the horizontal padding for
PositionIndicatorto 2dp (was 5dp), in order to fix a bug where thePositionIndicator(scroll bar) overlaps scrollable content. Please note that this change is expected to break existing screenshots that include thePositionIndicatordue to the change of padding. (I57472) - We have improved the documentation for the new rotary API by describing the differences between low-res and hi-res rotary devices. (I63abe)
- We have addressed an out-of-range exception in
SwipeDismissableNavHostthat could be triggered when interpolated alpha values were less than zero. (Ib75a1, b/335782510)
Version 1.4.0-alpha07
April 17, 2024
androidx.wear.compose:compose-*:1.4.0-alpha07 is released. Version 1.4.0-alpha07 contains these commits.
API Changes
- We have added
Modifier.rotary, a new modifier that connects rotary events with scrollable containers, allowing users to scroll via a crown or a rotating bezel on their Wear OS device. In addition,ScalingLazyColumnand Picker now support rotary input by default, with new overloads that include therotaryBehaviorparameter for specifying the configuration of either scroll or snap. If therotaryBehaviorparameter is set to snap, then it is recommended to provide snap via theflingBehaviorparameter as well, for touch scrolling. (I2ef6f) NestedScrollsources Drag and Fling are being replaced byUserInputandSideEffectto accommodate for the extended definition of these sources that now include animations (Side Effect) and Mouse Wheel and Keyboard (UserInput). (I40579)- We have added
SelectableChipandSplitSelectableChipto make the distinction clearer between toggle controls such asSwitch/Checkboxand selectable controls such asRadioButton. This replaces the previously added overloads ofToggleChip/SplitToggleChipwithselectionControlparameters. (Ia0217) - Updated visibility modifier of
IndeterminateStrokeWidthinProgressIndicatorDefaultsto public. (I5b5a4)
Version 1.4.0-alpha06
April 3, 2024
androidx.wear.compose:compose-*:1.4.0-alpha06 is released. Version 1.4.0-alpha06 contains these commits.
Bug Fixes
- We have added an internal draft of rotary support, as part of the larger effort of migrating Rotary behavior into AndroidX from Horologist. (I617d1)
- We have added an internal draft of haptics support, as part of the larger effort of migrating Rotary behavior into AndroidX from Horologist. (I5568a)
Version 1.4.0-alpha05
March 20, 2024
androidx.wear.compose:compose-*:1.4.0-alpha05 is released. Version 1.4.0-alpha05 contains these commits.
API Changes
- We have made the
initialCenterItemIndexandinitialCenterItemScrollOffsetproperties ofScalingLazyListStatepublic. (I0c616) - We have made the
FullScreenStrokeWidthfromProgressIndicatorDefaultspublic. (Ibea23)
Bug Fixes
- We have improved the performance of
PositionIndicatorby decreasing the number of calls tolayoutInfofromScalingLazyColumn. (Idc83d)
Version 1.4.0-alpha04
March 6, 2024
androidx.wear.compose:compose-*:1.4.0-alpha04 is released. Version 1.4.0-alpha04 contains these commits.
API Changes
- We have added a new overload for
ToggleChipandSplitToggleChipthat takes aselectionControlparameter instead of thetoggleControlparameter. This should be used with theRadioButtoncontrol in order to provide selectable semantics instead of toggleable semantics for accessibility (I1d6d9) - We have updated parameter names for the new
selectionControloverload fromonSelectedtoonSelectforToggleChipandSplitToggleChip(I1a971)
Version 1.4.0-alpha03
February 21, 2024
androidx.wear.compose:compose-*:1.4.0-alpha03 is released. Version 1.4.0-alpha03 contains these commits.
API Changes
- The
Modifier.inspectablewrapper has been deprecated. This API will create more invalidations of your modifier than necessary, so its use is now discouraged. Developers are encouraged to implement theinspectableProperties()method onModifierNodeElementif they would like to expose modifier properties to tooling. (Ib3236)
Bug Fixes
- We have fixed a documentation bug for
WearPreview*annotations. (Id526d)
Version 1.4.0-alpha02
February 7, 2024
androidx.wear.compose:compose-*:1.4.0-alpha02 is released. Version 1.4.0-alpha02 contains these commits.
Bug Fixes
- We have fixed a bug in swipe-to-reveal, where it was possible to interact with (and cancel) a committed action on one item by starting to swipe another item.(Ide059)
- We have updated the
ListHeaderto support height adjustments when contents need extra height to accommodate large font sizes. (I7290c, b/251166127)
Version 1.4.0-alpha01
January 24, 2024
androidx.wear.compose:compose-*:1.4.0-alpha01 is released. Version 1.4.0-alpha01 contains these commits.
New Features
- We have added entry animation to
SwipeDismissableNavHostfor in-app transitions.(cfeb79a) PositionIndicatoris now shown by default when a screen is first displayed. This change was introduced in order to help meet Wear Quality guidelines. Unfortunately, it means that screenshot tests will need to be updated on screens that includePositionIndicator, as thePositionIndicatorwould not previously have been displayed. (419cef7)
API Changes
- We have added a new ripple API in
wear:compose-materialandwear:compose-material3libraries which replaces the deprecatedrememberRipple. Also adds a temporaryCompositionLocal,LocalUseFallbackRippleImplementation, to revert Material components to using the deprecatedrememberRipple/RippleThemeAPIs. This will be removed in the next stable release, and is only intended to be a temporary migration aid for cases where you are providing a customRippleTheme. See developer.android.com for migration information and more background information behind this change. (af92b21) - We have updated
ColorSchemeto be immutable, making individual color updates less efficient, but making more common usage of colors more efficient. The reasoning behind this change is that the majority of apps wouldn't have updating individual colors as a main use case. This is still possible but it will recompose more than before, in turn we significantly decrease the amount of state subscriptions through all of the material code and will impact initialization and runtime cost of more standard use cases. (f5c48b7) - Wear material and Wear material3 components exposing a
MutableInteractionSourcein their API have been updated to now expose a nullableMutableInteractionSourcethat defaults to null. There are no semantic changes here: passing null means that you do not wish to hoist theMutableInteractionSource, and it will be created inside the component if needed. Changing to null allows for some components to never allocate aMutableInteractionSource, and allows for other components to only lazily create an instance when they need to, which improves performance across these components. If you are not using theMutableInteractionSourceyou pass to these components, it is recommended that you pass null instead. It is also recommended that you make similar changes in your own components. (f8fa920) - We have updated
rememberExpandableStateto save expandable state. This ensures that data is stored when navigating to another screen and restored when coming back to the original screen. (5c80095)
Bug Fixes
- We have updated the
ReduceMotionsetting to use a lifecycle aware listener. (7c6b122) - We have updated
TouchExplorationStateProvider’s Listener to be lifecycle aware (be28b01) - We have removed the materialcore layer for
CompactButtonto improve performance (25db8e9) - We have made
BasicSwipeToDismissBoxmore robust to NaN offsets to avoid exceptions (b983739) - We have updated
BasicSwipeToDismissBoxto ensure alpha values are within the range 0,1 - We have fixed a bug in the
ToggleButton,SplitToggleButton,Checkbox,SwitchandRadioButtonso that accessibility announcements are not repeated (previously, semantic roles were duplicated) (d11eeb7)
Version 1.3
Version 1.3.1
April 3, 2024
androidx.wear.compose:compose-*:1.3.1 is released. Version 1.3.1 contains these commits.
Bug Fixes
- We have fixed a bug in swipe-to-reveal, where it was possible to interact with (and cancel) a committed action on one item by starting to swipe another item. (Ide059)
Version 1.3.0
January 24, 2024
androidx.wear.compose:compose-*:1.3.0 is released. Version 1.3.0 contains these commits.
Important changes since 1.2.0
- The
SwipeToDismissBoxStateclass,SwipeToDismissValueenumeration, andModifier.edgeSwipeToDismissextension function are now each part of theandroidx.wear.compose.foundationpackage, instead of theandroidx.wear.compose.materialpackage. This updated architecture allows you to implement gesture handling independently from other design considerations. Material Design workflows, such as applying colors from a configured theme, are handled separately. - The
SwipeToRevealCardandSwipeToRevealChipclasses help you implement therecommended swipe-to-reveal guidance. TheSwipeToRevealSampleclass demonstrates how to use these components. Our 1.3.0-alpha02 release introduced a change that causes
ChipandToggleChipobjects to grow in height to better support user-selected font scaling. This can cause some clipping to occur. To fix this issue, thelargeshape forMaterialThemenow uses a larger corner radius (26 dp instead of 24 dp).ChipandToggleChipobjects use this new corner radius to avoid clipping content on the corners of Chip andToggleChip.- Most
ChipsandToggleChipsare unchanged, given their default 52 dp height. However,ChipandToggleChipobjects that contain multiple lines of primary or secondary label text, or for which the height has been overridden, could cause screenshot tests to break.
- Most
Additional changes
For a more complete set of the changes introduced in version 1.3.0, see the beta01 release notes.
Recommendations for implementation
- If your app allows users to pan around the screen's content, such as in a map-based app, turn off swipe handling by setting
userSwipeEnabledtofalsein theSwipeDismissableNavHostcomposable, and include a button that allows users to go to the previous screen. - To turn off animations for a position indicator during fade-in and position-change animations within a scrolling list, use a
SnapSpecobject. - While waiting for a media app to load content for playback, show a blank
Placeholdercomposable. - To create a collection of expandable items on demand, consider using the experimental
ExpandableStateMappingclass.
Version 1.3.0-rc01
January 10, 2024
androidx.wear.compose:compose-*:1.3.0-rc01 is released. Version 1.3.0-rc01 contains these commits.
Bug Fixes
-
We have updated the
MaterialThemelarge shape to use a 26dp rounded corner radius and this will now be used by Chip andToggleChip. This change is needed to support height adjustments when contents need extra height to accommodate large font sizes—otherwise, the existing stadium shape clips some text content.Figure 1: Text clipped on corners. Figure 2: Text not clipped. This change may cause a breakage in screenshot tests. (I2e6ae)
Version 1.3.0-beta02
December 13, 2023
androidx.wear.compose:compose-*:1.3.0-beta02 is released. Version 1.3.0-beta02 contains these commits.
Bug Fixes
- We have restored the intended swipe motion in
BasicSwipeToDismissBox. This had been altered in a previous release, such that the slide part of the transition occurred while the finger was touching the screen. (Id8e76)
Version 1.3.0-beta01
November 15, 2023
androidx.wear.compose:compose-*:1.3.0-beta01 is released. Version 1.3.0-beta01 contains these commits.
The 1.3-beta01 release of Compose for Wear OS indicates that this release of the library is feature complete and the API is locked (except where marked as experimental). Wear Compose 1.3 includes the following new functionality:
SwipeToDismissBoxState,SwipeToDismissValueandModifier.edgeSwipeToDismisshave been migrated fromandroidx.wear.compose.materialtoandroidx.wear.compose.foundation, along with the underlying swipe-to-dismiss implementation inBasicSwipeToDismissBox. This allows the gesture handling for swipe-to-dismiss to be used independently of Material Design, for example from theSwipeDismissableNavHostinandroidx.wear.compose.navigation.SwipeToDismissBoxfromandroidx.wear.compose.materialis still recommended to be used with Material Design, because it pulls colors from theMaterialTheme, then delegates the remaining implementation to theBasicSwipeToDismissBox.SwipeDismissableNavHostnow supports a newuserSwipeEnabledparameter so that swipe handling can be turned off for screens where it is not required.BasicSwipeToDismissBoxhas improved focus handling usingHierarchicalFocusCoordinator.SwipeToRevealhas newSwipeToRevealCardandSwipeToRevealChipcomposables in Material that follow the recommended UX guidance forCardandChip. It also has undo support for the secondary action.DefaultTextStylenow turns off font padding to be consistent across the Android Platform.ChipandToggleChipnow adjust their height to accommodate content that has grown due to large fonts for accessibilityPositionIndicatornow has individual animation specs for the fade-in, fade-out and position-change animations. For performance reasons, we recommend that fade-in and position-change are turned off when used with scrollable lists.ExpandableStateMappingprovides a new way to generateExpandableStateswhen they need to be created on demand and not necessarily with a@Composablescope.Placeholdernow allows resetting if the content is no longer in the ready state. Also, the reduce motion setting now applies to the shimmering effect and wipe-off motion onPlaceholder.
Known Issues
PositionIndicatoris not initially shown when a screen is first displayed. We intend to make a change in an early 1.4 alpha so that it will be initially shown, but without any animation.
API Changes
- We have renamed the Foundation level
SwipeToDismissBoxtoBasicSwipeToDismissBox. This makes the distinction clearer between the Foundation level component and the Material levelSwipeToDismissBox. The latter pulls colors from theMaterialThemeto be used in scrims and delegates the remaining implementation to theBasicSwipeToDismissBox. (Ibecfc) - We have marked
rememberExpandableStateMappingas experimental and improved the performance ofexpandableItem. (I5f6bc) - We have replaced the
SwipeToRevealActionclass in the MaterialSwipeToRevealCard and Chip APIs with a slot-based API usingSwipeToRevealPrimaryAction,SwipeToRevealSecondaryActionandSwipeToRevealUndoActioncomposables. Please see sample code for examples on how to use the new API. (Ia8943) - We have replaced the
PositionIndicatoranimation flags withAnimationSpecparameters. The individual animations can be disabled by passingsnapas theAnimationSpec. (I6c523)
Bug Fixes
- We have fixed a bug triggered by limited curved text when size is limited (I50efe)
- We have addressed a potential NaN crash related to
curvedComposable(I970eb) - We have reverted the removal of the position change highlight animation on
PositionIndicator. (Ieb424) - We have removed the material-core layer for material Chip to improve its performance. (If2dcb)
Version 1.3.0-alpha08
October 18, 2023
androidx.wear.compose:compose-*:1.3.0-alpha08 is released. Version 1.3.0-alpha08 contains these commits.
API Changes
- We have added individual flags to
PositionIndicatoroverloads, to control different animations:showFadeInAnimation,showFadeOutAnimationandshowPositionAnimation. The previous API has been deprecated and forwards calls to the new one. For performance reasons and for UX consistency, when thePositionIndicatoris used with a scrollable list, we recommend switching offshowFadeInAnimationandshowPositionAnimationflags. IfPositionIndicatoris used as a standalone indicator, for example for volume change, then we recommend having all 3 animations turned on. (I44294) - We have deprecated the Material
SwipeToDismissBoxState,SwipeToDismissValueandedgeSwipeToDismissfollowing the migration of Swipe-to-Dismiss functionality towear.compose.foundation. Please replace with thewear.compose.foundationequivalents. (Iee8c9)
Bug Fixes
- We have updated the baseline profiles for wear compose foundation, material and navigation libraries. (Idb060)
- We have reverted a behavioral change for
PositionIndicatorintroduced in a previous CL, such that thePositionIndicatorwas animated when a screen was initially displayed. We intend to make a similar change in an early 1.4 alpha, so that thePositionIndicatoris initially displayed, but without any animation. (I41843) - We have addressed some performance issues in
PositionIndicator. (I1c654, b/302399827) - We have optimized performance of the touch exploration state provider default implementation to rely on
State<Boolean>rather than derived state. (Ieec4d) - We have set
systemGestureExclusionrectangles for Android 13 and higher. (Ib1f4b)
Version 1.3.0-alpha07
October 4, 2023
androidx.wear.compose:compose-*:1.3.0-alpha07 is released. Version 1.3.0-alpha07 contains these commits.
API Changes
- We have added individual flags to
PositionIndicatorto control different animations:showFadeInAnimation,showFadeOutAnimationandshowPositionAnimation. The previous API has been deprecated and forwards calls to the new one. For performance reasons and for UX consistency, when thePositionIndicatoris used with a scrollable list, we recommend switching offshowFadeInAnimationandshowPositionAnimationflags. IfPositionIndicatoris used as a standalone indicator, for example for volume change, then we recommend having all 3 animations turned on. (Ia2d63)
Bug Fixes
- We have made improvements to the swipe to reveal motion by adding a fade animation to the primary action text, and fading the secondary action/changing the icon scale on full swipe expansion. (Ib7223)
- It is recommended that Swipe to Reveal actions are made accessible and we have added custom accessibility actions to our Swipe to Reveal samples. (I42224)
- We have improved the performance of
SwipeToDismissBox, including refactoring to ensure that the initial logic does not trigger a recomposition. TheSwipeToDismissBoxis now drawn as the full screen size. (Ie0aa2) - We have fixed a bug when the
PositionIndicatorincorrectly disappeared. (I2091a) - Improved performance of
PositionIndicatorby optimizing recompositions. New flags to control the animations (fadeIn,fadeOutandpositionChange) have been added subsequently (see API Changes) (Ifac7d) - We have added Microbenchmark tests for
PositionIndicator(Idf875)
Version 1.3.0-alpha06
September 20, 2023
androidx.wear.compose:compose-*:1.3.0-alpha06 is released. Version 1.3.0-alpha06 contains these commits.
Bug Fixes
- We have added support for
Modifier.edgeSwipeToDismisswithSwipeToReveal. (I95774, b/293444286) - We have added samples for the Material
SwipeToRevealChipandSwipeToRevealCard. (Ieb974) - We have updated the baseline profiles for Wear Compose Foundation and Material libraries. (I1dd1f)
Version 1.3.0-alpha05
September 6, 2023
androidx.wear.compose:compose-*:1.3.0-alpha05 is released. Version 1.3.0-alpha05 contains these commits.
Bug Fixes
- We have added handling in Swipe to Reveal so that only one item at a time can be swiped. (I3cd7a)
- Improved the documentation of
ScalingLazyColumnDefaultsto better match its actual behavior. (I886d3)
Version 1.3.0-alpha04
August 23, 2023
androidx.wear.compose:compose-*:1.3.0-alpha04 is released. Version 1.3.0-alpha04 contains these commits.
New Features
- We have added undo support for the secondary action of
SwipeToReveal. (I7a22d)
API Changes
- Add
HorizontalPageIndicatorin Wear Material3 library. (Ifee99) - Updated Wear Compose preview tooling to use the
androidx.wear.tooling.previewlibrary. (Ib036e)
Bug Fixes
- Fix a bug in round buttons where modifiers were not chained correctly. (I5e162)
Version 1.3.0-alpha03
August 9, 2023
androidx.wear.compose:compose-*:1.3.0-alpha03 is released. Version 1.3.0-alpha03 contains these commits.
API Changes
- We have added two new composables in Material for implementing
SwipeToRevealwith Cards and Chips. These composables follow the recommended UX guidance on the component and make it easier for developers to implementSwipeToRevealwith the existing components in Wear Material. (I7ec65) - We have turned on the
FloatRangeannotations as API constraints, which were previously stated in comments. (Icb401)
Bug Fixes
- We have moved the initial scrolling logic of
ScalingLazyColumninsideonGloballyPositioned(). (Ic90f1) - We are now using
drawWithCacheinPositionIndicator,ProgressIndicator, andSelectionControlsto optimize stroke allocations. (I5f225, b/288234617) - We have fixed checkbox tick visibility in disabled states. (Ib25bf)
- We have updated
Placeholderto allow resetting to show the placeholder if the content is no longer in the ready state. (Ibd820) - We have made some fixes to flaky
Placeholdertests (Idb560)
Version 1.3.0-alpha02
July 26, 2023
androidx.wear.compose:compose-*:1.3.0-alpha02 is released. Version 1.3.0-alpha02 contains these commits.
API Changes
- We have provided
ExpandableStateMapping, a new way to generateExpandableStates, for cases in which they need to be created on demand, not necessarily within a@Composablescope (Iff9e0) SwipeToDismissBoxhas been migrated fromandroidx.wear.compose.materialtoandroidx.wear.compose.foundationpackage. (I275fb)- Updated API files to annotate compatibility suppression. (I8e87a, b/287516207)
- We have made the height constants for
Chip,CompactChipandToggleChippublic (Idbfde) - We have made the horizontal and vertical paddings for
ChipandCompactChippublic. (Ieeaf7) - Added functionality to turn off swipe handling in
SwipeDismissableNavHostvia the newuserSwipeEnabledparameter. (Id2a0b, b/230865655) - We have updated the Wear Compose Navigation library to use the new
SwipeToDismissBoxfrom Wear Compose Foundation. (I4ff8e)
Bug Fixes
- We have fixed a z-order bug where
expandedItemdid not show the correct content after clicking a button's behavior when they have buttons. (I1899d, b/289991514) - Improve focus handling of
SwipeToDismissBox(and henceSwipeDismissableNavHost) using theHierarchicalFocusCoordinator(I45362, b/277852486) - We have made a fix to the gesture handling in
SwipeableV2. (I89737) - We have finalized the baseline profiles for our 1.2 release. (Id5740)
- Following the migration of
SwipeToDismissBoxto Foundation, the MaterialSwipeToDismissBoximplementation now forwards to Foundation and supplies default color values from its theme.(If8451) - We have added heading semantics to
ListHeader. (Ic5420) ChipandToggleChipwill now adjust their height to accommodate content that has grown due to large fonts for accessibility, when required. (Iaf302)- Fixed a bug in the semantic role of
SplitToggleChip’s tappable area, for accessibility. (Ieed3a) - The reduce motion setting now turns off the shimmering effect and wipe-off motion on placeholders. (I91046)
StepperandInlineSlidernow support repeated clicks on long press so that you can quickly increase/decrease value ofStepperandInlineSliderby holding the + or - buttons. (I27359)
Version 1.3.0-alpha01
June 21, 2023
androidx.wear.compose:compose-*:1.3.0-alpha01 is released. Version 1.3.0-alpha01 contains these commits.
Bug Fixes
- As announced in
1.2.0-alpha07and1.2.0-alpha10, we are now changing theDefaultTextStyleto turn off font padding to be consistent across the Android Platform. This will address some cases of text clipping with large font sizes and may also impact screen layouts, so that screenshot tests need to be updated. For example, we see text clipping here (Ic6a86)
- It is no longer present when font padding is turned off:
- We have updated
wear.compose.foundationto be an API dependency ofwear.compose.material(I72004, b/285404743) - We have fixed a bug in
SwipeToDismissBox. Background and content keys are now passed to the remember block so that new modifiers are created when the content or background changes. (Ib876c, b/280392104) - We have updated
TimeTextto use the locale when choosing the format for 12 or 24 hour time. (If4a3d) - We have fixed an inconsistency in
SwipeToDismissBoxcontentScrimColordefault parameters. (I2d70f) - We have improved the motion handling in
SwipeToReveal. (I28fb7)
Known Issues
- Supporting user-configured font sizes is an accessibility requirement. We know that multiline Chips can lead to text-clipping when displayed with large font sizes, so we will be updating Chip in an early 1.3 alpha version to make height adjustments in those cases.
Version 1.2
Version 1.2.1
October 18, 2023
androidx.wear.compose:compose-*:1.2.1 is released. Version 1.2.1 contains these commits.
Bug Fixes
- Fixed a bug when the
PositionIndicatorincorrectly disappeared. (7a167f)
Version 1.2.0
August 9, 2023
androidx.wear.compose:compose-*:1.2.0 is released. Version 1.2.0 contains these commits.
Important changes since 1.1.0
- Stable release of Compose for Wear OS 1.2.0 (read more)
- For a list of the key changes in Wear Compose 1.2, see the release notes for (Compose for Wear OS 1.2 Beta01)
Version 1.2.0-rc01
July 26, 2023
androidx.wear.compose:compose-*:1.2.0-rc01 is released. Version 1.2.0-rc01 contains these commits.
Bug Fixes
- We have finalized the baseline profiles for our 1.2 release (Id5740)
Version 1.2.0-beta02
June 7, 2023
androidx.wear.compose:compose-*:1.2.0-beta02 is released. Version 1.2.0-beta02 contains these commits.
New Features
- We have added the new experimental
LocalReduceMotionCompositionLocalvariable which disables scaling and fading onScalingLazyColumn. (I58024)
Bug Fixes
- We have updated the baseline profiles for the wear compose foundation and material libraries(I4725d)
- We have fixed an inconsistency in the default values for
SwipeToDismissBoxcontentScrimColorparameters (I2d70f) - We have fixed the
DefaultTextStyledefault value used for theIncludeFontPaddingsetting (I737ed)
Version 1.2.0-beta01
May 24, 2023
androidx.wear.compose:compose-*:1.2.0-beta01 is released. Version 1.2.0-beta01 contains these commits.
What’s in Compose for Wear OS 1.2
The 1.2-beta01 release of Compose for Wear OS indicates that this release of the library is feature complete and the API is locked (except where marked as experimental). Wear Compose 1.2 includes the following new functionality:
expandableItemandexpandableItemsare two newFoundationcomponents that support expanding items within aScalingLazyColumn. UseexpandableItemfor a single expandable item, such as Text in which the number of lines. UseexpandableItemsfor a group of expandable items andexpandableButtonto simplify creating a button that collapses after the content is expanded.HierarchicalFocusCoordinator- this experimental composable enables marking sub-trees of the composition as focus enabled or focus disabled.Picker- the API now includesuserScrollEnabledto control whether the picker is active for user scrolling.PickerGroup- a new composable for handling multiple pickers together. It handles focus between the pickers using theHierarchicalFocusCoordinatorAPI and enables auto-centering of picker items.Placeholder- we have made updates to the shimmer and ‘Wipe Off’ animations. The wipe-off effect is now immediately applied when the content is ready.ScalingLazyColumn- we have migratedScalingLazyColumnand associated classes fromandroidx.wear.compose.material.ScalingLazyColumntoandroidx.wear.compose.foundation.lazy.ScalingLazyColumn. Please update to use theFoundation.Lazyversion.SwipeToReveal- we have added experimental support for swipe-to-reveal as a means to access secondary actions, supplementing the existing ‘long press’ pattern.Stepper- now has an overload with an additionalenableRangeSemanticsparameter to facilitate disabling the default range semantics.Previews- we have added the following custom annotations for previewing composables on Wear screens:WearPreviewSmallRoundpreviews the composable on a small, round device;WearPreviewLargeRoundpreviews the composable on a large round device;WearPreviewSquarepreviews the composable on a square device. Also, the following and multi-preview annotations:WearPreviewFontScalespreviews the composables on a wear device with multiple font sizes, whileWearPreviewDevicespreviews the composables on different wear devices.- We have added a
DefaultTextStyleto Wear Compose which defaults thePlatformTextStyle.includeFontPaddingproperty to true (this is the current setting). This will allow us to synchronize turning off font padding by default with the Compose libraries in an early 1.3 alpha version - see 1.2.0-alpha10 for more information.
New Features
- We have added experimental support for disabled scaling and fading animation when reduce_motion setting is switched on. (I58024)
Bug Fixes
- Improved documentation for
angularWidthDpinCurvedSize.kt(Iab75c) SwipeDismissableNavHostnow logs a warning with potential causes of empty backstack. This is done to prevent unexpected crashes caused because ofIllegalArgumentExceptionwhich was thrown when the backstack was empty. (I04a81, b/277700155)
Version 1.2.0-alpha10
May 10, 2023
androidx.wear.compose:compose-*:1.2.0-alpha10 is released. Version 1.2.0-alpha10 contains these commits.
New Features
- We have added support for Swipe to Reveal, as a means to access secondary actions. This pattern supplements the ‘long press’ pattern, the existing way a user could reveal (different) secondary actions. (I60862)
API Changes
- We have added
RevealScopeto action composables inSwipeToReveal, which gives access to the offset at which additional actions are revealed. (I3fd56)
Bug Fixes
- Fixed an issue with
ScalingLazyColumnbeing stuck on Wear API 33 after fling (Ic4599) - We have made some performance improvements to
PositionIndicatorfor jank reduction. (I35e92) - We have fixed a bug in Chip and
CompactChipwhere the semantic role was no longer being set toRole.Button. (I93f91, b/277326264)
Known Issues
We have identified a bug in Android Studio which causes failure in rendering preview when annotated with @WearPreviewDevices and @WearPreviewFontScales - a fix is planned for release soon. Please note that the other wear preview annotations work as intended in Android Studio Giraffe 2022.3.1 and beyond.
In version 1.2.0-alpha07 we added DefaultTextStyle to Wear Compose, maintaining the existing PlatformTextStyle.includeFontPadding value as true - for background, see Fix font padding in Compose. We will be changing the DefaultTextStyle to turn off font padding in an early 1.3 alpha version, to be consistent across the Android Platform. This will address some cases of text clipping with large font sizes and may also impact screen layouts, so that screenshot tests need updating. For example, with large font sizes we see text clipping here:
- It is no longer present when font padding is turned off:
The new setting can be adopted now by overriding the typography in your theme - see example code.
Version 1.2.0-alpha09
April 19, 2023
androidx.wear.compose:compose-*:1.2.0-alpha09 is released. Version 1.2.0-alpha09 contains these commits.
API Changes
- Add
angularSizeDpto theCurvedModifierapi for setting angular width in DP (I89a52)
Bug Fixes
- We have fixed accessibility issues in our time picker demos(Id0eb7)
Version 1.2.0-alpha08
April 5, 2023
androidx.wear.compose:compose-*:1.2.0-alpha08 is released. Version 1.2.0-alpha08 contains these commits.
API Changes
- We have renamed
ExpandableItemsStatetoExpandableState. (If85ea) - We have added
expandableButtonto simplify creating a button that collapses when the content is expanded and also updated the expandables examples. (Iae309)
Bug Fixes
- Improved expandable samples to show more possibilities. Modified animation of
expandableItemto keep its content centered through the animation. (I2f637) - Updated
ToggleControlsto avoid extra recompositions when manually animating the colors using State. (I5d319)
Version 1.2.0-alpha07
March 22, 2023
androidx.wear.compose:compose-*:1.2.0-alpha07 is released. Version 1.2.0-alpha07 contains these commits.
API Changes
- We have moved the Expandable Item components (added in 1.2.0-alpha06) from material to foundation, since they had no meaningful reference to the
MaterialTheme. (Ib0525)
Bug Fixes
- We have fixed a crash that occurred in a screen using
PickerGroup, by ensuring thatPickerGrouphandles focus correctly when no Picker has the focus. Also added support for RSB scrolling in our Picker demos. (If8c19) - We have improved the dialog transitions - the intro transition is now smoother to match the outro transition. (Ib5af9)
- We have added a
DefaultTextStyleto Wear Compose which defaults thePlatformTextStyle.includeFontPaddingproperty to true (this is the current setting). This will allows us to synchronize turning off font padding by default with the Compose libraries in the future - see (Fix font padding in Compose) for background. (I2aee8) - Reverted an
UpsideDownCakepreview dependency via activity-compose that blocked publishing apps to the Google Play Store. (I6443d)
Version 1.2.0-alpha06
March 8, 2023
androidx.wear.compose:compose-*:1.2.0-alpha06 is released. Version 1.2.0-alpha06 contains these commits.
API Changes
- Add
CurvedBoxcomponent, which places components on top of each other in the curved world. (I29200) - Added Expandable Item(s) - two new components to support either a group of expandable items in a
ScalingLazyColumn, or an expandable single item, such as Text in which the number of lines expands. (I95dd5) - We have added the following custom annotations for previewing composables on Wear screens:
WearPreviewSmallRoundpreviews the composable on a small, round device;WearPreviewLargeRoundpreviews the composable on a large round device;WearPreviewSquarepreviews the composable on a square device. Also, the following and multi-preview annotations:WearPreviewFontScalespreviews the composables on a wear device with multiple font sizes, whileWearPreviewDevicespreviews the composables on different wear devices. To use these previews, you must be using the latest Android Studio (Giraffe Canary 6) or beyond. Please note that if these annotations do not suit your purpose, Preview can still be used and supports further customisations via parameters. (I397ff) - We have marked
HierarchicalFocusCoordinatoras experimental while it is considered as a candidate to be moved into core compose libraries, given its wide applicability. (I3a768)
Bug Fixes
- Fixed a bug on
HierarchicalFocusCoordinator, when the lambda passed in for thefocusEnabledparameter is changed, we now correctly use the new one. (Icb353) - We have updated the default disabled content color to Background when using primary colors as the background in
Button,CompactButton,Chip,CompactChipandToggleButton. This improves the contrast for accessibility. (I527cc)
Version 1.2.0-alpha05
February 22, 2023
androidx.wear.compose:compose-*:1.2.0-alpha05 is released. Version 1.2.0-alpha05 contains these commits.
API Changes
- Updated
PickerGroupAPI to allow propagating the min constraints to the composable optionally. When set as true, the minimum constraints passed from the parent composable will be allowed on thePickerGroup. If set as false,PickerGroupwill reset the minimum constraints. (I3e046) - We have added
animateScrollToOptionto the Picker API in order to support programmatic animation to a specific Picker option (I6fe67)
Bug Fixes
- We have updated
HorizontalPageIndicatorto support right-to-left layouts. (Ia4359) - Added Screenshot tests for right-to-left layout in
HorizontalPageIndicator(I6fbb8) - Added further tests to
SwipeDismissableNavHostTestthat useTestNavHostController(I61d54)
Version 1.2.0-alpha04
February 8, 2023
androidx.wear.compose:compose-*:1.2.0-alpha04 is released. Version 1.2.0-alpha04 contains these commits.
New Features
PickerGroupfor handling multiple pickers together using the focus API. It handles the focus between the different pickers, enables auto-centering of the pickers based on parameters and allows developers to change the focus between different pickers while handling the events from the group. In talkback mode, thePickerGrouphandles the talkback focus by moving the focus to the selected Picker from the group. (I60840)
API Changes
- We have added an overload to Stepper with an additional
enableRangeSemanticsparameter in order to facilitate disabling the default range semantics (Ia61d4)
Bug Fixes
- Allow
ScalingLazyColumnto be nested within a horizontally scrolling page (Iec3f8, b/266555016) - Improvement of Stepper kdocs and
StepperTesttests clean-up. (Ic118e) - Updated
androidx.navigationdependency to version 2.5.3 (If58ed)
Version 1.2.0-alpha03
January 25, 2023
androidx.wear.compose:compose-*:1.2.0-alpha03 is released. Version 1.2.0-alpha03 contains these commits.
API Changes
- We have migrated
ScalingLazyColumn(and associated classes) fromandroidx.wear.compose.material.ScalingLazyColumntoandrdoidx.wear.compose.foundation.lazy.ScalingLazyColumn(see this example for migration). This new location more closely matches that ofcompose.foundation.lazy.LazyColumnand is more natural as it is not an opinionated Material component. The change is happening now in preparation for a new Material3 library, which we will be working on in parallel with the existing Material library. (I060e7)
The following changes are part of the ScalingLazyColumn migration from Material to Foundation.Lazy:
PositionIndicatorapis targeting MaterialScalingLazyColumnhave been deprecated - please update toFoundation.Lazy ScalingLazyColumn. AdditionallyanchorTypefield was added toScalingLazyListLayoutInfo. (I29d95)ScalingLazyColumnhas been marked as deprecated in the Wear Compose Material package (I16d34)- We have updated the
ScrollAwaymodifier to useScalingLazyListStatefrom Wear ComposeFoundation.Lazyand deprecated the overload that tookScalingLazyListStatefrom Wear Compose Material. (Ifc42c) - We have updated the Dialog APIs to use
ScalingLazyListStatefromFoundation.Lazyand deprecated the overloads that used MaterialScalingLazyListState(Ic8960) - We have updated the Picker APIs to use
ScalingParamsfromFoundation.Lazyand deprecated the overloads that used MaterialScalingParams. (Idc3d8)
Bug Fixes
- We have fixed a bug that caused unnecessary recompositions in
ScalingLazyListState.centerItemIndexby ensuring that it only pushes updates when the value actually changes (Ia9f38) - We have improved the performance of
SwipeToDismissBox(I3933b) - Added benchmark tests for
ScalingLazyColumnin Wear Compose Foundation (Ie00f9) - We have updated some internal
ScalingLazyColumnclasses methods in Material to use their equivalents fromFoundation.Lazy(I38aab) - We have fixed some issues in Picker tests and add more tests for checking scroll with offset (I6ac34)
- We migrated the
ScalingLazyColumnIntegration Demos to depend onFoundation.Lazyinstead of MaterialScalingLazyColumn(Ic6caa) - We have added optional
fromDate/toDateparameters to ourDatePickerdemo (I961cd)
Version 1.2.0-alpha02
January 11, 2023
androidx.wear.compose:compose-*:1.2.0-alpha02 is released. Version 1.2.0-alpha02 contains these commits.
API Changes
- Android Compose UI tests will now run layout passes for each frame when executing frames to get to idle (e.g. via
waitForIdle). This may affect tests that assert on individual frames of layout animations. (I8ea08, b/222093277) - The parameter
minLinesis added to Wear Text for consistent behaviour withBasicText(I24874) CompactChipTapTargetPaddinghas been made public so that it appears in the documentation (If1e70, b/234119038)
Bug Fixes
- Disable multiplatform builds for
wear.composepackages (Iad3d7) - Fix kdocs for
scrollToOption(I6f9a0) PlaceholderState.rememberPlaceholderState()updated to userememberUpdatedStateto that the state will update if theonContentReadylambda. (I02635, b/260343754)- We have fixed a text jittering issue seen in the
Pickercomponent by leveraging the new compositing strategy added toModifier.graphicsLayer. (I99302) - We have fixed a bug that caused flickering in our
DatePickerdemo (I660bd) - We have improved the accessibility for the 12-hour time and date picker demos (I05e12)
- We have updated our time and date picker demos so that the pickers are not affected by RSB changes when unselected (I4aecb)
Version 1.2.0-alpha01
December 7, 2022
androidx.wear.compose:compose-*:1.2.0-alpha01 is released. Version 1.2.0-alpha01 contains these commits.
New Features
- We’ve updated the experimental Placeholder functionality so that the “Wipe Off” effect is immediately applied when the content is ready rather than waiting for the next animation loop to start. We have also made some updates to the shimmer and wipe off animations. (I5a7f4)
API Changes
- We have added a
HierarchicalFocusCoordinatorcomposable to enable marking sub-trees of the composition as focus enabled or focus disabled.(I827cb) - We have added a new property to override the semantic role for
ToggleButton.(I67132) - We have updated
TimeTextDefaults.TimeFormat12Hoursto remove AM/PM inTimeText. This will change the default value oftimeSourceparameters inTimeTextAPI. (I1eb7f) - We have extended the Picker API to improve accessibility for screens with multi-picker. There is a new property
userScrollEnabledto control whether the picker is active for user scrolling. (I3c3aa)
Bug Fixes
- We have changed the default border width for an
OutlinedButton/OutlinedCompactButtonfrom 2.dp to 1.dp to match final UX specs. (Icf84d) - In order to reduce the effect of the first item added to an empty
ScalingLazyColumnappearing to scroll into place we have added an estimatedautoCentering topPaddingwhen the contents are empty. This change calculates the amount of top padding needed by assuming an initial item of height 0.dp. ForScalingLazyListAnchorType.ItemStartthis will calculate the correct top padding, forScalingLazyListAnchorType.ItemCenterthis calculation will be incorrect as the height of the items is needed to correctly size the contents resulting in a small scroll into place effect based on the items real height.(I239a4) - We have updated the background scrim applied to the
SwipeToDismissanimation to match the Wear platform. (I9003e) - We have fixed
PositionIndicatorhandling ofLazyListStateandScalingLazyListStatefor list items of size 0 to avoid divide by zero errors.(Ic28dd)
Version 1.1
Version 1.1.2
February 8, 2023
androidx.wear.compose:compose-foundation:1.1.2, androidx.wear.compose:compose-material:1.1.2, and androidx.wear.compose:compose-navigation:1.1.2 are released. Version 1.1.2 contains these commits.
Bug Fixes
- We have fixed a bug that caused unnecessary recompositions in
ScalingLazyListState.centerItemIndexby ensuring that it only pushes updates when the value actually changes (Ia9f38)
Version 1.1.1
January 11, 2023
androidx.wear.compose:compose-foundation:1.1.1, androidx.wear.compose:compose-material:1.1.1, and androidx.wear.compose:compose-navigation:1.1.1 are released. Version 1.1.1 contains these commits.
Bug Fixes
PlaceholderState.rememberPlaceholderState()updated to userememberUpdatedStateto that the state will update if theonContentReadylambda. (I02635, b/260343754)
Version 1.1.0
December 7, 2022
androidx.wear.compose:compose-foundation:1.1.0, androidx.wear.compose:compose-material:1.1.0, and androidx.wear.compose:compose-navigation:1.1.0 are released. Version 1.1.0 contains these commits.
Important changes since 1.0.0
- Stable release of Compose for Wear OS 1.1.0 (read more).
- For a list of the key changes in Wear Compose 1.1 see the release notes for (Compose for Wear OS 1.1 Beta01).
New Features
- We’ve updated the experimental Placeholder functionality so that the “Wipe Off” effect is immediately applied when the content is ready rather than waiting for the next animation loop to start. We have also made some updates to the shimmer and wipe off animations. (I5a7f4)
Bug Fixes
- We have changed the default border width for an
OutlinedButton/OutlinedCompactButtonfrom 2.dp to 1.dp to match final UX specs. (Icf84d) - In order to reduce the effect of the first item added to an empty
ScalingLazyColumnappearing to scroll into place we have added an estimatedautoCentering topPaddingwhen the contents are empty. This change calculates the amount of top padding needed by assuming an initial item of height 0.dp. ForScalingLazyListAnchorType.ItemStartthis will calculate the correct top padding, forScalingLazyListAnchorType.ItemCenterthis calculation will be incorrect as the height of the items is needed to correctly size the contents resulting in a small scroll into place effect based on the items real height.(I239a4) - We have updated the background scrim applied to the
SwipeToDismissanimation to match the Wear platform.(I9003e) - We have fixed
PositionIndicatorhandling ofLazyListStateandScalingLazyListStatefor list items of size 0 to avoid divide by zero errors.(Ic28dd)
Version 1.1.0-rc01
November 9, 2022
androidx.wear.compose:compose-foundation:1.1.0-rc01, androidx.wear.compose:compose-material:1.1.0-rc01, and androidx.wear.compose:compose-navigation:1.1.0-rc01 are released. Version 1.1.0-rc01 contains these commits.
Bug Fixes
- We have added baseline profile rules for
Placeholders,ScrollAway,RadioButton,Switch,Checkbox,OutlinedButton,OutlinedCompactButton,OutlinedChipandOutlinedCompactChip. (I8249c) - We have fixed a bug in
Modifier.scrollAwayso that if the specifieditemIndexis invalid (for example, if that item index is out of range), then theTimeTextwill now still be displayed. (I2137a) - We have updated the
SwipeToDismissBoxanimation to match the platform implementation. After the initial squeeze animation, the screen now slides off to the right once the dismissal has been triggered. (I41d34) - As an optimization, we have updated
Modifier.scrollAwayto only read thescrollStateinside the measure block to avoid recomposing the modifier after each remeasure. (I4c6f1) - We have added documentation and a sample to placeholders to show the correct ordering for
Modifier.placeholderandModifier.placeholderShimmerwhen applied to the same composable. (Ie96f4, b/256583229) - We have changed the default border width for an
OutlinedCompactChip/OutlinedChipfrom 2.dp to 1.dp to match final UX specs. (Ib3d8e) - We have fixed a bug in
rememberPickerStatewhere updated inputs were not saved, so that composables were not updated after changes to the inputs. (I49ff6, b/255323197) - We have made some UI updates to the placeholders, 1) change the shimmer gradient to 1.5x the screen size, 2) add easing (cubic bezier) of the shimmer progression and 3) speed up the wipe-off animation (250ms). (Id29c1)
- We have corrected a UI bug in the placeholder wipeOff effect where Chip and Card backgrounds were wiping off slightly early due to not taking the component’s position on screen into account. (I2c7cb)
- We have updated the placeholder background drawing to merge colors rather than layer them where possible to reduce the risk of alpha blending of the different cropped layers from allowing underlying colors to bleed through at the placeholder background edges. (I2ea26)
- We have corrected the calculation of
ScalingLazyListState.centerItemIndex/centerItemOffsetso that if two items sit either side of the viewport center line the one that is closest will be considered as thecenterItem. (I30709, b/254257769) - We have corrected a bug in the
ScalingLazyListState.layoutInfo.visibleItemsInfowhich was reporting incorrect offsets duringScalingLazyColumninitialization. Now an empty list will be returned until all list items are visible and have the correct offsets. Check forScalingLazyListState.layoutInfo.visibleItemsInfo.isNotEmpty()will confirm that theScalingLazyColumninitialization is complete and items are visible. (I3a3b8)
Version 1.1.0-beta01
October 24, 2022
androidx.wear.compose:compose-foundation:1.1.0-beta01, androidx.wear.compose:compose-material:1.1.0-beta01, and androidx.wear.compose:compose-navigation:1.1.0-beta01 are released. Version 1.1.0-beta01 contains these commits.
What’s in Compose for Wear OS 1.1
The 1.1.0-beta01 of Compose for Wear OS indicated that this release of the library is feature complete and the API locked.
- Wear Compose 1.1 release includes the following new functionality:
- Picker - Accessibility improvements to Picker so that multi-picker screens are navigable with screen readers and the content description is accessible
- Picker
contentDescriptionparameter is now used only for the selected Picker option and takes a nullable String (in the previous commit, it was necessary to pass a mapping from option to the content description, but only the selected option was used). - Picker items are now always center-aligned, fixing a bug when setting
gradientRatioto zero had the side-effect of changing the alignment. Chip/ToggleChip- We have updated the default gradients forChip/ToggleChipto bring them in line with the latest UX spec.ChipDefaults.gradientBackgroundChipColorshas been updated to start from 50% of primary rather than 32.5%.Chip/ToggleChip- Added overloads for modifying Chip shapesChip/Button/ToggleButton- Added a new outlined style for Chips and Buttons and newOutlinedChipandOutlinedButtoncomposables that provide a transparentChip/Buttonwith a thin border.- Card - Updated the default gradients for Cards to bring them in line with the latest UX spec.
CardDefaults.cardBackgroundPainterhas been updated to start from 30% of primary and end at 20% ofonSurfaceVariant(was previously 20% to 10%onSurfaceVariant).ToggleChip.toggleChipColorschanges from a linear gradient of 75% surface to 32.5% primary to 0% surface to 50% primary. Button/ToggleButton- Added properties for modifying button shapes.- Theme - Updated a number of the default colors in the
MaterialThemein order to improve accessibility as the original colors did not have sufficient contrast resulting in difficulties for users to differentiate chip/card/button backgrounds from the theme background color. InlineSlider/Stepper- Button roles added so thatTalkbackcan recognise them as buttons.- Scaffold -
PositionIndicatornow is positioned and sized so that it only takes the space needed. This is useful, for example, if semantic information is added to it, talkback now gets the correct bounds of thePositionIndicatoron screen. CurvedText/TimeText- AddedModifier.scrollAway, which scrolls an item vertically in/out of view, based on scroll state (with overloads to work withColumn,LazyColumnandScalingLazyColumn).ScrollAwayis typically used to scroll aTimeTextout of view as the user starts to scroll a list of items upwards.CurvedText/TimeText- Added support forfontFamily,fontStyleandfontSynthesisinCurvedTextStyle, usable oncurvedTextandbasicCurvedTextCurvedText/TimeText- AddedfontWeightto the constructor and copy method onCurvedTextStyleToggleControls- Added animatedCheckbox,SwitchandRadioButtontoggle controls for use withToggleChipandSplitToggleChip. These can be used instead of the static icons provided byToggleChipDefaults(switchIcon,checkboxIconandradioIcon).- Placeholder - Added experimental placeholder support. This has three distinct visual effects designed to work together.
- Firstly a placeholder background brush effect used in containers such as Chip and Cards to draw over the normal background when waiting for content to load.
- Secondly a modifier (
Modifier.placeholder()) to draw a stadium shaped placeholder widget over the top of content that is being loaded. - Thirdly a modifier gradient/shimmer effect (
Modifier.placeholderShimmer()) that is drawn over the top of the other effects to indicate to users that we are waiting for data to load.- All of these effects are designed to be coordinated and shimmer and wipe-off in an orchestrated fashion.
- Core Compose dependencies updated from 1.2 to 1.3
API Changes
- Font parameters (
fontFamily,fontWeight,fontStyle&fontSynthesis) can now be specified directly as parameters ofcurvedText(Idc422)
Bug Fixes
curveTextandbasicCurvedTextwill now work properly with talkback (the have a properly sized and placed (but empty) compose-ui node associated with them, using the text as content description) (I7af7c, b/210721259)- Bug fix to the
PickerwhenPickerState.repeatedItems = falseto add an explicit setting of autoCentering params on the Pickers internalScalingLazyColumnto ensure that it is possible to scroll the zero'th option to the center of the view. (I8a4d7)
Version 1.1.0-alpha07
October 5, 2022
androidx.wear.compose:compose-foundation:1.1.0-alpha07, androidx.wear.compose:compose-material:1.1.0-alpha07, and androidx.wear.compose:compose-navigation:1.1.0-alpha07 are released. Version 1.1.0-alpha07 contains these commits.
New Features
- We have added experimental placeholder support. This has three distinct visual effects designed to work together. Firstly a placeholder background brush effect used in containers such as Chip and Cards to draw over the normal background when waiting for content to load. Secondly a modifier (
Modifier.placeholder()) to draw a stadium shaped placeholder widget over the top of content that is being loaded. Thirdly a modifier gradient/shimmer effect (Modifier.placeholderShimmer()) that is drawn over the top of the other effects to indicate to users that we are waiting for data to load. All of these effects are designed to be coordinated and shimmer and wipe-off in an orchestrated fashion. (I3c339)
API Changes
- Added support for
fontWeight,fontFamily,fontStyleandfontSynthesisinCurvedTextStyle, usable oncurvedTextandbasicCurvedText. Those parameter can be used to specify the font and style to use on the curved text.(Iaa1a8),(I72759) - Updated
Modifier.scrollAway's offset parameter to Dp for consistency withModifier.offset(previously it was in pixels). Also, refactored as aLayoutModifierfor efficiency. (I9f94b) - As part of the new toggle controls API, we have renamed
RadioButton’s circleColortoringColor. (I28fa9) - We have added animated
Checkbox,SwitchandRadioButtontoggle controls for use withToggleChipandSplitToggleChip. These can be used instead of the static icons provided byToggleChipDefaults(switchIcon,checkboxIconandradioIcon). (I8a8c4)
Version 1.1.0-alpha06
September 21, 2022
androidx.wear.compose:compose-foundation:1.1.0-alpha06, androidx.wear.compose:compose-material:1.1.0-alpha06, and androidx.wear.compose:compose-navigation:1.1.0-alpha06 are released. Version 1.1.0-alpha06 contains these commits.
New Features
- We have added
Modifier.scrollAway, which scrolls an item vertically in/out of view, based on scroll state (with overloads to work withColumn,LazyColumnandScalingLazyColumn).ScrollAwayis typically used to scroll aTimeTextout of view as the user starts to scroll a list of items upwards. (I61766)
Bug Fixes
- The
PositionIndicatornow is positioned and sized so that it only takes the space needed. This is useful, for example, if semantic information is added to it, talkback now gets the correct bounds of thePositionIndicatoron screen. (Ie6106, b/244409133)
Version 1.1.0-alpha05
September 7, 2022
androidx.wear.compose:compose-foundation:1.1.0-alpha05, androidx.wear.compose:compose-material:1.1.0-alpha05, and androidx.wear.compose:compose-navigation:1.1.0-alpha05 are released. Version 1.1.0-alpha05 contains these commits.
Bug Fixes
- Button roles were added to
InlineSliderandStepperso that Talkback can recognise them as buttons. (Icb46c, b/244260275) - We have corrected the z-order of position and page indicators in the Scaffold. The indicators will now sit on top of the vignette and so will not be obscured by the vignette if it is present. (Ib988f, b/244207528)
Version 1.1.0-alpha04
August 24, 2022
androidx.wear.compose:compose-foundation:1.1.0-alpha04, androidx.wear.compose:compose-material:1.1.0-alpha04, and androidx.wear.compose:compose-navigation:1.1.0-alpha04 are released. Version 1.1.0-alpha04 contains these commits.
API Changes
- We have updated a number of the default colors in the MaterialTheme in order to improve accessibility as the original colors did not have sufficient contrast resulting in difficulties for users to differentiate chip/card/button backgrounds from the theme background color. The updated colors are surface(0xFF202124->0xFF303133), onPrimary(0xFF202124->0xFF303133), onSecondary(0xFF202124->0xFF303133), primaryVariant(0xFF669DF6->0xFF8AB4F8) and onError(0xFF202124->0xFF000000). The changes in colors though relatively subtle may impact existing screenshot tests. (81ab09)
Bug Fixes
- Fix a logic bug in
ScalingLazyColumnthat could result in lists with a small (typically exactly 2) number of list items not completing initialization and as a result being transparent. (504347)
Version 1.1.0-alpha03
August 10, 2022
androidx.wear.compose:compose-foundation:1.1.0-alpha03, androidx.wear.compose:compose-material:1.1.0-alpha03, and androidx.wear.compose:compose-navigation:1.1.0-alpha03 are released. Version 1.1.0-alpha03 contains these commits.
New Features
- We have added a new outlined style for
ChipsandButtonsand newOutlinedChipandOutlinedButtoncomposables that provide a transparentChip/Buttonwith a thin border. (Id5972)
API Changes
- Added overloads for modifying button shapes (Icccde)
Bug Fixes
- We have corrected the size of the toggle control area of the
ToggleChipas it was not matching its UX spec. The UX Spec calls for a 4.dp spacer between the label and a 24x24.dp toggle control icon area giving a total 28.dp width. However the implementation is incorrectly giving 36x24.dp toggle control area. This results in taking away 8.dp of usable text label area. NOTE: This bug fix gives additional space for the text label and as result can (positively) impact the text layout for overflowing text. If you have screenshot tests includingToggleChipsthey may need to be updated. (I514c8, b/240548670)
Version 1.1.0-alpha02
July 27, 2022
androidx.wear.compose:compose-foundation:1.1.0-alpha02, androidx.wear.compose:compose-material:1.1.0-alpha02, and androidx.wear.compose:compose-navigation:1.1.0-alpha02 are released. Version 1.1.0-alpha02 contains these commits.
New Features
- We have switched Compose for Wear OS dependencies on core Compose libraries from 1.2.0 to 1.3.0-alpha0X
API Changes
- Added overloads for modifying chip shapes (I02e87)
Bug Fixes
- We have animated the visibility of the vignette when showing/hiding Dialog, to be consistent with the existing scaling animation. (Ida33e)
- We have fixed a bug where a divide-by-zero could occur with some fling behavior when scrolling. (I86cb6)
- Fixed a bug in the
ChipDefaults.childChipColor()to ensure that the disabled background color is fully transparent. (I2b3c3, b/238057342)
Version 1.1.0-alpha01
June 29, 2022
androidx.wear.compose:compose-foundation:1.1.0-alpha01, androidx.wear.compose:compose-material:1.1.0-alpha01, and androidx.wear.compose:compose-navigation:1.1.0-alpha01 are released. Version 1.1.0-alpha01 contains these commits.
API Changes
- Picker's
contentDescriptionparameter is now used only for the selected Picker option and takes a nullable String (previously, it was necessary to pass a mapping from option to the content description, but only the selected option was used). (Ife6a7) - We have made accessibility improvements to Picker so that multi-picker screens are navigable with screen readers and the content description is accessible (I64edb)
Bug Fixes
- We have updated the baseline profile rules packaged with the Wear Compose library (I9c694)
- We have corrected the direction of the gradient for Chips in right to left mode. Was top left->bottom right, is now top right->bottom left. (Ic2e77)
- We have updated the default gradients for
Chip/ToggleChip/Cardto bring them in line with latest UX spec.ChipDefaults.gradientBackgroundChipColorshas been updated to start from 50% of primary rather than 32.5%.CardDefaults.cardBackgroundPainterhas been updated to start from 30% of primary and end at 20% ofonSurfaceVariant(was previously 20% to 10%onSurfaceVariant).ToggleChip.toggleChipColorschanges from a linear gradient of 75% surface to 32.5% primary to 0% surface to 50% primary. (I43bbd) - We have added a background color (
MaterialTheme.color.surface) behindChip/ToggleChipsthat have gradient backgrounds in order to ensure that they are properly visible in the unlikely event that a light color is used behind them. (Ibe1a4, b/235937657) - Picker items are now always center-aligned, fixing a bug when setting
gradientRatioto zero had the side-effect of changing the alignment. (I712b8)
Version 1.0
Version 1.0.2
September 7, 2022
androidx.wear.compose:compose-foundation:1.0.2, androidx.wear.compose:compose-material:1.0.2, and androidx.wear.compose:compose-navigation:1.0.2 are released. Version 1.0.2 contains these commits.
Bug Fixes
- We have corrected the z-order of position and page indicators in the Scaffold. The indicators will now sit on top of the vignette and so will not be obscured by the vignette if it is present. (Ib988f, b/244207528)
Version 1.0.1
August 24, 2022
androidx.wear.compose:compose-foundation:1.0.1, androidx.wear.compose:compose-material:1.0.1, and androidx.wear.compose:compose-navigation:1.0.1 are released. Version 1.0.1 contains these commits.
Bug Fixes
- Fix a logic bug in
ScalingLazyColumnthat could result in lists with a small (typically exactly 2) number of list items not completing initialization and as a result being transparent. (076c61)
Version 1.0.0
July 27, 2022
androidx.wear.compose:compose-foundation:1.0.0, androidx.wear.compose:compose-material:1.0.0, and androidx.wear.compose:compose-navigation:1.0.0 are released. Version 1.0.0 contains these commits.
Major features of 1.0.0
- This is the first stable release of Compose for Wear OS (read more).
- Compose for Wear OS builds upon the core Compose libraries providing additional wearable-specific components and, where appropriate, alternate implementations of core Compose components tailored to wearable devices.
- For a list of the key components in Wear Compose see the release notes for (Compose for Wear OS Beta01).
Bug Fixes
- We have animated the visibility of the vignette when showing/hiding Dialog, to be consistent with the existing scaling animation. (Ida33e)
- We have fixed a bug where a divide-by-zero could occur with some fling behavior when scrolling. (I86cb6)
- Fixed a bug in the
ChipDefaults.childChipColor()to ensure that the disabled background color is fully transparent. (I2b3c3, b/238057342)
Version 1.0.0-rc02
June 22, 2022
androidx.wear.compose:compose-foundation:1.0.0-rc02, androidx.wear.compose:compose-material:1.0.0-rc02, and androidx.wear.compose:compose-navigation:1.0.0-rc02 are released. Version 1.0.0-rc02 contains these commits.
Bug Fixes
- We have corrected the direction of the gradient for Cards in right to left (RTL) mode. It was top left->bottom right, and it is now top right->bottom left. (Ic2e77)
- We have updated the default gradients for
Chip/ToggleChip/Cardto bring them in line with the latest UX spec.ChipDefaults.gradientBackgroundChipColorshas been updated to start from 50% of primary rather than 32.5%.CardDefaults.cardBackgroundPainterhas been updated to start from 30% of primary and end at 20% ofonSurfaceVariant(was previously 20% to 10% onSurfaceVariant).ToggleChip.toggleChipColorschanges from a linear gradient of 75% surface to 32.5% primary to 0% surface to 50% primary. (I43bbd) - We have added a background color (
MaterialTheme.color.surface) behindChip/ToggleChipsthat have gradient backgrounds in order to ensure that they are properly visible in the unlikely event that a light color is used behind them. (Ibe1a4, b/235937657) - We have updated the baseline profile rules packaged with the Wear Compose library (I9c694)
Version 1.0.0-rc01
June 15, 2022
androidx.wear.compose:compose-foundation:1.0.0-rc01, androidx.wear.compose:compose-material:1.0.0-rc01, and androidx.wear.compose:compose-navigation:1.0.0-rc01 are released. Version 1.0.0-rc01 contains these commits.
API Changes
- Interfaces in compose libraries are now built using jdk8 default interface methods (I5bcf1)
Bug Fixes
- We have removed the explicit call to
fillMaxWidth()on list header as it is not needed and can result in problems if aScalinglazyColumnhas a mixture ofListHeader()andChip()components as the width will tend to grow/shrink asListHeaderitems are scrolled in/out of view. (I37144, b/235074035) - We have fixed a bug in the
ScalingLazyColumnthat could result in the list items not drawing correctly until scrolled if the 0th list item was large enough (including padding) (Ic6159, b/234328517) - We have made a small adjustment in the
ScalingLazyColumneasing as items reach the edge of the screen to match UX spec updates. Old valuesCubicBezierEasing(0.25f, 0.00f, 0.75f, 1.00f)-> new valuesCubicBezierEasing(0.3f, 0f, 0.7f, 1f). To keep the old behavior you can override thescalingParamsofScalingLazyColumn(Ie375c) - We have added padding to the
CompactChipin order to ensure that its tap target size is at least 48.dp high to meet the Material accessibility guidelines. This might impact any layouts you have usingCompactChipsas they will be taking up additional space. (I3d57c)
Version 1.0.0-beta03
June 1, 2022
androidx.wear.compose:compose-foundation:1.0.0-beta03, androidx.wear.compose:compose-material:1.0.0-beta03, and androidx.wear.compose:compose-navigation:1.0.0-beta03 are released. Version 1.0.0-beta03 contains these commits.
New Features
- We have made
ScalingLazyColumnwork in Compose@Previewmode. (I3b3b6, b/232947354)
API Changes
- We have changed the default value for the
ScalingLazyColumn.horizontalAlignmentproperty from Start toCenterHorizontallyto ensure that when list items do not fill the entire width of the column they will be aligned for maximum visibility. To switch back to the previous behavior sethorizontalAlignment = Alignment.Start.(I9ed4b)
Known Issues
- CompactChip’s tap/touch height is smaller than Material accessibility guidelines. This will be corrected in the next release (15th June). If you are using CompactChip this will affect your layouts as CompactChips will now have additional padding above and below. Please adjust and test your layouts or see the bug comments for a workaround to use the existing behavior. (b/234332135)
Bug Fixes
- New demo to animate adding or removing a start text on a
TimeText. (I16d75) - Add tests for
HorizontalPageIndicator.PagesState(I64ed0) - Updating
TimeTextcloser to UX specs (Ib7ea1)
Version 1.0.0-beta02
May 18, 2022
androidx.wear.compose:compose-foundation:1.0.0-beta02, androidx.wear.compose:compose-material:1.0.0-beta02, and androidx.wear.compose:compose-navigation:1.0.0-beta02 are released. Version 1.0.0-beta02 contains these commits.
New Features
- Picker now always responds to scroll events even when in read-only mode. This avoids the need for users to first select a Picker by tapping, before they can scroll. In read-only mode, options other than that currently selected are obscured by a shim in
gradientColor. (I72925) - We have changed the UX behavior of
Chip/ToggleChip/CompactChip/SplitToggleChipto stop them from doingfillMaxWidthby default. Instead they will grow to fit their contents. To keep the previous behavior simply addmodifier = Modifier.fillMaxWidth()(I60a2c, b/232206371)
Bug Fixes
CurvedTextStyleconstructor taking aTextStylenow also respects thefontWeight(This may be added to the constructor and copy methods in future revisions of the API) (Ieebb9)- Edge swiping improvements. When
Modifier.edgeSwipeToDismissis used and a swipe to the left is triggered from the edge area, it no longer triggers swipe-to-dismiss when swipe direction changes to the right. Previously, it was possible to trigger swipe-to-dismiss by swiping to the left and then swiping to the right.(I916ea) HorizontalPageIndicatornow shows up to 6 pages on the screen. If there are more than 6 pages in total, it shows a half-size indicator on the left or right, with a smooth transition between pages.(I2ac29)- Improved default snap behavior on
ScalingLazyColumnandPicker(I49539) - Edge swiping improvements. When
Modifier.edgeSwipeToDismissis used, swipe-to-dismiss only triggers when first touch lands on the edge and swiped to the right, Previously it was possible to trigger swipe-to-dismiss by swiping from any part of the screen if a scroll reaches the start.(I8ca2a)
Version 1.0.0-beta01
May 11, 2022
androidx.wear.compose:compose-foundation:1.0.0-beta01, androidx.wear.compose:compose-material:1.0.0-beta01, and androidx.wear.compose:compose-navigation:1.0.0-beta01 are released. Version 1.0.0-beta01 contains these commits.
What’s in Compose for Wear OS 1.0
The 1.0.0-beta01 of Compose for Wear OS marks an important milestone as the library is feature complete and the API locked.
Wear Compose Material components in the 1.0 release include:
- Material Theme - used as a replacement for the Compose for Mobile
MaterialTheme, provides the colors, shapes and typography for building components on Wearables that implement the Wear Material Design UX guidelines out of the box. Button,CompactButtonandToggleButton- Button offers a single slot to take an icon, image or short text (3 characters max). Circular in shape with recommended sizes for default, large or small buttons.CompactButtonoffers a single slot to take any content (icon, image or text) and is circular in shape with background size extra small.CompactButtonhas optional transparent padding around the background that increases the clickable area.ToggleButtonis a button that offers a single slot to take any content (short text, icon or image) and has on/off (checked/unchecked) states with coloring and different icons to show whether checked or not- Cards - used to display information about applications such as notifications. Flexible design for different use cases with
AppCardandTitleCardgiving different layouts and support for images as either card contents or backgrounds. - Chips - stadium shaped components similar to buttons, but with a larger area and multiple slots to allow for labels, secondary labels and icons. In different sizes and with support for images as backgrounds.
- ToggleChips and SplitToggleChips - a Chip with a checked/unchecked state and the addition of a
ToggleControlslot to show an icon such as a switch or radio button to show the checked state of the component. In addition, theSplitToggleChiphas two tappable areas, one clickable and one toggleable. - CircularProgressIndicator - Wear Material progress indicator with two variations. The first expresses the proportion of completion of an ongoing task and supports a gap in the circular track between start and end angles. The second indicates indeterminate progress for an unspecified wait time.
- curvedText - forms part of the DSL for describing
CurvedLayouts, along withcurvedRowandcurvedColumn, to lay out components around circular devices. See Wear Component Foundation below for more details onCurvedLayoutandCurvedModifier(this plays a similar role to Modifiers in the non curved world and allows for configuration of various aspects of layout, padding, gradients, etc). - Dialog, Alert and Confirmation - Dialog displays a full-screen dialog, layered over any other content, and supports swipe-to-dismiss. It takes a single slot which is expected to be opinionated Wear Material dialog content such as Alert or Confirmation. Alert is opinionated dialog content with slots for icon, title and message. It has overloads for either two negative and positive buttons shown side-by-side or a slot for one or more vertically stacked chips. Confirmation is opinionated dialog content that displays a message for a given duration. It has a slot for an icon or image (that could be animated).
- HorizontalPageIndicator - shows horizontal page position in a fashion appropriate to the Wearable form factor. Designed to take the full screen and show a curved indicator on round devices. Can be used with the Accompanist page viewer.
- Icon - A Wear implementation of Icon which takes color and alpha from the Wear Material Theme. For a clickable icon, see Button or Chip.
- Picker - displays a scrollable list of items from which to pick. By default, items will be repeated ‘infinitely’ in both directions. Can be displayed in read-only mode to hide unselected options.
- PositionIndicator - shows scroll position or other positional indication in a fashion appropriate to the Wearable form factor. Designed to take the full screen and shows a curved indicator on round devices.
- Scaffold - implements the basic Wear Material Design visual layout structure. This component provides an API to put together several Wear Material components (such as
TimeText,PositionIndicatorandVignette) constructing the screen, ensuring proper layout strategy for them and collecting necessary data so these components will work together correctly. - ScalingLazyColumn - a scrolling scaling/fisheye list component that forms a key part of the Wear Material Design language. Provides scaling and transparency effects to the content items.
ScalingLazyColumnis designed to be able to handle potentially large numbers of content items, which are only materialized and composed when needed. - Slider - allows users to make a selection from a range of values. The range of selections is shown as a bar, which can optionally be displayed with separators.
- Stepper - a full-screen component that allows users to make a selection from a range of values, using increase/decrease buttons at the top and bottom of the screen, with a slot in the middle for Text or a Chip.
- SwipeToDismissBox - handles the swipe-to-dismiss gesture. It takes a single slot for the background (only displayed during the swipe gesture) and the foreground content. Can optionally be combined with the androidx navigation library by using
SwipeDismissableNavHost(see Wear Compose Navigation library below). - Text - A Wear implementation of the Compose Material Text component, taking color and alpha from the Wear Material Theme
- TimeText - a component for showing Time and application status at the top of the screen. Adjusts to screen shape by using curved text on round screens.
Vignette - a screen treatment for use in the Scaffold that blurs top and bottom of screen when scrollable content is in use.
The following components are also included from Wear Compose Foundation:
CurvedLayout - Wear Foundation
CurvedLayoutis a layout composable that places its children in an arc, rotating them as needed. This is similar to a Row layout curved into a segment of an annulus. Note that the content of aCurvedLayoutis not a composable lambda - rather, it is a DSL (domain-specific language). All elements in the CurvedLayout’s DSL support an optional modifier parameter, created fromCurvedModifier.basicCurvedText - an element in the
CurvedLayoutDSL,basicCurvedTextallows developers to easily write curved text following the curvature of a circle (usually at the edge of a circular screen).basicCurvedTextcan be only created within theCurvedLayoutto ensure the best experience, like being able to specify the positioning, and usingCurvedModifiers. Note that in most cases curvedText should be used instead, since it uses Material theming.curvedComposable - wraps normal composable content so that it can be used with
CurvedLayout. IfcurvedComposablehas several elements inside, they will be drawn on top of each other (like a Box). To put several composables along a curve, wrap each one withcurvedComposable.curvedRow and curvedColumn - similar to Row and Column,
curvedRowandcurvedColumncan be nested inside aCurvedLayoutto lay elements out as needed. For acurvedRow, the angular layout direction and radial alignment may be specified. For acurvedColumn, the angular alignment and radial direction may be specified.CurvedModifier - all curved components accept a modifier parameter that can be created using
CurvedModifier: background, size, weight and padding are supported.The following component is also included from Wear Compose Navigation:
SwipeDismissableNavHost - provides a place in the Compose hierarchy for self-contained navigation to occur, with backwards navigation provided by a swipe gesture. Content is displayed within a
SwipeToDismissBox, showing the current navigation level. During a swipe-to-dismiss gesture, the previous navigation level (if any) is shown in the background.See previous release notes for the various Alpha releases for more details of what has been delivered.
API Changes
- Added
CurvedModifier.padding*functions. These are used to specify additional space to be added around a curved component. (I4dbb4) - Removed
CompositionLocalinternal class (I42490) - We have added constant values for
Button,CompactButtonandToggleButtonicon sizes, as guidance (I57cab) - Add enabled parameter to
AppCardandTitleCard. Now they have a similar API toandroidx.compose.materialCards. When the parameter is set to false, the card will not be clickable. (Idc48d, b/228869805)
Bug Fixes
- Stepper now disables the decrease and increase buttons when the lower/upper limits have been reached (and applies ContentAlpha.disabled to the iconColor) (I4be9f)
- We have added 1dp padding around Picker contents when drawn with a gradient to prevent jitter on text seen when swiping. (I0b7b9)
- Add screenshot tests for
PositionIndicator(I5e8bc) - Add more tests for
AppCardandTitleCard(I85391, b/228869805)
Version 1.0.0-alpha21
April 20, 2022
androidx.wear.compose:compose-foundation:1.0.0-alpha21, androidx.wear.compose:compose-material:1.0.0-alpha21, and androidx.wear.compose:compose-navigation:1.0.0-alpha21 are released. Version 1.0.0-alpha21 contains these commits.
New Features
- Added new curved modifiers to specify the background of a curved element:
CurvedModifier.background,.radialGradientBackgroundand.angularGradientBackground(I8f392) - Allow curved text overflow mode (clip/ellipsis/visible) to be specified. (I8e7aa)
- Added
CurvedModifier.weightmodifier, similar to the one in Compose. This can be used on children of curvedRow and CurvedLayout (for width) and children of curvedColumn (for height). (I8abbd) - Added
CurvedModifier.size,.angularSizeand.radialSizemodifiers to specify the size of a curved element. (I623c7)
API Changes
- Reorder parameters to ensure background is before color consistently across the Wear Compose API (I43208)
- Removed clockwise &
insideOutparameters and replaced with more expressive constants on new classes. Curved layout direction can now beLayoutDirectionaware, and it is inherited when not specified (If0e6a) - We have replaced
autoCenter: BooleanwithautoCenter: AutoCentringParamsin order to fix an API issue with theScalingLazyColumn. (Ia9c90) - We have renamed
iconTintColorandtoggleControlTintColortoiconColorandtoggleControlColorthroughout the API (Chip/ToggleChip/Dialog/Slider/Stepper/...) as the color is applied to the icon/toggleControl slot. (Ied238) - Rewrite
PageIndicatorStyleenum into value class (I2dc72) - We have added
RowScope/ColumnScope/BoxScopeto some of the slots in our Composables to indicate to developers what the layouts assumptions are. This will allow developers to use additional modifiers on some slot content and avoid the need to provide extra layout elements. Additionally we have made some minor updates to the AppCard/TitleCard colors so thattimeColorandappColordefault tocontentColor, these properties can still all be individually overridden if needed. (I26b59) - Made
SwipeToDismissBoxState.Companionobject private (I39e84) - Fix parameters order for
InlineSliderandStepper. A simple change to follow api guidelines (I11fec) - We have removed the Saver object for
SwipeToDismissBoxStateas it was not used. (Ifb54e) - We have updated
CompactChipto bring it inline with the latest UX Specification. Padding has been reduced to horizontal = 12.dp and vertical = 0.dp. The font for label has been changed from button to caption1. The recommended icon sizes are 20x20 when both icon and label are present and 24x24 for an icon only compact chip. For the icon only use case we have also ensured that the icon is center aligned. (Iea2be) - We have added a number of new fields to
ScalingLazyListLayoutInfoto enable developers to know the amount ofcontentPaddingandautoCenteringPaddingthat has been applied. These can be useful for developers when calculating fling/scroll (I7577b) - We have implemented in/out transitions for Dialog. A
showDialogparameter has been added and the Dialog now controls its own visibility (this enables Dialog to run the intro and outro animations when the Dialog is shown/hidden). Note that the outro animation is not performed when the user leaves the dialog via swipe-to-dismiss. We have also added a default value for state in the recently addedSwipeToDismissBoxoverload. (I682a0) - In order to better support i18n and a11y we have changed
ToggleChipandSplitToggleChipso that they no longer have a default for thetoggleControlslot. We have also changedToggleChipDefaultsso that the following methods now return ImageVector rather than Icon (note that as they no longer return @Composables they have changed to start with lower case),SwitchIcon()->switchIcon(),CheckboxIcon->checkboxIcon()andRadioIcon()->radioIcon()- this allows and encourages developers to create their ownIcon()composables with an appropriatecontentDescriptionset. (I5bb5b) - We have added a
SwipeDismissableNavHostStateparameter toSwipeDismissableNavHost. This supports use of edge-swiping on screens used as navigation destinations, becauseSwipeToDismissBoxStatecan now be hoisted and used to initialize bothSwipeDismissableNavHostStateandModifier.edgeSwipeToDismisson screens that require edge-swiping. (I819f5, b/228336555)
Bug Fixes
- Ensure curved layouts are updated when needed. (Ie8bfa, b/229079150)
- Bug fix for https://issuetracker.google.com/issues/226648931 (Ia0a0a, b/226648931)
- Removed unnecessary experimental annotations (I88d7e)
Version 1.0.0-alpha20
April 6, 2022
androidx.wear.compose:compose-foundation:1.0.0-alpha20, androidx.wear.compose:compose-material:1.0.0-alpha20, and androidx.wear.compose:compose-navigation:1.0.0-alpha20 are released. Version 1.0.0-alpha20 contains these commits.
New Features
- Add
edgeSwipeToDismissmodifier forSwipeToDismiss. AllowsswipeToDismissto be active only on the left edge of the viewport. Used when the center of the screen needs to be able to handle horizontal paging, such as 2-d scrolling a Map or swiping horizontally between pages.(I3fcec, b/200699800)
API Changes
- Base implementation of
CurvedModifiers, this opens the way to introduce ways to customize curved content (but noCurvedModifiersare provided yet, and the ability to create custom modifiers may be available later) (I9b8df) EdgeSwipemodifier documentation and default values update for better understanding .(I6d00d)- Add
PageIndicatorslot into Scaffold. By addingPageIndicatordirectly into Scaffold we might assure that it will be correctly shown on circular devices. (Ia6042) - Remove default Icons from
InlineSliderand Stepper parameters. This will help developers to be more attentive to localization and accessibility requirements. Usages of default icons were shown in demos and samples. (I7e6fd) - Replace Trailing and Leading parameter names with Start and End in TimeText (Iaac32)
- We have added a
SwipeToDismissBoxoverload with anonDismissedparameter to support the common usage of triggering a navigation event when the swipe gesture has completed. (I50353, b/226565726) - Removed
ExperimentalWearMaterialApiannotations fromTimeTextusage (Ide520) - We have marked
ScalingLazyList/Columnscope and info interfaces as sealed as they are not intended for external developers to implement and this will allow us to add new members in them in future without binary breaking changes. (I7d99f) - We have added a new
flingBehaviourproperty to the Picker and aPickerDefaults.flingBehaviour()method to enable configuration of the fling behavior such as adding RSB support.PickerStatenow implements theScrollableStateinterface. (Ib89c7)
Bug Fixes
- Update the Android Runtime (ART) baseline profile rules for Wear Compose libraries. ART can leverage profile rules on devices in order to compile ahead-of-time a specific subset of the application to improve the performance of the application. Note that this will have no effect on debuggable applications. (Iaa8ef)
- Improve documentation (I2c051)
Version 1.0.0-alpha19
March 23, 2022
androidx.wear.compose:compose-foundation:1.0.0-alpha19, androidx.wear.compose:compose-material:1.0.0-alpha19, and androidx.wear.compose:compose-navigation:1.0.0-alpha19 are released. Version 1.0.0-alpha19 contains these commits.
API Changes
- Renamed
CurvedRowtoCurvedLayout, and reworked to be a scope with a DSL. Using this DSL, more complex curved layouts can be specified using a series of nestedcurvedRowandcurvedColumn(Which are the curved layout equivalents of Row and Column). Inside these layout elements, three elements can be used:curvedComposable(to add any @Composable),basicCurvedText(foundation's curved text) andcurvedText(wear material aware curved text). (Ib776a) - Make the side for the
PositionIndicatorconfigurable. The basic PositionIndicator’s position can now be configured to be End (layout direction-aware), OppositeRsb (takes into account screen rotation, to position itself opposite to the physical RSB), or the absolutes Left & Right. (I2f1f3) - For
SwipeToDismissBox, we have renamedSwipeDismissTarget.Original toSwipeToDismissValue.DefaultandSwipeDismissTarget.DismissaltoSwipeToDismissValue.Dismissed. We have also movedSwipeToDismissBoxDefaults.BackgroundKeyandSwipeToDismissBoxDefaults.ContentKeytoSwipeToDismissKeys.Background,SwipeToDismissKeys.Contentrespectively. (I47a36) - We have added a read-only mode to Picker, for screens with multiple Pickers where only one Picker is editable at a time. When the Picker is read-only, it displays the currently selected option, and a label if one has been provided. (I879de)
SwipeToDismissBoxStatehas been refactored to restrict the scope ofExperimentalWearMaterialApitoModifier.swipeableandSwipeableState, which are now used internally.SwipeToDismissBoxStatenow hascurrentValue,targetValue,isAnimationRunningandsnapTomembers to support common use cases - please let us know if you require any further properties to be made available. Also fixed the behavior ofSwipeableStatein the case where the swipe offset is within a rounding error of an anchor. (I58302)
Bug Fixes
- Simplified and fixed code to detect if the content of a
ScalingLazyColumncan be scrolled (used to decide if we display a scrollbar or not) (I7bce0) - Fixed a bug on Position Indicator when used with more than one state and switching between them (I320b5)
- We have updated the default Compose for Wear OS theme typography/fonts to match our latest UX guidance. Of note display1 (40.sp) and display2 (34.sp) are now smaller than their previous values and various other minor updates to line height and line spacing have been made. (Ie3077)
- We have added resistance to
SwipeToDismissBoxso that motion only happens when swiping to dismiss and not at all in the opposite direction. (Ifdfb9) - We have changed some of the default parameter values for the
CircularProgressIndicatorfunctions to bring them in-line with Wear Material Design UX guidance. For the Spinner/Indeterminant version the size (40->24.dp), indicatorColor (primary->onBackground), trackColor transparency (30%->10%) and stroke width (4->3dp) have been updated. For the Progress/Determinate version the trackColor transparency (30%->10%) has been updated. (I659cc) - We have updated the default scaling params of the
ScalingLazyColumnin-line with the latest Wear Material Design UX specifications. Visually this results in list items starting to be scaled closer to the list center, but being less scaled at the list edge than before. (Ica8f3) - Some adjustments to
ScalingLazyColumnDefaults.snapFlingBehaviorto improve the end of the animation (If3260)
Version 1.0.0-alpha18
March 9, 2022
androidx.wear.compose:compose-foundation:1.0.0-alpha18, androidx.wear.compose:compose-material:1.0.0-alpha18, and androidx.wear.compose:compose-navigation:1.0.0-alpha18 are released. Version 1.0.0-alpha18 contains these commits.
API Changes
- Several improvements to PositionIndicator: ShowResult renamed PositionIndicatorVisibility. Some performance improvements to avoid recomputations when not needed (Iaed9d)
- The recommended coloring for the
SplitToggleChiphas been updated. SplitToggleChip's now have a solid colored background when checked or unchecked with the coloring of the ToggleControl being the primary indication of whether the component is checked or not. We have added a newToggleDefaults.splitToggleChipColors()to support the new color scheme. We have also simplified thetoggleChipColors()methods removing the splitBackgroundOverlayColor (I7e66e) - We have added unadjustedSize to the
ScalingLazyListItemInfoas it is not safe to calculate the original item size using the scaled size and scaling factor due to float maths precision. (I54657, b/221079441) - Add
HorizontalPageIndicator. It represents a total number of pages and a selected page. Might be linear or curved, depending on the shape of the device. It also supports custom indicator shape, which defines how each indicator is visually represented. (Iac898) - We have updated
PickerStateso that the numberOfOptions can be updated. This supports use-cases such as aDatePicker, when the number of days in the month changes depending on the month selected. The constructor parameter for PickerState has changed to initialNumberOfOptions accordingly. (Iad066) - Hide the
PositionIndicatorwhen is a scrollbar and can't scroll. (Id0a7f) - For consistency with Scaffold, our full-screen Dialog component now displays a
PositionIndicatorand aVignette. We are also now usingScalingLazyColumninstead ofColumn, which means that the Dialog contents are now inScalingLazyListScope(and typically need to be enclosed by item { /* content */ }). Dialog supports the verticalArrangement parameter accordingly. (Idea13) - We have changed the name of
ToggleChipandSplitToggleChiptoggleIcon property to toggleControl to better align with Material Design in order to help designers and developers navigate the API. (If5921, b/220129803) - We have added a new entry caption3 to the Wear Material Theme Typology.Caption3 is a small font used for the extra long-form writing like legal texts. (I74b13, b/220128356)
Bug Fixes
- Stop the snapping animation when we are there. (Idb69d)
- Animate changes in PositionIndicator. (I94cb9)
- Based on UI/UX feedback we have changed the
ScalingLazyColumnautoCentering so that it will provide only enough space to make sure the items with indexScalingLazyListState.initialCenterItemIndexor higher will be able to be fully scrolled to the center of the viewport. This allows developers to place one or two items about the item initially in the center which are not scrollable into the middle. This will mean that an autoCenter'ingScalingLazyColumnwill not be able to scroll above theinitialCenterItemIndex/initialCenterItemScrollOffset(I22ee2) - We have added a demo for a Date Picker and fixed a bug in
PickerStatewhere the initiallySelectedOption was not applied until the Picker had been displayed. (Id0d7e) - In order to reduce the clipping of wider
ScalingLazyColumnitems on circular screens we have increased the default horizontal content padding from 8 to 10 dp. (I0d609) - Ensure the
PositionIndicatoris shown when scrolling. (Ied9a2)
Version 1.0.0-alpha17
February 23, 2022
androidx.wear.compose:compose-foundation:1.0.0-alpha17, androidx.wear.compose:compose-material:1.0.0-alpha17, and androidx.wear.compose:compose-navigation:1.0.0-alpha17 are released. Version 1.0.0-alpha17 contains these commits.
New Features
- We have added snap support that can be used with
ScalingLazyColumn. SetflingBehavior = ScalingLazyColumnDefaults.flingWithSnapBehavior(state)to enable snap support. (I068d3, b/217377069) - We have added demos for Picker used to select a time in either 24 hour or 12 hour clock. (Ie5552)
API Changes
- Fix an issue with
TimeTextcustom fonts & styles on square device (Iea76e) ScalingLazyListLayoutInfonow hasreverseLayout,viewportSizeand orientation properties matching those fromLazyListLayoutInfo(I4f258, b/217917020)ScalingLazyColumnnow has auserScrollEnabledproperty matching that fromLazyList(I164d0, b/217912513)- Pickers now have a gradient on the top and bottom by default (Iab92a)
Bug Fixes
- We have modified
ScalingLazyColumnso that it no longer greedily fills all of the space in its parent. Instead it will take its size from the size of its contents. This makes it consistent with the behaviour ofLazyColumn. If you want to reinstate the old behaviour then passModifier.fillMaxWidth()/width()/widthIn()to theScalingLazyColumn(I51bf8) - We have improved the exception message in
SwipeDismissableNavHost.ktthat was triggered if the navigation backstack was empty. (I1b1dc)
Version 1.0.0-alpha16
February 9, 2022
androidx.wear.compose:compose-foundation:1.0.0-alpha16, androidx.wear.compose:compose-material:1.0.0-alpha16, and androidx.wear.compose:compose-navigation:1.0.0-alpha16 are released. Version 1.0.0-alpha16 contains these commits.
New Features
- Add
CircularProgressIndicator. Progress indicators display the length of a process or an unspecified wait time. Supports a gap (cutout) for TimeText or other components if used full-screen. (Iab8da)
API Changes
- Pickers now have a
flingBehaviorparameter, the default value makes them snap to the closest option when scrolling/flinging. (I09000) - Additional integer API for InlineSlider and Stepper (I1b5d6)
Bug Fixes
- We have changed the default initialCenterItemIndex for the
ScalingLazyListStatefrom 0->1. This means that unless overridden on state construction withScalingLazyListState.rememberScalingLazyListState(initialCenterItemIndex =)then the 2nd list item (index == 1) will be placed in the center of the viewport at initialization and the 1st (index == 0) item will be placed before it. This allows for a better default visual effect out of the box as most of the viewport will be filled with list items. (I0c623, b/217344252) - We have reduced the
ScalingLazyColumndefaultextraPaddingthat is provided to ensure that there are plenty of list items to draw (even when we are scaling some of them down in size) from 10% to 5%. This will avoid composing extra list items that might not appear in the viewport. If non standard scalingParams are being used (more extreme scaling for instance) the developer can adjust extra padding usingviewportVerticalOffsetResolver. (I76be4) - Fix an issue with TimeText on multiple lines on square device (Ibd3fb)
- We have modified
ScalingLazyColumnso that it no longer greedily fills all of the space in its parent. Instead it will take its size from the size of its contents. This makes it consistent with the behavior ofLazyColumn. If you want to reinstate the old behavior then passModifier.fillMaxSize()to theScalingLazyColumn- NOTE: This change is incomplete and will be addressed in a follow up change in the next Alpha release. (I3cbfa)
Version 1.0.0-alpha15
January 26, 2022
androidx.wear.compose:compose-foundation:1.0.0-alpha15, androidx.wear.compose:compose-material:1.0.0-alpha15, and androidx.wear.compose:compose-navigation:1.0.0-alpha15 are released. Version 1.0.0-alpha15 contains these commits.
API Changes
- We have added a new property
autoCenteringto theScalingLazyColumn. When true (the default) this will ensure that all items including the first and last can be scrolled so that they are visible in the center of the lists viewport. Note that if using auto-centering you will probably want to set vertical content padding to 0.dp. If both autoCentering and vertical content padding are provided then they will both result in additional space being available before the first and after the last list items allowing them to be scrolled even further. (I2a282, b/214922490) - We have added a
Dialogcomponent that enables any composable to trigger a full screen dialog that sits on top of other content. When shown, the dialog supports swipe-to-dismiss and will show its parent's content in the background during the swipe gesture. The dialog content is expected to beAlertorConfirmation(renamed from earlier componentsAlertDialogandConfirmationDialog) -Alert,ConfirmationandDialogare all in theandroidx.wear.compose.material.dialogpackage. Alert and Confirmation can be used as navigation destinations. Also, added ColumnScope to Alert and Confirmation parameters as necessary. (Ia9014) - We have removed
onSurfaceVariant2from the Compose for WearOS Material Theme Colors and replaced uses in the library withonSurfaceVariant. (Icd592) - Added a method to programmatically select an option on the
PickerState, the initially selected option can now also be specified when creating aPickerState. (I92bdf) - We have added support for customizing the fling behavior of the
ScalingLazyColumn. (I1ad2e, b/208842968) - We have added
NavController.currentBackStackEntryAsState()to theWear.Compose.Navigationlibrary. (If9028, b/212739653) - Added
Modifier.onRotaryScrollEvent()andModifier.onPreRotaryScrollEvent()for Wear devices with a rotating side button.(I18bf5, b/210748686)
Version 1.0.0-alpha14
January 12, 2022
androidx.wear.compose:compose-foundation:1.0.0-alpha14, androidx.wear.compose:compose-material:1.0.0-alpha14, and androidx.wear.compose:compose-navigation:1.0.0-alpha14 are released. Version 1.0.0-alpha14 contains these commits.
New Features
We have added a number of methods to
ScalingLazyListStateto allow developer control over scrolling to specific list items and also setting the initial list item and offset.As part of this change we have also modified the ScalingLazyList so that it is oriented around the center of the viewport of the ScalingLazyList rather than the start of the viewport.
A new property
anchorType: ScalingLazyListAnchorType = ScalingLazyListAnchorType.ItemCenterhas been added to theScalingLazyListto control whether the center (ScalingLazyListAnchorType.ItemCenter) orEdge(ScalingLazyListAnchorType.ItemStart) should be aligned to the viewport's centerline.As a result the
ScalingLazyListItemInfo.offsetandScalingLazyListItemInfo.adjustedOffsethave changed and will now reflect the offset of the item with respect to both the position of the list item and theanchorTypeof the list. E.g. for aScalingLazyColumnwithanchorTypeofItemCenterand an list item positioned with its center on the centerline of the viewport the offset would be0.The new methods are
scrollTo,animatedScrollTo,centerItemIndex, andcenterItemOffset. (I61b61)We have added a back button handler to
SwipeDismissableNavHost, so that pressing back navigates to the previous level in the navigation hierarchy. (I5b086, b/210205624)
Version 1.0.0-alpha13
December 15, 2021
androidx.wear.compose:compose-foundation:1.0.0-alpha13, androidx.wear.compose:compose-material:1.0.0-alpha13, and androidx.wear.compose:compose-navigation:1.0.0-alpha13 are released. Version 1.0.0-alpha13 contains these commits.
API Changes
- We have made
RangeIconsinternal (referenced internally byInlineSliderandStepper). (I927ec)
Bug Fixes
Fixed an issue where
SwipeDismissableNavHostwould add a destination to the Compose hierarchy before it has reached theCREATEDLifecycle state, resulting in anIllegalStateException. This fix was a prerequisite to updating dependency onnavigation-composeto2.4.0-beta02and beyond. (I40a2b, b/207328687)Added a Drawables enum class for getting drawable resources within the Wear Compose library, so that reflection is no longer needed. This fixes a bug where library drawables were removed when
minifyEnabled=trueorshrinkResources=true). (Ib2a98)Added tests for
Stepperin Wear Compose (I2d03a)Added samples for
SwipeDismissableNavHostin Wear Compose Navigation. (I85f06)
Version 1.0.0-alpha12
December 1, 2021
androidx.wear.compose:compose-foundation:1.0.0-alpha12, androidx.wear.compose:compose-material:1.0.0-alpha12, and androidx.wear.compose:compose-navigation:1.0.0-alpha12 are released. Version 1.0.0-alpha12 contains these commits.
New Features
We have added a Stepper component which allows users to make a selection from a range of values. Stepper is a full-screen control with increase and decrease buttons at the top and bottom, and a slot in the middle (expected to take either a Chip or Text). The button icons can be customized if required. (I625fe)
We have added 2 new composables for displaying dialogs: AlertDialog waits for a response from the user and displays a title, icon, message and either a) two buttons for simple positive/negative choices or b) vertically stacked chips or toggle chips for more flexible choices, ConfirmationDialog displays an acknowledgement with a timeout. This simple dialog has slots for a title and an (animated) icon. (Ic2cf8)
API Changes
- Add units (millis) to suggested dialog duration values. (I09b48)
Version 1.0.0-alpha11
November 17, 2021
androidx.wear.compose:compose-foundation:1.0.0-alpha11, androidx.wear.compose:compose-material:1.0.0-alpha11, and androidx.wear.compose:compose-navigation:1.0.0-alpha11 are released. Version 1.0.0-alpha11 contains these commits.
New Features
- We have added a picker component that lets the user select an item from a scrolling list. By default, the list of selectable items is repeated 'infinitely' in both directions, to give the impression of a rotating cylinder seen from the side. Two features will be added in later releases: snapping to a value after a swipe/fling; adding a function to PickerState to set/scroll to the current value. (I6461b)
API Changes
- Added a ScalingLazyItemScope and some new modifiers fillParentMaxSize/fillParentMaxWidth/fillParentMaxHeight to allow list items to be sized based on the size of the parent container. Items can be set to fill all or a fraction of the parent’s size. This exposes functionality already available in the LazyRow/Column (I4612f)
- Added support to ScalingLazyColumn to allow items to have a key. Also added convenience methods to allow adding of items from Arrays and Lists. (Ic1f89)
Bug Fixes
- Additional examples for TimeText (I8cb64)
Version 1.0.0-alpha10
November 3, 2021
androidx.wear.compose:compose-foundation:1.0.0-alpha10, androidx.wear.compose:compose-material:1.0.0-alpha10, and androidx.wear.compose:compose-navigation:1.0.0-alpha10 are released. Version 1.0.0-alpha10 contains these commits.
New Features
Added an InlineSlider for wear compose. InlineSlider allows users to make a selection from a range of values. The range of selections is shown as a bar between the minimum and maximum values of the range, from which users may select a single value. (If0148)
Check out the new Compose for WearOS Codelab!
API Changes
- Macrobenchmark now has a
minSdkVersionof23. (If2655)
Bug Fixes
- Update transition handling in SwipeDismissableNavHost in a SideEffect (I04994, b/202863359)
- Update transition handling in SwipeDismissableNavHost (I1cbe0, b/202863359)
Version 1.0.0-alpha09
October 27, 2021
androidx.wear.compose:compose-foundation:1.0.0-alpha09, androidx.wear.compose:compose-material:1.0.0-alpha09, and androidx.wear.compose:compose-navigation:1.0.0-alpha09 are released. Version 1.0.0-alpha09 contains these commits.
New Features
- We have launched the Developer Preview of Compose on Wear OS - see our blog post which reviews the main composables and links to further resources to starting using them.
API Changes
- We have added support for developers to be able to customize all of the colors in the Wear Material Design Color theme. (I4759b, b/199754668)
Bug Fixes
- Added SwipeToDismissBox samples that persist state (Ibaffe)
- Added links to developer.android.com guides from KDocs for CurvedText, TimeText and SwipeToDismissBox. (I399d4)
- SwipeDismissableNavHost now throws if there's no current destination (indicates that the NavGraph was not built with the wear.compose.navigation.composable utility function) (I91403)
- Added additional documentation and examples for time source usage in TimeText (I4f6f0)
Version 1.0.0-alpha08
October 13, 2021
androidx.wear.compose:compose-foundation:1.0.0-alpha08, androidx.wear.compose:compose-material:1.0.0-alpha08, and androidx.wear.compose:compose-navigation:1.0.0-alpha08 are released. Version 1.0.0-alpha08 contains these commits.
API Changes
- We have renamed AppCard and TitleCard
bodyproperties tocontentand moved them to the end of the property list to allow them to be provided as a trailing lambda. Also renamedbodyColortocontentColorfor consistency with the new slot names. (I57e78)
Bug Fixes
- Added links to developer.android.com guides from KDocs for button, card, chip, theme, position indicator and scaling lazy column components. (I22428)
- Fix WearOS SwipeToDismissBox sometimes not handling swipes. (I9387e)
- Added samples for Button, CompactButton, Chip, CompactChip, AppCard, TitleCard, ToggleButton, ToggleChip, SplitToggleChip (Iddc15)
- Added microbenchmark performance tests for Card, Chip, ToggleChip, TimeText and ScalingLazyColumn. (If2fe9)
Version 1.0.0-alpha07
September 29, 2021
androidx.wear.compose:compose-foundation:1.0.0-alpha07, androidx.wear.compose:compose-material:1.0.0-alpha07, and androidx.wear.compose:compose-navigation:1.0.0-alpha07 are released. Version 1.0.0-alpha07 contains these commits.
New Features
- Added a CurvedText component in material, a component allowing developers to easily write curved text following the curvature of a circle (usually at the edge of a circular screen). (I19593)
API Changes
- Added tests for TimeText (Idfead)
- Transform ArcPaddingValues into an interface. (Iecd4c)
- Added animation to SwipeToDismissBox (I9ad1b)
- Added hasBackground parameter to the SwipeToDismissBox API so that the swipe gesture can be disabled when there is no background content to display. (I313d8)
rememberNavController()now takes a optional set ofNavigatorinstances that will be added to the returnedNavControllerto better support optional Navigators such as those from Accompanist Navigation Material. (I4619e)- Reference NamedNavArgument from navigation-common and remove copy from wear.compose.navigation. (I43af6)
Bug Fixes
- Fixed CurvedRow test flakiness on smaller devices. (If7941)
- Fixed possible flickering on CurvedRow when the content updates, and ensures the curved row is remeasured (Ie4e06)
- ChipDefaults.gradientBackgroundChipColors() has been updated in line with UX Spec changes. The gradient now starts with MaterialTheme.colors.primary with alpha 32.5% and ends with MaterialTheme.colors.surface with alpha @ 0% over a background of MaterialTheme.colors.surface @ 75% alpha. (Id1548)
- We have updated the colors for ToggleChips when in the selected state to match the latest Wear Material Design UX Spec guidance. When selected ToggleChips now have a gradient background from MaterialTheme.color.surface @ 0% alpha, top left, to MaterialTheme.color.primary @ 32% alpha, bottom right, over a background of MaterialTheme.color.surface @ 75% alpha. This results in a more subtle difference between checked and unchecked for the ToggleChip. (Idd40b)
Version 1.0.0-alpha06
September 15, 2021
androidx.wear.compose:compose-foundation:1.0.0-alpha06, androidx.wear.compose:compose-material:1.0.0-alpha06, and androidx.wear.compose:compose-navigation:1.0.0-alpha06 are released. Version 1.0.0-alpha06 contains these commits.
New Features
- We have added Scaffold a top level application composable that provides a structure for handling PositionIndicators (like Scroll or Volume) position, an area at the top of the screen for displaying the time and application status, and also supports a Vignette to blur the screen top and bottom edge for scrollable content. The main area of the Scaffold is where the application contents are placed. (I5e0bf)
- Added TimeText implementation for Wear Compose (I5654c)
Wear Compose Navigation Library
We have added the first release of the Wear Compose Navigation library, which provides integration between the Wear Compose and Androidx Navigation libraries. It provides a simple means to navigate between @Composable functions as the destinations in your application.
This initial release provides:
- A
SwipeDismissableNavHostcomposable that hosts a navigation graph and provides backwards navigation via swipe gestures NavGraphBuilder.composableextension to assist with constructing navigation graphsrememberSwipeDismissableNavController()to allow hoisting state
- A
Example usage where we create two screens and navigate between them:
val navController = rememberSwipeDismissableNavController() SwipeDismissableNavHost( navController = navController, startDestination = "start" ) { composable("start") { Column( horizontalAlignment = Alignment.CenterHorizontally, verticalArrangement = Arrangement.Center, modifier = Modifier.fillMaxSize(), ) { Button(onClick = { navController.navigate("next") }) { Text("Go") } } } composable("next") { Column( horizontalAlignment = Alignment.CenterHorizontally, verticalArrangement = Arrangement.Center, modifier = Modifier.fillMaxSize(), ) { Text("Swipe to go back") } } }Wear Compose Navigation is packaged as a separate library so that simple WearCompose applications that implement their own hand-rolled navigation are not required to depend on the Androidx Navigation library.
API Changes
- Updated
SwipeDismissableNavHostto supportrememberSaveableby setting the key identity for background and content (I746fd) - We have added a PositionIndicator adapter that can handle LazyListState (I21b88)
- Updated SwipeToDismissBox to support rememberSaveable (Ie728b)
- We have added reverseLayout support to the ScalingLazyColumn. This allows for the reversing of the direction of scrolling and layout (I9e2fc)
- Deprecated
performGestureandGestureScope, which have been replaced byperformTouchInputandTouchInjectionScope. (Ia5f3f, b/190493367) - We have renamed VignetteValue to VignettePosition and renamed VignetteValue.Both renamed to VignettePosition.TopAndBottom. (I57ad7)
- We have renamed ScalingLazyColumnState to ScalingLazyListState, ScalingLazyColumnItemInfo to ScalingLazyListItemInfo, ScalingLazyColumnLayoutInfo to ScalingLazyListLayoutInfo and ScalingLazyColumnScope to ScalingLazyListScope in case we decide to add a ScalingLazyRow implementation in the future. (I22734)
Bug Fixes
- Updated CompactChip documentation to describe what happens if neither an icon nor a label is provided. (I4ba88)
- We have made some adjustments to the Wear card components. (I6b3d0)
- TitleCard spacing between Title and Body reduced from 8.dp to 2.dp.
- TitleCard header font changed from body to title3.
- Card background gradient changed to make the background appear darker.
Version 1.0.0-alpha05
September 1, 2021
androidx.wear.compose:compose-foundation:1.0.0-alpha05 and androidx.wear.compose:compose-material:1.0.0-alpha05 are released. Version 1.0.0-alpha05 contains these commits.
API Changes
- Mark ArcPaddingValues as @Stable (I57deb)
- ScalingLazyColumnState now implements the ScrollableState interface giving developers programmatic access to scroll the component. (I47dbc)
Bug Fixes
- We have reduced the spacing between Icon and Text in Chip and ToggleChip to bring them in line with updates to the UX Spec. (I83802)
Version 1.0.0-alpha04
August 18, 2021
androidx.wear.compose:compose-foundation:1.0.0-alpha04 and androidx.wear.compose:compose-material:1.0.0-alpha04 are released. Version 1.0.0-alpha04 contains these commits.
New Features
- Added a SwipeToDismissBox and swipeable modifier that can be used to support a left-to-right swipe-to-dismiss gesture. Although independent of navigation components, this is expected to be used to exit one screen and navigate to another. Added integration tests to demo swipe-to-dismiss. (I7bbaa)
- We have added ScalingLazyColumnItemInfo and ScalingLazyColumnLayoutInfo interfaces to ScalingLazyColumnState class to enable developers to know the actual positions and sizes of items in the ScalingLazyColumn after scaling has been applied. We have also fixed a bug with the way that scaling was calculated when 'top' content padding is applied to the ScalingLazyColumn. (I27c07)
API Changes
- Add CurvedTextStyle class to specify curved text styling Options. Similar to TextStyle, but now only supports color, fontSize and background. More styling options will be added in the future. (I96ac3)
- We have added ScalingLazyColumnItemInfo and ScalingLazyColumnLayoutInfo interfaces to ScalingLazyColumnState class to enable developers to know the actual positions and sizes of items in the ScalingLazyColumn after scaling has been applied. We have also fixed a bug with the way that scaling was calculated when 'top' content padding is applied to the ScalingLazyColumn. (I27c07)
- Added
@ExperimentalWearMaterialApitoSwipeDismissTargetenum, part of theSwipeToDismissBoxAPI. (I48b5e)
Bug Fixes
- Added test material for SwipeToDismissBox (I9febc)
Version 1.0.0-alpha03
August 4, 2021
androidx.wear.compose:compose-foundation:1.0.0-alpha03 and androidx.wear.compose:compose-material:1.0.0-alpha03 are released. Version 1.0.0-alpha03 contains these commits.
API Changes
- Added CurvedText component, that allows developers to easily write text following the curvature a circle (usually at the edge of a circular screen) (Id1267)
- We have renamed
CardDefaults.imageBackgroundPainter()toCardDefaults.imageWithScrimBackgroundPainter()to make it clear that the background image with have a scrim drawn over it. (I53206) - Adding ScalingLazyColumn component that provides a list component for Wear Material that gives a fisheye view with the list contents scaling down in size and becoming transparent as they scale towards the edge of the component. (I7070c)
Bug Fixes
- We changed the default color of the appName content in AppCard in response to a UX Spec update. The default color for the appName is now
MaterialTheme.colors.onSurfaceVariant. Additionally added a missing parameter doc description for the title slot. (Ic4ad1)
Version 1.0.0-alpha02
July 21, 2021
androidx.wear.compose:compose-foundation:1.0.0-alpha02 and androidx.wear.compose:compose-material:1.0.0-alpha02 are released. Version 1.0.0-alpha02 contains these commits.
New Features
- Added a new class CurvedRow to laid out composables in an arc (I29941)
- Added a new type of card for use in applications (TitleCard), also add support for having images as the background to Cards to emphasize their contents (I53b0f)
API Changes
- Add support for radial alignment to CurvedRow (similar to the vertical alignment in a row) (Id9de5)
- Add a new class CurvedRow to laid out composables in an arc (I29941)
- Added a new type of card for use in applications (TitleCard), also add support for having images as the background to Cards to emphasize their contents (I53b0f)
- Added toggle icons (checkbox, switch and radio buttons) to ToggleChipDefaults to make it easier for developers to configure ToggleChip and SplitToggleChips (I7b639)
- The start and end content padding for Chips has been updated so that it is consistently 14.dp regardless of whether the Chip has an icon present or not (was previously 12.dp if icon present and 14.dp if not) (I34c86)
Bug Fixes
- Add tests for CurvedRow (I93cdb)
- Tying Wear Compose dependencies to Compose 1.0.0-rc01. (Ie6bc9)
- Changed the handing of background image painting in Cards and Chips so that the image is Cropped rather than being stretched in order to maintain image proportions. (I29b41)
- Added more demos and integration tests for Button and ToggleButton. (5e27ed2)
- Added more Chip tests to cover the content colors for imageBackgroundChips (Ia9183)
Version 1.0.0-alpha01
July 1, 2021
androidx.wear.compose:compose-foundation:1.0.0-alpha01 and androidx.wear.compose:compose-material:1.0.0-alpha01 are released. Version 1.0.0-alpha01 contains these commits.
New Features
Wear Compose is a Kotlin, Compose-based library that supports Wear Material design, an extension of Material Design for WearOS wearables. This first alpha release contains early, functional implementations of the following:
- Material theme - configures the colors, typography and shapes consistently across the components used from this library.
- Chip, CompactChip - chips are stadium shaped and variations are available to take icon, label and secondary label content.
- - ToggleChip, SplitToggleChip - a specialized type of chip that includes a slot for a bi-state toggle icon such as a radio button or checkbox. In addition, the SplitToggleChip has two tappable areas, one clickable and one toggleable.
- Button, CompactButton - buttons are circular in shape, with a single content slot for an icon or minimal text (maximum 3 characters).
- ToggleButton - a button that turns an action on or off, with a single slot for icon or minimal text (maximum 3 characters).
- Card, AppCard - rectangular shaped with rounded corners, offering slots for content such as app icon, time, title and body.
Future releases will extend the Widget set adding support for Wear Material Design pickers, sliders, lists, page indicators, dialogs, scroll rsb indicators, toasts and more.
Additionally support will be provided for other Wearable Specific features such as curved layouts and text, as well as scaffolding to make it easy for developers to build Wearable apps/overlays.
Wear Compose Material is designed with the same principles as Compose Material, although being targeted at wearables. The Wear Compose Material library should be used in place of the Compose Material library when building for a Wearable device.
The two “Material” libraries should be considered mutually exclusive and should not be mixed in the same app. If developers find themselves including the Compose Material library in their dependencies it would suggest that either a) there are components missing from the Wear Compose Material library, please let us know what you need, or b) are using a component that we do not recommend for use on a Wearable Device.
Wear Compose Material 3 Version 1.0
Version 1.0.0-alpha37
April 23, 2025
androidx.wear.compose:compose-material3:1.0.0-alpha37 is released. Version 1.0.0-alpha37 contains these commits.
API Changes
- Removed
scrollTransformfrom the public API surface. Use the combination oftransformedHeightandgraphicsLayermodifiers if you need to get the same functionality. (Ie181d) - Replaced
ImageButtonandImageCardcomposables withButtonandCard/TitleCardoverloads respectively. RenamedimageButtonColorstobuttonWithContainerPainterColorsandimageCardColorstocardWithContainerPainterColors. Added publicButtonDefaults.scrimBrushandCardDefaults.scrimBrush. Renamed buttonimageBackgroundGradientStartColorandimageBackgroundGradientEndColortoscrimGradientStartColorandscrimGradientEndColor. RenamedCardDefaults.ImageContentPaddingtoCardDefaults.CardWithContainerPainterContentPadding(I7b8b6) PickerandPickerGroupnow take thecontentDescriptionas a lambda to avoid unnecessary recompositions. (I002dd)
Bug Fixes
- Fixed an issue where indeterminate
CircularProgressIndicatorwould wobble during animation if width is not equal to height. (I76bfe) - Fixed an issue with edge button layout on invalid size. Now prevents updating the layout of the edge button when the height is NaN. (I32b93)
- Increased the max sweep angle in
OpenOnPhoneDialogso that the default ‘Check your phone’ text is not clipped with the largest font size. (I90af9)
Version 1.0.0-alpha36
April 9, 2025
androidx.wear.compose:compose-material3:1.0.0-alpha36 is released. Version 1.0.0-alpha36 contains these commits.
API Changes
- Replaced
ButtonDefaults.imageBackgroundButtonColorswithImageButton,ButtonDefaults.imageButtonColors,ButtonDefaults.containerPainterandButtonDefaults.disabledContainerPainter. And similar changes for Card. The painters are removed fromButtonColorsandCardColors. (I8c6a1) - Updated placeholders to simplify the API. We now provide two Modifiers,
Modifier.placeholderShimmerto apply a shimmer effect at the component level, andModifier.placeholderto apply a mask on top of unloaded content (Iaee7a)
Bug Fixes
- Integrated overscroll into the
ScrollIndicator. (Icfb7f) - Address blank backgrounds and missing dialogs when launching material3 dialogs. (Ice597)
- Fixed issues in
FadingExpandingLabelwhen text spans multiple lines. (I04eb7) - Updated padding between primary and secondary labels on buttons. (I99b7b)
ArcLargehas been reduced from20spto18sp, and letter spacings onArcLargeandArcSmallhave been updated.ConfirmationDialog/OpenOnPhoneDialognow use the defaultArcLargeinstead of overriding it to18sp. (Id39a8)
Dependency Updates
- This library now targets Kotlin 2.0 language level and requires KGP 2.0.0 or newer. (Idb6b5)
Version 1.0.0-alpha35
March 26, 2025
androidx.wear.compose:compose-material3:1.0.0-alpha35 is released. Version 1.0.0-alpha35 contains these commits.
API Changes
AlertDialogtop padding is now reduced by default when an icon is provided - this makes best use of the screen size available. (Ief06c)PagerScaffoldDefaults.FadeOutAnimationhas been renamed toPagerScaffoldDefaults.FadeOutAnimationSpec. The page parameter onAnimatedPagehas been renamed topageIndex. (I701f2)- Updated naming for
TransformingLazyColumn’sSurfaceTransformation-applyTransformationsplit intoapplyContainerTransformationandapplyContentTransformation, and renamedcreateBackgroundPaintertocreateContainerPainter. Further naming updates toTransformationSpecandResponsiveTransformationSpec. (I1c534) - The
AppScaffold backgroundColorhas been renamed tocontainerColor. (I4e63f)
Bug Fixes
- Fixed an issue in
FadingExpandingLabelwhere the text did not always expand correctly. (I0e773) ArcLargehas been reduced from 20sp to 18sp, and letter spacings onArcLargeandArcSmallhave been updated.ConfirmationDialog/OpenOnPhoneDialognow use the defaultArcLargeinstead of overriding it to 18sp. (Id39a8)- Updated the heading animation for
DatePickerandTimePickerbased, so that the fade-out and fade-in animation act as one Spring animation. (I68963) - Optimized
PagerScaffoldby avoiding the reading ofcurrentPageOffsetFractionin theAnimatedPagecomposable. (I433ef) - All type scales have been updated to have proportional numerals by default, because that is seen as the most frequent use case and defaulting to tabular resulted in too much spacing between certain number pairings.
TimePickerandDatePickercontinue to applyFontFeatureSetting=tnumfor tabular numerals. (I88929) - Corrected the initial RSB input focus for
TimePickerandDatePicker. (I1c773) - Updated the default text on
OpenOnPhoneDialogto "Check your phone". (I00a3f) - Updated weights for
ArcLargeandArcMediumfrom 600 to 599 to workaround an issue where weight 600 is treated as bold (I2a51d) - Update
SwipeToRevealpaddings between content and action buttons, and also the padding between the icon and text of the action buttons. (Ic46cb)
Version 1.0.0-alpha34
March 12, 2025
androidx.wear.compose:compose-material3:1.0.0-alpha34 is released. Version 1.0.0-alpha34 contains these commits.
API Changes
PagerScaffoldno longer emits aPagercomponent - instead this must be provided via thecontentComposable.AnimatedPageandsnapWithSpringFlingBehaviourare now public and can be used along with Wear FoundationPagerto achieve previous M3PagerScaffoldbehaviour. (See updated samples). (Ia4724)- Updated
PagerState, removing the Compose FoundationPagerStateas the base class and addingcurrentPage,currentPageOffsetFractionandpageCountproperties. Updated theGestureInclusioninterface, renaming the method toignoreGestureStart. (I4ae07) LevelIndicatorsweep angle parameters are now annotated withFloatRange(0, 360)(I7e636)- We have added
CurvedModifier.clearAndSetSemanticsto provide a means by which curved semantics can be turned off.CurvedTextcontinues to default the content description to the text, buttimeTextCurvedTextandtimeTextSeparatordo not now announce their contents. (I4b568) - Added a background and default content color parameters to
AppScaffold. (I56652) HorizontalPager’s default handling of swipe gestures has been renamed toPagerDefaults.gestureInclusion. The default behavior is now to only ignore swipe gestures that start on the left edge of the first page, and only then when Talkback is turned off. In other cases, the default behavior is that swipe gestures will not be ignored by the pager, so they will not be available to swipe-to-dismiss handlers. (Iee486)- Added a
SurfaceTransformationparameter to button, card and list header components, so that they can apply different background and content transformations when used in containers that change items appearance based on their position, such asTransformingLazyColumn. (Iabe3f) - We have updated 'public const val' properties in our Wear Compose Material3 API to 'public val', to avoid the values being inlined. (Ib0f32)
- Added support for an edge-swipe zone to
SwipeToReveal. FoundationSwipeToReveal’s default behavior is now to disallow swiping when the gesture starts from the edge. Material3SwipeToReveal’s default behavior is now to disallow swiping when the gesture starts from the edge, when theSwipeDirectionis set to single direction. (I32ef0) - Added
FadingExpandingLabelcomposable, which allows it to fade in text with animation line by line. (Ic60fa) TransformingLazyColumnnow uses emptycontentPaddingby default instead of putting first and last items into center. (I77ab7)- Removed
SwipeToReveal’srememberRevealStatefrom the Wear Compose Material3 library. (I8c0e0)
Bug Fixes
- Wear Compose libraries have been updated to the Kotlin 2.0 compiler. (I2de79)
- Support for non-round
ScrollIndicatorandPageIndicatorhas been removed from Material3. Square screen support is also no longer part of the Wear OS requirements, see the Getting Started guide for more information. (I9a852) - The
CurvedTextStyleused inConfirmationDialogDefaultsandOpenOnPhoneDialogDefaultshas been updated to useArcLargetypography with size18spand letter spacing1.8sp. (Ic9ced) Card,ListHeader,RadioButton,CheckboxButton,SwitchButtonno longer constrain the height of its contents by default. Where necessary, useModifier.height(IntrinsicSize.Min)to restore the previous behavior if needed. (I80bb8)- We have updated the default
TimeTextandScrollIndicatorcolors to include more gray tones, because usingOnBackground(white) directly carried too much visual weight when competing with other content on screen like titles. (I8b36f) - We have reduced the timeout for animating the
TimeTextandScrollIndicatorin scaffold components to 2 seconds. (I52021) - We have updated the motion of Dialog so that the scale of the background of the Dialog is synchronised with swiping to dismiss. (I925a9)
- Add demo of M3
SwipeToRevealusingedgeSwipeToDismissmodifier. (I02b07) - We have added a heading to
DatePickerandTimePickerunder TalkBack so that the user is informed to scroll to set date/time. (Id738d) AnimatedTextnow follows the reduce motion setting. (Ib6578)- The optimisation to use
AppScaffoldfor display Dialog content has been improved to allow multiple dialogs to be displayed on top of each other (I1209c)
Version 1.0.0-alpha33
February 26, 2025
androidx.wear.compose:compose-material3:1.0.0-alpha33 is released. Version 1.0.0-alpha33 contains these commits.
API Changes
- We have removed the label parameter from
SwipeToRevealScope'sprimaryActionandsecondaryAction. Custom action semantics should be added to the content of theSwipeToRevealcomponent directly, by the developer. (Ia67f3) - We have removed the 'Button' prefixes from sizes, text styles and color functions in
IconToggleButtonDefaultsandTextToggleButtonDefaults(I5471d) - We have removed the experimental
LocalMinimumInteractiveComponentEnforcement(I4ad8a) - We have replaced the
PickerGroupScopeDSL with a composable. As such, we removed thepickerGroupItemmethod fromPickerGroupScope, and instead added@Composable PickerGroupItemthat should be used to add a Picker toPickerGroup. We also updated the type ofPickerGroup'content' parameter to@Composable PickerGroupScope.() -> Unit. (Ic6aec) - We have added a
LevelIndicatoroverload for fractional values and added a Stepper prefix to those overloads that include a range parameter (which are suitable for use with the Stepper component). (If4234) - We have added
TransformingLazyColumn’sTransformationSpecto the API, which allows the definition of the exact transformations happening to the items as they are being scrolled through the TLC. (I21856) - We have updated
IconButtonShapes,IconToggleButtonShapes,TextButtonShapesandTextToggleButtonShapesto be consistent with the compose/material3 classes (I5a081) - We have added an
overscrollEffectparameter added toScalingLazyColumn,TransformingLazyColumnandScreenScaffold. (I0cee8) - We have renamed the
swipeDirectionparameter torevealDirectioninrememberRevealState. (I7472f) - Wear Pager now has its own
PagerScopeinstead of using ComposePagerScope. (I9195b) - We have removed the
LinearProgressIndicatorContentcomposable, please useLinearProgressIndicatordirectly so that changes to values are animated by default. (I2c4ad) - We have removed the
CircularProgressIndicatorStaticcomposable and added a publicDrawScopefunctiondrawCircularProgressIndicatorwith the same functionality. Please useCircularProgressIndicatordirectly so that changes are animated by default, but build your own composable fromdrawCircularProgressIndicatorif custom animations are needed. (Ie762f) - We have reordered the parameters in
DrawScope.drawCircularProgressIndicatorto move up thetargetProgressparameter. (I8ab92) - The
OpenOnPhoneDialogapi was updated for better clarity and consistency with other Dialogs. Theshowparameter was renamed tovisibleandcurvedTextis now provided by the caller instead of having a default value. (Idec2d) - We have renamed
openOnPhoneCurvedTexttoopenOnPhoneDialogCurvedText(I65bdd) - We have added
ScrollIndicatorColorsfor providing custom colors toScrollIndicator. (I9eb8c) - Allow the configuration of the color used to draw a background behind
TimeText. (I9f5d9) - Updated
ArcLarge,ArcMediumandArcSmalltypographies to beCurvedTextStyle(Iffc41) - We have removed
ScreenScaffoldDefaults.contentPaddingWithEdgeButton. (Ia923e) - We have added
errorDimto theColorScheme, for high priority errors or emergency actions such as safety alerts, failed dialog overlays or stop buttons. (I70998)
Bug Fixes
- We have pinned
wear.compose.material3to version 1.15.0 ofandroidx.core.core(I132e9) - We have improved Dialog's performance by using the
AppScaffoldto layer dialogs over other screen content (I1b9a4) - Reduced
EdgeButton's internal vertical padding. (I1a5bb) - We have added Button semantics to Slider buttons. (I80cc6)
Version 1.0.0-alpha32
January 29, 2025
androidx.wear.compose:compose-material3:1.0.0-alpha32 is released. Version 1.0.0-alpha32 contains these commits.
API Changes
- On
CurvedTextStyle, we have split letter spacing into clockwise letter spacing and counter clockwise letter spacing. This is required because clockwise letters fan out from the baseline whereas counter-clockwise letters fan in (so larger letter spacing is needed) (I4b848) - We have updated
IconButtonShapes,IconToggleButtonShapes,TextButtonShapesandTextToggleButtonShapesto improve consistency across Material3 libraries. This change also introduces shape caching to reduce the number of allocations. (I049fc) - We have removed the
pressedShapeCornerSizeFractionparameter from thevariantAnimatedShapemethod inIconToggleButtonandTextToggleButton(I58a65) - We are introducing improvements to curved text rendering (including
TimeText) that are incompatible with non-round screens. Non-round screen support is also no longer part of the Wear OS requirements, see the Getting Started guide for more information. (I1cc1c) - We have updated
ButtonGroup’sButtonGroupScope, replacing the DSL-basedButtonGroupItemwithModifier.weight,Modifier.minWidthandModifier.enlargeOnPress. (I16c3c) - In the
ButtonGroupAPI, we have updated the new modifier-basedButtonGroupScope:enlargeOnPressis now calledanimateWidth, and it takes anInteractionSource, rather thanMutableInteractionSourcebecause it is not necessary to mutate it. We have also added public constantButtonGroupDefaults.DefaultMinWidth, the default minimum width of buttons in aButtonGroup. (Ie27ec) - We have updated
ListHeaderDefaults.contentColorto start with a lowercase letter as it is a composable property (I125a5) - We have added a content description parameter to
SliderDefaults.DecreaseIconandSliderDefaults.IncreaseIcon, with suitable default values (I2e1a7) - We have renamed the
spacingparameter inPickerandPickerGrouptoverticalSpacing(Ib75cc) - We have removed
ConfirmationDialogDefaults.successTextandfailureTextbecause it is expected that callers ofConfirmationDialogwill provide strings with more context. Also renamedconfirmationCurvedTexttoconfirmationDialogCurvedText. Finally, renamed the Dialogshowparameter to visible for consistency with other recent updates to dialogs. (I10074) IconButtonrenameddisabledImageOpacitytoDisabledImageOpacity. (I5f94a)
Bug Fixes
- We have fixed a bug in
EdgeButtonanimation so that the correct size is used in each frame (Id3b58) - Fixed an issue with
animateContentSizenot working withButton. (Ib18a0) - We have changed the Title Large type scale to have font size
18dp(Ic9d52) - We have updated
AlertDialogspacing and icon size (Iac28c) - We have fixed inconsistencies in large screen breakpoints (screens at and above 225dp are large screen) (I36474)
- Fixed a minor bug in button positioning (I952c2)
Version 1.0.0-alpha31
January 15, 2025
androidx.wear.compose:compose-material3:1.0.0-alpha31 is released. Version 1.0.0-alpha31 contains these commits.
API Changes
- We have updated all Wear Compose libraries to ‘explicit API’ mode. (Iebf9f)
- We have updated the
ScreenScaffoldandEdgeButtonAPIs, so that it is easier to specify content paddings on screens that include anEdgeButton. In the new API theEdgeButton'ssizeis only passed to theEdgeButton, and theScreenScaffoldtakes anedgeButtonSpacingparameter for the spacing betweenEdgeButtonand list content. (I424fd) - In
DatePicker, we have renamed parametersminDatetomaxDate, andminValidDatetomaxValidDate. InDatePickerColors, we have renamed parameterselectedPickerContentColortoactivePickerContentColor, andunselectedPickerContentColortoinactivePickerContentColor(Iba17b) - We have updated the
ArcProgressIndicatordefaults tostrokeWidth=6dpand recommendeddiameter = 81.24%of screen height (I6f248) - We have updated the Confirmation API to reflect its usage as a dialog. The composable is now called
ConfirmationDialog, with associated updates to the naming of colors and defaults classes. We have also renamed theshowparameter tovisiblefor compatibility with other Compose animation APIs. In addition, we have madeConfirmationDialogContent,SuccessConfirmationDialogContent,FailureConfirmationDialogContentavailable for situations where developers need to customize the intro/outro dialog animations. (Iaeb33) - We have updated
CircularProgressIndicatorContenttoCircularProgressIndicatorStatic(the non-animated variation ofCircularProgressIndicator) so that it can now be used to buildCircularProgressIndicatorwith custom animations. (I1346f) - We have fixed the parameter ordering on the
ArcProgressIndicator, putting the modifier parameter first (I4656a) - Improved the
SwipeToRevealAPI to receive a text slot parameter for the labels of the actions (except secondary action) and to remove label parameters from undo action (I5b3db)
Bug Fixes
- We have fixed a bug where
LongPresshaptics were triggered more than once inButton,Card,IconButton,TextButton(Ia8b0f) - Changes to the UX of
AlertDialog- on large screens the confirm and dismiss buttons are now smaller. There is also increased spacing below the confirm and dismiss buttons. (I4f066) - We have changed the animation specs of the action button label of the
SwipeToRevealcomponent. (Ib87fb) - Changed
SwipeToRevealto expand the container at the same time that the text is displayed. (I44cf8) - Improved
SwipeToRevealto perform haptic feedback when the swipe passes the threshold where the primary action is committed. (I23efe) - We have updated
SwipeToRevealto display ellipsis on text overflow by default, for primary and undo actions. (I71f5a) - We have fixed an issue causing jitter on
ButtonGroupanimations. (I63f8f) - We have added text semantics to
AnimatedText(I6063c) - Dialog now resets background scaling when the dialog is removed from the composition (without this fix, the launching screen may have been left in a scaled down state) (Id24ac)
- We have added a shape morph animation to the buttons in the Stepper component (Id6ed3)
Version 1.0.0-alpha30
December 11, 2024
androidx.wear.compose:compose-material3:1.0.0-alpha30 is released. Version 1.0.0-alpha30 contains these commits.
API Changes
- The
scrollTransformmodifier forTransformingLazyColumnwas refactored which triggered an API change. (I0c6dc) - We have updated
IconToggleButtonShapesandTextToggleButtonShapesto have two different shape parametersuncheckedPressedandcheckedPressed(I85dbd) - Invalid month/day options are now visible in the
DatePicker, with a newinvalidPickerContentColor, when usingminDateormaxDate. (If4541) - We have updated the
StepperAPI to provideincreaseIconanddecreaseIconslots - the content for these can be built as usual from the Icon composable. (Id35da) - We have updated
dynamicColorSchemeby removing the optionaldefaultColorSchemeparameter and now returning nullableColorScheme. This means that the caller must explicitly handle the fallback case when a dynamic color scheme is not provided. (I6d62e) - We have updated the icon sizes in
ButtonDefaultsfor use withCompactButton. ACompactButtoncontaining only an icon should useButtonDefaults.SmallIconSize = 24.dp, whereas aCompactButtoncontaining both icon and text should useButtonDefaults.ExtraSmallIconSize = 20.dp. It is recommended thatCompactButtonwrap its content (rather than filling the max width) and samples have been updated to show that. (I0582c) - We have added
EdgeButtonDefaultswith recommended icon sizes for the 4 differentEdgeButtonSizes. Also, updated theEdgeButtonlayout so that it has slightly larger bottom padding than top padding, which improves appearance for both Icon and Text content. (Id772a) - We have added motion to
LinearProgressIndicatorand exposedLinearProgressIndicatorContentwhich provides the visual content without animations. (Idee99) - We have added a new
CircularProgressIndicatorContentcomposable to display the visual content ofCircularProgressIndicatorwithout animations. (Ie33d4) TransformingLazyColumnnewly provides the composition localLocalTransformingLazyColumnItemScopewhichCards,Buttons andListHeaders now use to automatically morph when placed inside aTransformingLazyColumn. Callers can disable automatic morphing using the newTransformExclusionwrapper. (I1652f)- We have updated the type of
ButtonDefaults.shapetoRoundedCornerShape(Iccdf2)
Bug Fixes
- We have fixed a bug to respect existing alpha on background for
TimeText(I1eb60) - We have set
TextMotiontoAnimatedby default in our typography, to avoid text jitter due to snapping letter glyphs to pixel boundaries during scaling operations. (I626fa) - We have updated the appearance of the
ScrollIndicatorby increasing width and gap size, to improve visibility. (Ied7cb) - We have fixed a bug on
Modifier.scrollTransformwhen adding/removing/moving items. (I6830f) - We have fixed a round button animation issue for short taps (previously, the minimum animation duration was not always observed). (I757a7)
- We have updated the sweep angle for
LevelIndicatorto 20% (i.e. 72 degrees). (Idde5c) - We have fixed
ScrollIndicatorpositioning whenScalingLazyColumnwas used withAutoCenteringParams. (I387dd) - We have updated the colors and typography for
ListHeaderandListSubHeader. Also the colors for the toggle controls onCheckboxButtonandSwitchButton. (I39817) - We have fixed
ScrollIndicatorpositioning inLazyColumnandScalingLazyColumnwithContentPadding. (I2bc51) - We have fixed a bug seen in
OpenOnPhoneDialogprogress animation by using the newCircularProgressIndicatorContent. (I3e443) - We have updated the
HorizontalPagerScaffoldandVerticalPagerScaffoldto disable animations when reduce motion is enabled (Iaaf68) - We have implemented a separate animation for circular progress indicators when progress reaches over 100%. (I47135)
- We have fixed a bug where
EdgeButtoncould be drawn with an incorrect shape in Pager components (I91db9)
Version 1.0.0-alpha29
November 13, 2024
androidx.wear.compose:compose-material3:1.0.0-alpha29 is released. Version 1.0.0-alpha29 contains these commits.
API Changes
- We have updated
TimeTextto provide default content that shows the time. (Id23b3) - We have simplified the
ScrollInfoProviderforPagerStateby removing theorientationparameter, which is no longer needed. The new behavior is forTimeTextto remain in place for both horizontal and vertical paging. (I71767) LocalHapticFeedbacknow provides a defaultHapticFeedbackimplementation when the Vibrator API indicates that haptics are supported. The following have been added to theHapticFeedbackType-Confirm,ContextClick,GestureEnd,GestureThresholdActivate,Reject,SegmentFrequentTick,SegmentTick,ToggleOn,ToggleOff,VirtualKey. Wear Compose long-clickable components such asButton,IconButton,TextButton, andCardnow perform theLONG_PRESShaptic when a long-click handler has been supplied. (I5083d)
Bug Fixes
- We have updated the motion for Confirmations. (I04bff)
- We have updated the minimum API dependency to 1.7.4 for Compose libraries. (I88b46)
- New motion was added for the
OpenOnPhonedialog. (I1e10a) - We have fixed a bug in the
LevelIndicatorso that it is now correctly displayed with the level is zero. (Ie95a4) - We have updated the
HorizontalPageIndicatorandVerticalPageIndicatoranimations. (I5c8f3) - We have added a shrink-to-dot animation to the indeterminate
ArcProgressIndicator. (I9fd51)
Version 1.0.0-alpha28
October 30, 2024
androidx.wear.compose:compose-material3:1.0.0-alpha28 is released. Version 1.0.0-alpha28 contains these commits.
API Changes
- We have added an arc variation on the indeterminate circular progress indicator (I2efc1)
- We have made public the
AlertDialogContentandDialogcomposables that make up theAlertDialogAPI, so that it is possible to add customization if necessary (such as customizingAlertDialoganimation whilst keeping the recommended content layout). In addition, we have addedModifierandColorparameters to theEdgeButton,ConfirmButtonandDismissButtonmembers ofAlertDialogDefaults. (I4eb71) - We have updated the
PlaceholderAPI as follows: renamedPlaceholderState.startPlaceholderAnimationtoPlaceholderState.animatePlaceholder,PlaceholderState.isShowContenttoPlaceholderState.isHidden, andPlaceholderDefaults.shapetoPlaceholderDefaults.Shape; renamed thepainterparameter inpainterWithPlaceholderOverlayBackgroundBrushtooriginalPainter; changed visibility ofPlaceholderState.placeholderProgressionfrom public to internal and renamed it toplaceholderShimmerProgression; added placeholder animation duration constants toPlaceholderDefaults. (Ie5a59) - We have updated the
EdgeButtonAPI as follows: renamed the parameter onScreenScaffoldfrombottomButtontoedgeButton; madeEdgeButtonSizea value class. (Ieef15) - We have changed the visibility of
copy()to public in wear material3 Colors classes (I0287f)
Bug Fixes
- Added minimum animation duration for
IconToggleButtonandTextToggleButtonon click (Ieb333) - Added minimum duration on
IconButtonandTextButtonshape animation (Iebcee) - Corrected the repeat option state of
DatePicker. (I3587c) - Added motion for Alert and Confirmation dialogs. (I173b1)
Version 1.0.0-alpha27
October 16, 2024
androidx.wear.compose:compose-material3:1.0.0-alpha27 is released. Version 1.0.0-alpha27 contains these commits.
API Changes
- We have updated the
ScreenScaffoldandScrollIndicatorfollowing the renaming of Wear Compose FoundationLazyColumntoTransformingLazyColumn. (I0608b) EdgeButton'spreferredHeightparameter has been renamed tobuttonSizeand its value can only be chosen from 4 constants in the newly introducedEdgeButtonSizevalue class. (Icdd70)- We have changed the naming of
ListSubheadertoListSubHeaderand added publicly accessible default values forListHeaderandListSubHeader. (I96730) - We have added new
HorizontalPagerScaffoldandVerticalPagerScaffoldcomponents for Wear which provide new animations and coordination between time text and page indicator components. (Iff7d0) - We have added rotary support to
HorizontalPagerScaffoldandVerticalPagerScaffold, enabling users to navigate pagers using rotary input devices. (I9770d) - We have made
MotionSchemeAPI changes to simplify the usage and improve consistency. Removed inlined remember functions and moved the built-in Motion Schemes to a dedicated MotionScheme companion object. Renamed thestandardMotionSchemeand theexpressiveMotionSchemeto standard and expressive. (I5fd45) - We have added support for a dynamic color scheme based on system colors. (I073e9)
- We have updated the Stepper to the latest UX specs. (I622bb)
Bug Fixes
- We have updated typography and paddings for Card components. (I3ae48)
- We have changed the padding in
AlertDialogbetween Confirm/Dismiss buttons and the rest of the content from 8dp to 12dp according to UX specs (Ie55f0) - We have updated the color opacity for the Slider component. (Idb383)
Version 1.0.0-alpha26
October 2, 2024
androidx.wear.compose:compose-material3:1.0.0-alpha26 is released. Version 1.0.0-alpha26 contains these commits.
API Changes
- We have updated the API and appearance of
HorizontalPageIndicatorand addedVerticalPageIndicatorfor use withVerticalPager(Ic9309) AlertDialognow supports the ability to omit the default bottom button from the button stack variation, for custom layouts in which EdgeButton is not required. (I34fa9)- We have added a
SwipeToRevealcomponent for Wear Material 3 (Ic38b2) - We have added support for bi-directional swiping in
SwipeToReveal, for rare cases where the current screen does not support swipe to dismiss. The default is still to swipe-to-reveal only on right-to-left swipes and it is strongly advised to respect the default behavior to avoid conflict with swipe to dismiss. (Ifac04) - We have renamed
EdgeButton'sbuttonHeightparameter topreferredHeight. (I4fab3) - The Kotlin version has been updated to 1.9 (I1a14c)
- We have renamed
OpenOnPhoneDialogDefaults.IcontoOpenOnPhoneDialogDefaults.OpenOnPhoneIconto avoid clashing withIcon(I0f391) - We have added support for
ScrollIndicatorinLazyColumn. (Ia546a) - We have updated default values for
TextToggleButtonandIconToggleButton. (I7aaa9) - We have simplified the
PickerandPickerGroupAPI. (Id0653) - We have added
CardDefaults.ShapeandCardDefaults.Height, which (being tokens) were otherwise private to developers using the library. (I1594a, b/347649765) - We have renamed the progress parameter for the binary segmented circular progress indicator to
segmentValue. (Ib72d9) - We have updated the colors and layout for Slider. (Ic3eec)
Bug Fixes
- We have updated the
openOnPhoneicon animation (I66f85) - We are now using Google Symbols icons in
Slider,TimePickerandDatePicker. (I46c7c) - We have updated the paddings in
ConfirmationandOpenOnPhoneDialog. (Iaa82e)
Version 1.0.0-alpha25
September 18, 2024
androidx.wear.compose:compose-material3:1.0.0-alpha25 is released. Version 1.0.0-alpha25 contains these commits.
API Changes
- We have added an Indeterminate circular progress indicator. (I427a7)
- We have added support for progress overflow (>100% progress) for both the
CircularProgressIndicatorand theSegmentedCircularProgressIndicator. When the progress exceeds 1.0, this will be indicated by the newoverflowTrackcolor. (Iaaa3d) - The round
IconToggleButtonandTextToggleButtonnow support a new shape animation variation, in which different shapes represent checked, unchecked and pressed states. The earlier animated shape variation for the just pressed state continues to be supported. (I29f03) - We have removed support for using
EdgeButtonwithColumn, due to the need to specify theEdgeButtonheight explicitly inScreenScaffold. (Ie353d) - We have added support for the Wear Compose
LazyColumnwith ourScreenScaffold(and added an implementation ofScrollInfoProviderforLazyColumnState). (Ib8d29) - We have combined
LocalTextMaxLines,LocalTextAlign,LocalTextOverflowinto a singleLocalTextConfigurationcomposition local to provide a more scalable solution going forwards. (I5edbc) - We have added arc-large as an additional typescale, reserved for short header text strings at the very top or bottom of the screen, like in Confirmation overlays. (I60e3e)
- We have added defaults to Button for recommended large and extra large icon sizes and content padding. (I84675)
Bug Fixes
- We have updated the colors for
IconButtonandTextButton. (I48324) - We have changed the base Button overloads to be vertically center-aligned for consistency with other overloads. To restore the previous behavior, use
Modifier.alignfrom theRowScope. (I66e57)
Version 1.0.0-alpha24
September 4, 2024
androidx.wear.compose:compose-material3:1.0.0-alpha24 is released. Version 1.0.0-alpha24 contains these commits.
API Changes
- We have added a Motion scheme into the Material3 theme. This will be used by components across the library to apply animation specifications such as springs for expressive motion. (I54ff3)
- We have added
AppScaffoldandScreenScaffoldcomponents to the Material3 library, which include functionality to coordinate layering and transitions ofTimeTextandScrollIndicator.AppScaffoldprovides a top level of scaffold components that sit on top of all screens. As such, addingTimeTextto theAppScaffoldallows it to remain in place while swiping between screens. Screens can themselves override or hide the time text.ScreenScaffoldprovides a slot for theScrollIndicatorand automatically animates the scroll indicator when scrolling, including timeout to hide the scroll indicator after inactivity. (I047d6) - We have added
ScrollIndicatorfeaturing the new Material3 design. It has a fixed thumb size based on initial list contents, in order to avoid size variations when lazy content is loaded into the list. (Ic228d) - We have changed the
ScrollAwayAPI such thatScreenStageis a value class instead of an enum class, to allow for additional stages to be added as needed going forwards. (I48c93) - We have added
EdgeButton, a distinctive Wear-specific button with a shape that follows the curvature of the bottom of the screen (I16369) - We have added a new slot to the
ScreenScaffoldfor a bottom button (such asEdgeButton), that will be shown and resized depending on the scrolling content (I032eb) - We have added
Modifier.scrollTransformandModifier.targetMorphingHeightto add Material3 motion effects to items inLazyColumn. (Ie229a) - We have added
SegmentedCircularProgressIndicatoras a variation onCircularProgressIndicator. The segmented variation either shows a single progress value across all segments or shows each segment as being on/off. (I6e059) - We have added
LinearProgressIndicatoras an alternative to the existingCircularProgressIndicator. (I89182) - We have added
AlertDialog, providing layouts for presenting important prompts to the user. Variations are included for either a pair of confirm/dismiss buttons or a single bottom button (typically an EdgeButton) below a stack of options. Both variations have slots for icon, title and additional text to provide further details. (Ieb873) - We have added
OpenOnPhoneDialog, which should be used to indicate an action that will continue on the user's phone.OpenOnPhoneDialogis dismissed after a specified timeout. (I978fd) - We have added
Confirmation, a dialog component that has slots for an icon and either curved or linear text. Specific variations are provided for success/failure messages. Confirmations are automatically dismissed after a timeout. (Ib43e8) - We have added a background to
TimeTextto mitigate issues where the underlying content and theTimeTextoverlapped, and obscured the time. (Ia11fd) - We have added
LevelIndicator, which shows the value of a setting such as volume, and can be used with the existingSteppercomponent to construct a volume screen.LevelIndicatoris similar toScrollIndicator, but is displayed on the opposite side of the screen and has a wider stroke width and different indicator color by default. (I8a4ac) - We have added
TimePicker, with layouts for 24 hour time (with or without seconds), or 12 hour time with am/pm selection. (Ia5124) - We have added
DatePicker, with configuration for column ordering (i.e. day-month-year, month-day-year or year-month-day) and optional min/max dates. (Ibf13b) - We have added a weight parameter to the
TimeText'stextfunction. In cases where TimeText is made up of more than one text element, this allows control over how the space is distributed. (I36700) - We have added
RadioButtonandSplitRadioButton- these components simplify the previous API by combining both the (Split)SelectableButtonand the child radio control (If7ae8) - We have added
CheckboxButtonandSplitCheckboxButton- these components simplify the previous API by combining both the (Split)ToggleButtonand the child Checkbox control (Ia8f70) - We have added
SwitchButtonandSplitSwitchButton- these components simplify the previous API by combining both the(Split)ToggleButtonand the child Switch control (I0d349) - We have updated
AnimatedTextdocumentation to explain overshooting behavior. (Iff30a) - We have added
ButtonGroupto combine 2 or 3 buttons such that button presses produce a coordinated animation. (Ie27db) - We have added optional shape animation for
IconButtonandTextButtonwhen pressed. (Iffca5) - We have added an additional color variation,
FilledVariant, toButton,IconButton,TextButton,CompactButtonandEdgeButton(I65fc3) - We have added the
forcedSizeparameter toImageWithScrimPainter, such that Button image backgrounds now maintain their component size by default. Setting theforcedSize = nulladopts thePainter.instrinsicSizeinstead. (Ic57af) - We have added long-click to Buttons (Ib613d)
- Long click support has also been added to
IconButtonandTextButton. (I38891) - Long click support has been added to Cards. (I305d5)
- We have added
LocalTextMaxLines,LocalTextAlign,LocalTextOverflowasCompositionLocalsand used them as parameter defaults onText. The composition locals can now be used by components such asCheckboxButton,SwitchButton,RadioButtonto implement UX guidance, but the parameters can be overridden by developers if necessary. (Iab841) - We have added
Placeholderto help in masking the content of components like buttons & cards until the data is loaded. (I1a532) - We have added
IconToggleButtonColorsandTextToggleButtonColorsto replace the now removedToggleButtonColors. (Ie0bf1)
Bug Fixes
- We have updated
Button,FilledTonalButton,OutlinedButton,ChildButton,CompactButtonto use the newCompositionLocalsLocalTextMaxLines,LocalTextAlign,LocalTextOverflowto implement UX guidance - these parameters can be overridden by developers on Text directly if necessary (Ie51f7) - We have changed the default stroke width of the
LevelIndicatorto6dpto differentiate it from theScrollIndicatorwhich has a stroke width of4dp. (If6f63) - We have fixed an issue in
TimeTextso that larger sweep angles are supported. (Ie489f) - Fixed an issue during
EdgeButtonrecomposition. (I4cdca) - Corrected layouts of split toggle buttons when customized content padding is provided. (Ia33d3)
- Rounded up small progress values to at least the line width of the progress indicator. (I3bd84)
Version 1.0.0-alpha23
May 14, 2024
androidx.wear.compose:compose-material3:1.0.0-alpha23 is released. Version 1.0.0-alpha23 contains these commits.
API Changes
- We have updated
ToggleButtonandRadioButtonAPIs such that disabled colors can be configured. (If13a7) - We have added a new
CircularProgressIndicatorfor Material3. (Ib3bd7)
Bug Fixes
- We have fixed a bug where selectable buttons announced double tap to toggle when already selected. (I7ed88)
Version 1.0.0-alpha22
May 1, 2024
androidx.wear.compose:compose-material3:1.0.0-alpha22 is released. Version 1.0.0-alpha22 contains these commits.
API Changes
- We have updated the Material3
ColorScheme. (I7b2b8) - We have updated the Material3 Switch - as well as some color changes, the tick now matches that used for the Checkbox. (Icac7b)
Bug Fixes
- Update all integration demos to use new
rotaryScrollablemodifier. (I25090)
Version 1.0.0-alpha21
April 17, 2024
androidx.wear.compose:compose-material3:1.0.0-alpha21 is released. Version 1.0.0-alpha21 contains these commits.
- This release was triggered due to a technical issue in the previous release that resulted in missing source jars. There are no new commits in this release.
Version 1.0.0-alpha20
April 3, 2024
androidx.wear.compose:compose-material3:1.0.0-alpha20 is released. Version 1.0.0-alpha20 contains these commits.
Bug Fixes
- We have adjusted the Ripple pressed and focused state alphas for contrast. (I59f0a)
- We have added spacing between primary and secondary labels in
Button,ToggleButtonandRadioButton, following the latest changes to typography styles and line heights. (I2c0ba)
Version 1.0.0-alpha19
March 6, 2024
androidx.wear.compose:compose-material3:1.0.0-alpha19 is released. Version 1.0.0-alpha19 contains these commits.
API Changes
- We have added
TimeTextto the Wear Compose Material3 library. This component shows the current time (and additional status) at the top of the screen. The new, concise Material3 API avoids duplication between linear and curved content. (I4d7c3) - We have updated parameter names from
onSelectedtoonSelectforRadioButton. (I1a971) - Tokenize
RadioButtonandSplitRadioButtonand also refactor the existing methods to reduce the amount ofCompositionLocallookup by adding cached instances of colors, and making methods ofRadioButtonColorsandSplitRadioButtonColorsinternal. (I02b33)
Version 1.0.0-alpha18
February 21, 2024
androidx.wear.compose:compose-material3:1.0.0-alpha18 is released. Version 1.0.0-alpha18 contains these commits.
API Changes
- We have refactored the defaults pattern for
CardColors,ToggleButtonColorsandSplitToggleButtonColorsby creating cached instances internally and reducing the usage ofCompositionLocal. (If3fec)
Version 1.0.0-alpha17
February 7, 2024
androidx.wear.compose:compose-material3:1.0.0-alpha17 is released. Version 1.0.0-alpha17 contains these commits.
API Changes
- We have updated the Button API to use
buttonColorsby default and removed the duplicatefilledButtonColors. (I4fe3b) - We have refactored default patterns for
ButtonColors,IconButtonColorsandTextButtonColorsby creating a cached instance internally and reducing the usage ofCompositionLocal. (I5f51c) - We have removed the overhead of
rememberUpdatedStatein Component specific color classes and marked accessor methods inside color classes as internal. (If6571)
Bug Fixes
- We have updated
Modifier.minimumInteractiveComponentSizeto useModifier.node. (Iba6b7)
Version 1.0.0-alpha16
January 24, 2024
androidx.wear.compose:compose-material3:1.0.0-alpha16 is released. Version 1.0.0-alpha16 contains these commits.
New Features
- We have added
CompactButton, which can use the same filled, filled tonal and outlined colors as Button.(I05df0)
API Changes
- We have added
RadioButton/SplitRadioButtonas containers for selection controls, such as the Radio control. This differs from the existingToggleButtonin thatRadioButtonis selectable (and operates within a selection group) whereasToggleButtonis toggleable (and is independent). (I61275) - We are removing
LocalContentAlphafrom the Wear Compose Material3 library for consistency with the Compose Material3 library. (I49a0a) - Wear material and wear material3 components exposing a
MutableInteractionSourcein their API have been updated to now expose a nullableMutableInteractionSourcethat defaults to null. There are no semantic changes here: passing null means that you do not wish to hoist theMutableInteractionSource, and it will be created inside the component if needed. Changing to null allows for some components to never allocate aMutableInteractionSource, and allows for other components to only lazily create an instance when they need to, which improves performance across these components. If you are not using theMutableInteractionSourceyou pass to these components, it is recommended that you pass null instead. It is also recommended that you make similar changes in your own components. (Ib90fc, b/298048146) - Adds new ripple API in
wear:compose-materialandwear:compose-material3libraries which replaces the deprecatedrememberRipple. Also adds a temporaryCompositionLocal,LocalUseFallbackRippleImplementation, to revert Material components to using the deprecatedrememberRipple/RippleThemeAPIs. This will be removed in the next stable release, and is only intended to be a temporary migration aid for cases where you are providing a customRippleTheme. See developer.android.com for migration information and more background information behind this change. (af92b21) - We have made minor improvements to the
HorizontalPageIndicatorapi and its documentation. (I60efc) - We have updated
ColorSchemeto be immutable, making individual color updates less efficient, but making more common usage of colors more efficient. The reasoning behind this change is that the majority of apps wouldn't have updating individual colors as a main use case. This is still possible but it will recompose more than before, in turn we significantly decrease the amount of state subscriptions through all of material code and will impact initialization and runtime cost of more standard use cases. (Ibc2d6) - Updated
ToggleButtonandSplitToggleButtonAPIs to allow disabled colors to be customized. In addition, Material Design tokens are now used for color and typography values. (If087c) - Updated Button image background colors to use Material Design tokens. (Iba215)
- We have changed the
Checkbox,SwitchandRadioButtoncomponents to be display-only, by removing the click handling. These components are expected to be used in(Split)ToggleButtonwhich handles the click, so the components are now more clearly indicated as display-only (and are not intended for standalone use on Wear). (I2322e)
Bug Fixes
- We have added tokens for motion values of durations and easings in Wear Compose Material 3. (I437cd)
- We have fixed a bug in the
ToggleButton,SplitToggleButton,Checkbox,SwitchandRadioButtonso that accessibility announcements are not repeated (previously, semantic roles were duplicated). (Ica281) - We have removed the materialcore layer for
CompactButtonto improve performance. (7902858)
Version 1.0.0-alpha15
November 15, 2023
androidx.wear.compose:compose-material3:1.0.0-alpha15 is released. Version 1.0.0-alpha15 contains these commits.
API Changes
- We have renamed the Foundation level
SwipeToDismissBoxtoBasicSwipeToDismissBox. This makes the distinction clearer between the Foundation level component and the Material3 levelSwipeToDismissBox. The latter pulls colors from theMaterialThemeto be used in scrims and delegates the remaining implementation to theBasicSwipeToDismissBox. (Ibecfc)
Bug Fixes
- We have removed the material-core layer for Material3 Button to improve performance. (I55555)
Version 1.0.0-alpha14
October 18, 2023
androidx.wear.compose:compose-material3:1.0.0-alpha14 is released. Version 1.0.0-alpha14 contains these commits.
API Changes
- We have removed the
indicatorStyleparameter from the Material3HorizontalPageIndicator- instead, it will follow the device screen shape (linear or round). (I83728) - We have separated the colors for
SplitToggleButtonfrom those forToggleButton, by adding a newSplitToggleButtonColorsclass. (I78bee)
Version 1.0.0-alpha13
October 4, 2023
androidx.wear.compose:compose-material3:1.0.0-alpha13 is released. Version 1.0.0-alpha13 contains these commits.
API Changes
- We have added an optional Subtitle field to
TitleCard. (Ifc45a) - We have added Material Design color tokens for
TextButton. (I769dc)
Version 1.0.0-alpha12
September 20, 2023
androidx.wear.compose:compose-material3:1.0.0-alpha12 is released. Version 1.0.0-alpha12 contains these commits.
API Changes
- We have updated
IconButtonto use Material Design tokens. (I3f137) - We have updated
IconToggleButtonto use Material Design tokens. (I7d263) - We have made public the constructors of
CheckboxColors,RadioButtonColors,SwitchColors. (I82b73)
Version 1.0.0-alpha11
September 6, 2023
androidx.wear.compose:compose-material3:1.0.0-alpha11 is released. Version 1.0.0-alpha11 contains these commits.
Bug Fixes
- We update updated the typography for Material3 Cards to
TitleMedium. (I597bd) - We have updated the typography and alignment for our Material3
ListHeaderandListSubheader. (Ib5ceb)
Version 1.0.0-alpha10
August 23, 2023
androidx.wear.compose:compose-material3:1.0.0-alpha10 is released. Version 1.0.0-alpha10 contains these commits.
New Features
- Add
HorizontalPageIndicatorin Wear Material3 library. (Ifee99)
API Changes
- Update Buttons code to use Material3 design tokens. (I92fe4)
- Declaring Wear Material 3 Stepper and Slider APIs as experimental as the details of the user interface are still being finalized. (I84d54)
- We have removed the
ExtraSmallsizes from the roundTextButtonandTextToggleButtonas that size only applies to theIconButton. (Ibc7d5)
Bug Fixes
- We have updated the guidance on typography for TextToggleButton to use LabelLarge for LargeButtonSize (Ib10fa)
- We have updated the guidance on typography for TextButton to use LabelLarge for LargeButtonSize (I8f3a7)
- We have set the Card's minimum touch target to be 48dp for accessibility. (Ieb9b1)
- Add AppCard with image demo, removing AppCard with Background demo (Id735f)
- Fix a bug in round buttons where modifiers were not chained correctly. (I5e162)
Version 1.0.0-alpha09
August 9, 2023
androidx.wear.compose:compose-material3:1.0.0-alpha09 is released. Version 1.0.0-alpha09 contains these commits.
New Features
- We have added
ToggleButtonfor material3 (I6bed6)
API Changes
- We have turned on the
FloatRangeannotation as API constraints , which were previously stated in comments. (Icb401) - We have updated the typography for Wear Material3 to adhere to the latest Material3 guidelines. (I1bad6)
Bug Fixes
- We have updated the colors for
Button,IconButtonandTextButtonin line with Material3 design. (Ib2495) - We have fixed checkbox tick visibility in disabled states. (Ib25bf)
Version 1.0.0-alpha08
July 26, 2023
androidx.wear.compose:compose-material3:1.0.0-alpha08 is released. Version 1.0.0-alpha08 contains these commits.
New Features
- We have added the following selection controls for Material3 -
Switch,Checkbox,RadioButton. (Ib918c) - We have added
IconToggleButtonandTextToggleButtonto Material3, a circular toggle button with a single slot for icon and text respectively. For different sizes ofToggleButton, we recommend usingModifier.touchTargetAwareSizewith the sizes provided in respective toggle buttons. (I9f015) - We have added
ListHeaderandListSubheaderto our Material3 components. (Ibaefe) - We have added Material3
SwipeToDismissBox, which calls the new FoundationSwipeToDismissBoxand supplies default color values from its theme. (I275fb) - We have added the Material3
InlineSliderto Wear Compose. It allows users to make a selection from a range of values. The range of selections is shown as a bar between the minimum and maximum values of the range, from which users may select a single value.InlineSlideris ideal for adjusting settings such as volume or brightness. (I7085f)
API Changes
- We have updated the Shapes in Wear Material 3 theme to use
RoundedCornerShapebased instead of Shape. (Idb133) - We have made the height constants for Button public (Idbfde)
- Updated API files to annotate compatibility suppression (I8e87a, b/287516207)
- We have updated
InlineSliderColorsin Wear Compose Material 3 to have public constructor and public properties. (I6b632) - We have updated all color classes in Wear Compose Material 3 to have public constructors and public properties. (I17702)
- We have made Button horizontal and vertical padding constants public. (Ieeaf7)
Bug Fixes
- Button will now adjust its height to accommodate content that has grown due to large fonts for accessibility, when required (Iaf302)
- We have updated a number of Button demos to address accessibility issues. (I61ce9)
StepperandInlineSlidernow support repeated clicks on long press so that you can quickly increase/decrease value ofStepperandInlineSliderby holding the + or - buttons (I27359)
Version 1.0.0-alpha07
June 21, 2023
androidx.wear.compose:compose-material3:1.0.0-alpha07 is released. Version 1.0.0-alpha07 contains these commits.
New Features
- We have added the
Steppercomponent to our Compose for Wear OS Material 3 library. This is similar to the previous Material version, but omits range semantics by default, following developer feedback. We provideModifier.rangeSemanticsthe cases where range semantics are required. (Ic39fd) - We have added
curvedTextto our Compose for Wear OS Material 3 library. (Ia8ae3)
Bug Fixes
- We have update
wear.compose.foundationto be an API dependency ofwear.compose.material3(I72004, b/285404743)
Version 1.0.0-alpha06
June 7, 2023
androidx.wear.compose:compose-material3:1.0.0-alpha06 is released. Version 1.0.0-alpha06 contains these commits.
Bug Fixes
- We have updated
TextButtonto use thetoDisabledColorextension function for correct disabled alpha values. (I814c8)
Version 1.0.0-alpha05
May 24, 2023
androidx.wear.compose:compose-material3:1.0.0-alpha05 is released. Version 1.0.0-alpha05 contains these commits.
New Features
- We have added
TextButtonto Material3, a circular button with a single slot for text. For different sizes ofTextButton, we recommend usingModifier.touchTargetAwareSizeandExtraSmallButtonSize,SmallButtonSize,DefaultButtonSizeandLargeButtonSizeIconprovided inTextButtonDefaults. The defaultTextButtonhas no border and a transparent background for low emphasis actions. For actions that require high emphasis, usefilledTextButtonColors; for a medium-emphasis, outlinedTextButton, set the border toButtonDefaults.outlinedButtonBorder; for a middle ground between outlined and filled, usefilledTonalTextButtonColors. (I667e4) - We have added
Card,OutlinedCard,AppCardandTitleCardinto the Wear Compose Material3 library.AppCardandTitleCardcan also be given the outlined appearance usingCardDefaults.outlinedCardColorsandCardDefaults.outlinedCardBorder(I80e72)
API Changes
- We have moved the Button label parameter to the end to support trailing lambda syntax and removed the role parameter (as this can be overridden using
Modifier.semantics).ButtonColorsconstructors are now public. (Ie1b6d)
Version 1.0.0-alpha04
May 10, 2023
androidx.wear.compose:compose-material3:1.0.0-alpha04 is released. Version 1.0.0-alpha04 contains these commits.
New Features
- We have added
IconButtonto Material3, a circular button with a single slot for icon/image. There are four variations:IconButton,FilledIconButton,FilledTonalIconButtonandOutlinedIconButton. For different sizes ofIconButton, we recommend usingModifier.touchTargetAwareSizeandExtraSmallButtonSize,SmallButtonSize,DefaultButtonSizeandLargeButtonSizeIconprovided inIconButtonDefaults. We also provideIconButtonDefaults.iconSizeForto determine the recommended icon size for a given button size. (I721d4)
Version 1.0.0-alpha03
April 19, 2023
androidx.wear.compose:compose-material3:1.0.0-alpha03 is released. Version 1.0.0-alpha03 contains these commits.
API Changes
- We have added the Material 3 Button component - this is our stadium-shaped button and was formerly named Chip in the Wear Compose Material library (it has been renamed to Button for consistency with the Compose Material 3 library). The default Button has a filled background and there are button variations for
FilledTonal(muted background), Outlined (transparent with a thin border) and Child (transparent background and no border, used for supplementary actions with the lowest amount of prominence). Round buttons for simple icon and text content will follow in a future release.(Ia6942)
Version 1.0.0-alpha02
April 5, 2023
androidx.wear.compose:compose-material3:1.0.0-alpha02 is released. Version 1.0.0-alpha02 contains these commits.
Bug Fixes
- We have added a
DefaultTextStyleto Wear Compose Material 3 which defaults thePlatformTextStyle.includeFontPaddingto true (the current setting). This will allow us to synchronize turning off font padding by default with the Compose libraries in the future (see Fix font padding in Compose for background). (I7e461)
Version 1.0.0-alpha01
March 22, 2023
androidx.wear.compose:compose-material3:1.0.0-alpha01 is released. Version 1.0.0-alpha01 contains these commits.
New Features
Material 3 is the next evolution of Material Design and includes updated theming and redesigned components. Material 3 on Wear Compose is designed to be cohesive with the Material 3 Compose library on Android. This first alpha release contains early, functional implementations of the following:
We will continue to develop Wear Material (
androidx.wear.compose:compose-material) and Wear Material 3 (androidx.wear.compose:compose-material3) in parallel. Future material3 releases will extend the widget set to include other familiar components from Compose for Wear OS, such as buttons, pickers, and sliders.The Wear Material and Wear Material 3 libraries are mutually exclusive and should not be mixed in the same app, primarily because they reference different themes which would lead to unexpected inconsistencies.