Wear Compose M3

by android42dc2270e960Complete terms in LICENSE.txt7.7K starsListed Oct 8, 2026Updated Oct 8, 2026Repository updated 13 days ago

Guidance for Wear OS Compose Material3 (Wear Compose Material 3 / Wear Compose Material3) watch and wearable apps. Covers creating, updating, and migrating projects (Material 2.5 and Horologist migration) using androidx.wear.compose.material3, androidx.wear.compose.foundation, and androidx.wear.compose.navigation3, including AppScaffold, ScreenScaffold, TransformingLazyColumn, ambient mode, and previews.

Instructions onlySoftware Development
AI-generated overview

Guides building, updating and migrating Wear OS Compose Material3 apps, with canonical component samples and version rules.

What it does
Provides guidance for Wear OS Compose Material3 (Wear Compose Material 3) watch and wearable apps, covering androidx.wear.compose.material3, foundation and navigation3. It explains how to create, update and migrate projects from Material 2.5 or Horologist, including AppScaffold, ScreenScaffold, TransformingLazyColumn, ambient mode and previews. It also maps components and symbols to canonical reference sample files and states version, SDK and compiler requirements.
When to use it
Use it when migrating an older Wear OS Compose or Horologist project to Material3, updating an existing Wear Compose Material3 project, or adding features to one. It is also meant for looking up correct usage of a specific Wear Compose component before refactoring.
Requirements
Requires a Wear OS Compose project with Gradle build files (libs.versions.toml or build.gradle.kts), Kotlin 2.0.0+ with the Compose compiler Gradle plugin, minSdk 25, and compileSdk/AGP meeting the library's AAR metadata floors. Network access may be needed to fetch Maven metadata for the latest stable version. Ships no scripts; instructions and reference sample files only.

Prerequisites and compatibility

  1. Current Wear OS Compose version in-use: To find the installed library version, read gradle/libs.versions.toml or build.gradle.kts directly. Don't run ./gradlew dependencies or other shell commands to resolve versions.
  2. Wear OS Compose Material3 version: If an internal tool is available to establish the latest stable version {VERSION} of androidx.wear.compose:compose-material3, use that tool.
  3. Strict compliance: If a version is listed as stable, you MUST use it, unless overridden by the user. Do not downgrade based on initial "Unresolved reference" errors in the editor or outdated web search results.
  4. Kotlin & Compose compiler: Use Kotlin 2.0.0+ with the org.jetbrains.kotlin.plugin.compose Gradle plugin.
  5. Min SDK: Ensure minSdk is at least 25.
  6. Compile SDK & AGP: Ensure compileSdk and AGP meet the library's AAR metadata floors (compileSdk >= 35 and AGP >= 8.6.0 for 1.6.x; compileSdk >= 37 and AGP >= 9.1.0 for 1.7.x).

Gotchas

  1. Mandatory sync and validation: After updating versions in libs.versions.toml or build.gradle.kts, perform a Gradle sync (or ./gradlew assembleDebug) before refactoring, and run ./gradlew assembleDebug after refactoring to verify the build.
  2. Prohibition of guessing (error protocol): If you encounter an 'Unresolved Reference' or API mismatch after a successful sync, do not attempt to 'fix' it by downgrading the library version.

Capabilities and tools

Capability 1: Migration, updates, and adding features

Use this guidance when migrating from an older version of Wear OS Compose or Horologist, updating an existing Wear Compose Material3 project, or adding features.

  1. Unless otherwise indicated by the developer, use the latest stable version of Wear Compose Material3 from {VERSION} (superseding any literal version strings in the migration guide).
  2. When migrating from Material 2.5 or Horologist, read the migration guide [blocked] and use its official component mappings.
  3. Before refactoring any component (for example, Chip -> Button), check the parameter names, slot types, and "Expressive" design tokens.
  4. Do not use the Horologist Composables, Compose Layout, or Compose Material libraries; replace Horologist components with Wear Compose M3 equivalents (AppScaffold -> M3 AppScaffold, ScreenScaffold -> M3 ScreenScaffold, ScalingLazyColumn -> TransformingLazyColumn, ResponsiveListHeader -> ListHeader, PagerScreen -> HorizontalPagerScaffold, Chip -> Button, Confirmation -> ConfirmationDialog).
  5. Always check against the component guidance in Capability 3.
  6. Expect screenshot tests to fail when migrating or updating components: expected defaults for padding and positioning will have changed. Do not seek to artificially match the previous screenshot, but give preference to the Material3 defaults.

Capability 2: Component samples

Use this table of reference to find canonical samples for Wear Compose components. When working with a Wear Compose component, you must use the samples linked from the table to ensure you know how to correctly use it.

Important: Symbols marked with [alpha], [beta], or [rc] are only available in that pre-release track and are not in stable {VERSION}. Do not use them unless the project explicitly targets that pre-release version.

Material 3 components in androidx.wear.compose.material3.*
Component / SymbolReference Samples
AlertDialog, AlertDialogDefaultsAlertDialogSample [blocked]
AnimatedPage, HorizontalPagerScaffold, VerticalPagerScaffoldOneHandedGestureSamples [blocked], PageIndicatorSample [blocked], PagerScaffoldSample [blocked]
AnimatedText, rememberAnimatedTextFontRegistryAnimatedTextSample [blocked]
AppCardCardSample [blocked]
AppScaffoldListHeaderSample [blocked], PagerScaffoldSample [blocked], ScaffoldSample [blocked], SurfaceTransformationSample [blocked], TransformingLazyColumnNotificationsSample [blocked], TransformingLazyColumnSample [blocked]
ArcProgressIndicator, ArcProgressIndicatorDefaults, CircularProgressIndicator, CircularProgressIndicatorDefaults, ProgressIndicatorDefaults, SegmentedCircularProgressIndicator, drawCircularProgressIndicatorProgressIndicatorSample [blocked]
ButtonAlertDialogSample [blocked], AnimatedTextSample [blocked], ButtonGroupSample [blocked], ButtonSample [blocked], DatePickerSample [blocked], DynamicColorSchemeSample [blocked], FadingExpandingLabelSample [blocked], ListHeaderSample [blocked], OneHandedGestureSamples [blocked], PageIndicatorSample [blocked], PagerScaffoldSample [blocked], PickerSample [blocked], ScaffoldSample [blocked], ScrollIndicatorSample [blocked], StepperSample [blocked], SurfaceTransformationSample [blocked], SwipeDismissableSceneStrategySample [blocked], SwipeToRevealSample [blocked], TimePickerSample [blocked], TransformationSpecSample [blocked], TransformingLazyColumnSample [blocked], TransformingLazyColumnSample [blocked]
ButtonDefaultsButtonSample [blocked], CurvedTextSamples [blocked], DynamicColorSchemeSample [blocked], EdgeButtonSample [blocked], ListHeaderSample [blocked], OneHandedGestureSamples [blocked], PlaceholderSample [blocked], ScaffoldSample [blocked], ScrollAwaySample [blocked], ScrollIndicatorSample [blocked], SurfaceTransformationSample [blocked], TextButtonSample [blocked], TransformationSpecSample [blocked], TransformingLazyColumnSample [blocked], TransformingLazyColumnSample [blocked]
ButtonGroupButtonGroupSample [blocked], TransformationSpecSample [blocked]
CardCardSample [blocked], SwipeDismissableSceneStrategySample [blocked], SwipeToRevealSample [blocked], TransformingLazyColumnSample [blocked]
CardDefaultsCardSample [blocked], SurfaceTransformationSample [blocked], SwipeToRevealSample [blocked], TransformingLazyColumnSample [blocked], TransformingLazyColumnSample [blocked]
CheckboxButtonCheckboxButtonSample [blocked], SwipeToDismissBoxSample [blocked]
ChildButton, OutlinedButtonButtonSample [blocked]
ColorScheme, dynamicColorSchemeDynamicColorSchemeSample [blocked]
CompactButton, CompactButtonDefaultsButtonSample [blocked], TransformingLazyColumnSample [blocked]
ConfirmationDialog, ConfirmationDialogDefaults, FailureConfirmationDialog, SuccessConfirmationDialog, confirmationDialogCurvedTextConfirmationDialogSample [blocked]
CurvedTextDefaultsCurvedTextSamples [blocked]
DatePicker, DatePickerTypeDatePickerSample [blocked]
EdgeButtonEdgeButtonSample [blocked], OneHandedGestureSamples [blocked], ScaffoldSample [blocked], SwipeDismissableSceneStrategySample [blocked], TransformingLazyColumnSample [blocked]
EdgeButtonSizeEdgeButtonSample [blocked]
FadingExpandingLabelFadingExpandingLabelSample [blocked]
FilledIconButton, FilledTonalIconButton, IconButtonColors, IconButtonShapes, OutlinedIconButtonIconButtonSample [blocked]
FilledTonalButtonAlertDialogSample [blocked], ButtonSample [blocked], ConfirmationDialogSample [blocked], OpenOnPhoneDialogSample [blocked], PlaceholderSample [blocked], ScrollAwaySample [blocked], SwipeToDismissBoxSample [blocked]
HorizontalPageIndicator, VerticalPageIndicatorPageIndicatorSample [blocked]
IconAlertDialogSample [blocked], ButtonSample [blocked], CardSample [blocked], CheckboxButtonSample [blocked], ConfirmationDialogSample [blocked], CurvedTextSamples [blocked], DatePickerSample [blocked], EdgeButtonSample [blocked], IconButtonSample [blocked], ListHeaderSample [blocked], PlaceholderSample [blocked], ProgressIndicatorSample [blocked], RadioButtonSample [blocked], SwipeToRevealSample [blocked], SwitchButtonSample [blocked], TimePickerSample [blocked]
IconButtonIconButtonSample [blocked], LevelIndicatorSample [blocked], ProgressIndicatorSample [blocked]
IconButtonDefaultsIconButtonSample [blocked], ProgressIndicatorSample [blocked]
IconToggleButton, IconToggleButtonDefaultsIconToggleButtonSample [blocked]
LevelIndicatorLevelIndicatorSample [blocked]
LinearProgressIndicatorLinearProgressIndicatorSample [blocked]
ListHeaderListHeaderSample [blocked], ScrollAwaySample [blocked], SwipeDismissableSceneStrategySample [blocked], TransformingLazyColumnNotificationsSample [blocked], TransformingLazyColumnSample [blocked]
ListHeaderDefaultsListHeaderSample [blocked], ScrollAwaySample [blocked], TransformingLazyColumnSample [blocked]
ListSubHeaderListHeaderSample [blocked]
LocalOneHandedGestureEnabled [rc], OneHandedGestureDefaults [rc], OneHandedGestureHorizontalPageIndicator [rc], OneHandedGesturePageIndicatorState [rc], OneHandedGesturePriority [rc], OneHandedGestureScrollIndicator [rc], OneHandedGestureScrollIndicatorState [rc], OneHandedGestureVerticalPageIndicator [rc]OneHandedGestureSamples [blocked]
MaterialThemeAlertDialogSample [blocked], ButtonSample [blocked], CardSample [blocked], CurvedTextSamples [blocked], DynamicColorSchemeSample [blocked], LinearProgressIndicatorSample [blocked], PagerScaffoldSample [blocked], ProgressIndicatorSample [blocked], SwipeToDismissBoxSample [blocked], TimeTextSample [blocked], TransformingLazyColumnNotificationsSample [blocked]
OneHandedGestureAction [rc], OneHandedGestureClickIndicator [rc], OneHandedGestureClickIndicatorState [rc], oneHandedGesture [rc], rememberOneHandedGestureConfiguration [rc]ButtonSample [blocked], CardSample [blocked], OneHandedGestureSamples [blocked]
OpenOnPhoneDialog, OpenOnPhoneDialogDefaults, openOnPhoneDialogCurvedTextOpenOnPhoneDialogSample [blocked]
OutlinedCardCardSample [blocked], TransformingLazyColumnSample [blocked]
PagerScaffoldDefaultsPageIndicatorSample [blocked], PagerScaffoldSample [blocked]
PickerPickerSample [blocked]
PickerGroupPickerGroupSample [blocked]
RadioButton, SplitRadioButtonRadioButtonSample [blocked]
ResponsiveTransformationSpec, TransformationVariableSpecSurfaceTransformationSample [blocked], TransformationSpecSample [blocked]
RevealValue, SwipeToReveal, SwipeToRevealDefaults, rememberRevealStateSwipeToRevealSample [blocked]
ScreenScaffoldListHeaderSample [blocked], OneHandedGestureSamples [blocked], PagerScaffoldSample [blocked], ScaffoldSample [blocked], SurfaceTransformationSample [blocked], SwipeDismissableSceneStrategySample [blocked], TransformingLazyColumnNotificationsSample [blocked], TransformingLazyColumnSample [blocked]
ScreenScaffoldDefaults, ScrollIndicatorScrollIndicatorSample [blocked]
ScreenStage, scrollAwayScrollAwaySample [blocked]
Slider, SliderDefaultsSliderSample [blocked]
SplitCheckboxButtonCheckboxButtonSample [blocked]
SplitSwitchButtonSwitchButtonSample [blocked]
Stepper, StepperLevelIndicator, rangeSemanticsStepperSample [blocked]
StepperDefaultsLevelIndicatorSample [blocked], StepperSample [blocked]
SurfaceTransformationAlertDialogSample [blocked], DynamicColorSchemeSample [blocked], ListHeaderSample [blocked], ScaffoldSample [blocked], SurfaceTransformationSample [blocked], SwipeDismissableSceneStrategySample [blocked], TransformationSpecSample [blocked], TransformingLazyColumnNotificationsSample [blocked], TransformingLazyColumnSample [blocked], TransformingLazyColumnSample [blocked]
SwipeToDismissBoxSwipeToDismissBoxSample [blocked]
SwitchButtonAlertDialogSample [blocked], OneHandedGestureSamples [blocked], SwitchButtonSample [blocked]
TextAlertDialogSample [blocked], AnimatedTextSample [blocked], ButtonGroupSample [blocked], ButtonSample [blocked], CardSample [blocked], CheckboxButtonSample [blocked], ConfirmationDialogSample [blocked], DatePickerSample [blocked], DynamicColorSchemeSample [blocked], EdgeButtonSample [blocked], ListHeaderSample [blocked], OneHandedGestureSamples [blocked], OpenOnPhoneDialogSample [blocked], PageIndicatorSample [blocked], PagerScaffoldSample [blocked], PickerGroupSample [blocked], PickerSample [blocked], PlaceholderSample [blocked], RadioButtonSample [blocked], ScaffoldSample [blocked], ScrollAwaySample [blocked], ScrollIndicatorSample [blocked], StepperSample [blocked], SurfaceTransformationSample [blocked], SwipeDismissableSceneStrategySample [blocked], SwipeToDismissBoxSample [blocked], SwipeToRevealSample [blocked], SwitchButtonSample [blocked], TextButtonSample [blocked], TextToggleButtonSample [blocked], TimePickerSample [blocked], TransformationSpecSample [blocked], TransformingLazyColumnNotificationsSample [blocked], TransformingLazyColumnSample [blocked]
TextButtonTextButtonSample [blocked]
TextButtonDefaultsTextButtonSample [blocked], TextToggleButtonSample [blocked]
TextToggleButton, TextToggleButtonDefaults, touchTargetAwareSizeTextToggleButtonSample [blocked]
TimePicker, TimePickerTypeTimePickerSample [blocked]
TimeTextScrollAwaySample [blocked], ScrollIndicatorSample [blocked], TimeTextSample [blocked]
TimeTextDefaults, timeTextCurvedTextTimeTextSample [blocked]
TitleCardCardSample [blocked], SurfaceTransformationSample [blocked], SwipeDismissableSceneStrategySample [blocked], SwipeToRevealSample [blocked], TransformingLazyColumnNotificationsSample [blocked], TransformingLazyColumnSample [blocked]
TransformationSpecTransformationSpecSample [blocked]
curvedTextCurvedTextSamples [blocked], ScrollAwaySample [blocked], TimeTextSample [blocked]
firstVisibleItemLayoutItemInfo [rc], layoutItemInfoOf [rc], rememberTransformingLazyColumnFirstLayoutItemProvider [rc]TransformingLazyColumnSample [blocked]
placeholder, placeholderShimmer, rememberPlaceholderStatePlaceholderSample [blocked]
rememberPickerStatePickerGroupSample [blocked], PickerSample [blocked]
rememberTransformationSpec, transformedHeightAlertDialogSample [blocked], DynamicColorSchemeSample [blocked], ListHeaderSample [blocked], ScaffoldSample [blocked], SurfaceTransformationSample [blocked], SwipeDismissableSceneStrategySample [blocked], SwipeToRevealSample [blocked], TransformationSpecSample [blocked], TransformingLazyColumnNotificationsSample [blocked], TransformingLazyColumnSample [blocked], TransformingLazyColumnSample [blocked]
timeTextSeparatorScrollAwaySample [blocked], TimeTextSample [blocked]
Foundation components in androidx.wear.compose.foundation.*
Component / SymbolReference Samples
AmbientMode, LocalAmbientModeManager, rememberAmbientModeManagerAmbientModeSample [blocked], OneHandedGestureSamples [blocked]
AmbientTickEffectAmbientModeSample [blocked]
BasicSwipeToDismissBoxSwipeToDismissBoxSample [blocked]
CurvedAlignment, CurvedTextStyle, angularGradientBackground, angularSize, basicCurvedText, clearAndSetSemantics, curvedColumn, padding, radialGradientBackground, radialSize, semantics, sizeCurvedWorldSample [blocked]
CurvedDirection, CurvedLayout, angularSizeDp, background, curvedBox, curvedComposable, curvedRowCurvedTextSamples [blocked], CurvedWorldSample [blocked]
CurvedModifierCurvedTextSamples [blocked], CurvedWorldSample [blocked], TimeTextSample [blocked]
HorizontalPager, VerticalPager, rememberPagerStateOneHandedGestureSamples [blocked], PageIndicatorSample [blocked], PagerSamples [blocked], PagerScaffoldSample [blocked]
PagerDefaultsPagerScaffoldSample [blocked]
RotaryScrollableDefaultsPagerScaffoldSample [blocked], RotarySamples [blocked], TransformingLazyColumnSample [blocked]
RotarySnapLayoutInfoProvider, rotaryScrollableRotarySamples [blocked]
ScrollInfoProviderScrollAwaySample [blocked]
SwipeToDismissValue, edgeSwipeToDismiss, rememberSwipeToDismissBoxStateSwipeToDismissBoxSample [blocked], SwipeToDismissBoxSample [blocked]
TransformingLazyColumnDynamicColorSchemeSample [blocked], ListHeaderSample [blocked], OneHandedGestureSamples [blocked], ScaffoldSample [blocked], ScrollAwaySample [blocked], ScrollIndicatorSample [blocked], SurfaceTransformationSample [blocked], SwipeDismissableSceneStrategySample [blocked], SwipeToRevealSample [blocked], TransformationSpecSample [blocked], TransformingLazyColumnNotificationsSample [blocked], TransformingLazyColumnSample [blocked], TransformingLazyColumnSample [blocked]
TransformingLazyColumnDefaultsTransformingLazyColumnSample [blocked]
TransformingLazyColumnItemScrollProgressTransformationSpecSample [blocked]
expandableButton, expandableItem, expandableItems, rememberExpandableStateExpandableSample [blocked]
hierarchicalFocusGroupHierarchicalFocusSample [blocked]
itemsSwipeDismissableSceneStrategySample [blocked], SwipeToRevealSample [blocked], TransformingLazyColumnNotificationsSample [blocked]
itemsIndexedTransformingLazyColumnSample [blocked]
rememberTransformingLazyColumnStateListHeaderSample [blocked], OneHandedGestureSamples [blocked], ScaffoldSample [blocked], ScrollAwaySample [blocked], ScrollIndicatorSample [blocked], SurfaceTransformationSample [blocked], SwipeDismissableSceneStrategySample [blocked], SwipeToRevealSample [blocked], TransformingLazyColumnNotificationsSample [blocked], TransformingLazyColumnSample [blocked], TransformingLazyColumnSample [blocked]
requestFocusOnHierarchyActiveHierarchicalFocusSample [blocked], RotarySamples [blocked]
weightCurvedWorldSample [blocked], TimeTextSample [blocked]
Navigation 3 components in androidx.wear.compose.navigation3.*
Component / SymbolReference Samples
rememberSwipeDismissableSceneStrategySwipeDismissableSceneStrategySample [blocked]

Capability 3: Component guidance

Mandatory: Use this capability as a checklist against any component use. It provides more holistic guidance on how to use each component in practice, beyond the component syntax.

  1. AppScaffold and ScreenScaffold

    • [ ] Use AppScaffold as the outer container, with ScreenScaffold children.
    • [ ] Use only ONE AppScaffold and any number of ScreenScaffold.
  2. ScalingLazyColumn - Use TransformingLazyColumn instead.

  3. TransformingLazyColumn - You will need the following imports:

    kotlin
    import androidx.wear.compose.foundation.lazy.TransformingLazyColumnimport androidx.wear.compose.foundation.lazy.TransformingLazyColumnDefaultsimport androidx.wear.compose.foundation.lazy.rememberTransformingLazyColumnState// ...import androidx.wear.compose.material3.lazy.rememberTransformationSpecimport androidx.wear.compose.material3.lazy.transformedHeight
    <br />

    Canonical example:

    kotlin
    val columnState = rememberTransformingLazyColumnState()val transformationSpec = rememberTransformationSpec()ScreenScaffold(    scrollState = columnState) { contentPadding ->    TransformingLazyColumn(        state = columnState,        contentPadding = contentPadding    ) {        item {            ListHeader(                modifier = Modifier                    .fillMaxWidth()                    .transformedHeight(this, transformationSpec)                    .minimumVerticalContentPadding(ListHeaderDefaults.minimumTopListContentPadding),                transformation = SurfaceTransformation(transformationSpec)            ) {                Text(text = "Header")            }        }        // ... other items        item {            Button(                modifier = Modifier                    .fillMaxWidth()                    .transformedHeight(this, transformationSpec)                    .minimumVerticalContentPadding(ButtonDefaults.minimumVerticalListContentPadding),                transformation = SurfaceTransformation(transformationSpec),                onClick = { /* ... */ },                icon = {                    Icon(                        imageVector = Icons.Default.Build,                        contentDescription = "build",                    )                },            ) {                Text(                    text = "Build",                    maxLines = 1,                    overflow = TextOverflow.Ellipsis,                )            }        }    }}
    <br />
    • [ ] Use TransformingLazyColumn instead of ScalingLazyColumn.
    • [ ] You must pass the contentPadding parameter from ScreenScaffold to the TransformingLazyColumn.
    • [ ] Use the minimumVerticalContentPadding modifier to achieve required padding top and bottom.
      • This expects a value from defaults, such as ButtonDefaults, CardDefaults, ListHeaderDefaults.
      • Note: This is a scoped modifier available within TransformingLazyColumnItemScope.
    • [ ] Ensure items morph and scale (apply to components within TransformingLazyColumn, not the list itself):
      • [ ] Use Modifier.transformedHeight(this, transformationSpec).
      • [ ] Use transformation = SurfaceTransformation(transformationSpec).
    • [ ] If configuring a list for snapping, use flingBehavior and rotaryScrollableBehavior together:
    kotlin
    val columnState = rememberTransformingLazyColumnState()ScreenScaffold(scrollState = columnState) { contentPadding ->    TransformingLazyColumn(        state = columnState,        flingBehavior = TransformingLazyColumnDefaults.snapFlingBehavior(columnState),        rotaryScrollableBehavior = RotaryScrollableDefaults.snapBehavior(columnState)    ) {        // ...        // ...    }}
    <br />
  4. ScreenScaffold

    • [ ] Guard the scrollIndicator with !LocalScrollCaptureInProgress.current (androidx.compose.ui.platform).
  5. EdgeButton

    • [ ] Do NOT use as the final item within a TransformingLazyColumn. Instead, use the slot in ScreenScaffold.
    • [ ] When used in a TransformingLazyColumn, add the required overscroll behavior:
    kotlin
    val columnState = rememberTransformingLazyColumnState()ScreenScaffold(    scrollState = columnState,    edgeButton = {        EdgeButton(            onClick = { /* TODO */ },            modifier = Modifier.scrollable(                columnState,                orientation = Orientation.Vertical,                reverseDirection = true,                // Apply overscroll to the EdgeButton for proper scrolling behavior.                overscrollEffect = rememberOverscrollEffect(),            )        ) {            Text("More")        }    }) { contentPadding ->    TransformingLazyColumn(        contentPadding = contentPadding,        state = columnState,    ) {        // ...        // ...    }}
    <br />
  6. Column

    • [ ] USE as a direct child of ScreenScaffold if the screen will never scroll, even with the largest system font.
    • [ ] Use TransformingLazyColumn instead for all other cases.
  7. Styles

    • [ ] Do NOT hard-code text sizes, use typography from MaterialTheme.
    • [ ] Do NOT hard-code colors, use colorScheme from MaterialTheme.
  8. Use component defaults:

    • [ ] Components such as Button have a corresponding ButtonDefaults object.
    • [ ] Check for and use the *Defaults object for any component when working with padding and styling values, in preference to hard-coded values.
  9. Use Wear-specific preview annotations (androidx.wear.compose.ui.tooling.preview):

    • [ ] @WearPreviewDevices
    • [ ] @WearPreviewFontScales
    • [ ] Ensure the androidx.wear.compose:compose-ui-tooling dependency is included.
  10. Ambient mode

    • [ ] Use LocalAmbientModeManager (provided by CompositionLocalProvider and rememberAmbientModeManager()) instead of AmbientLifecycleObserver.
  11. Navigation

    • [ ] When adding navigation fresh, use Navigation3 (androidx.wear.compose:compose-navigation3).
    • [ ] Use rememberSwipeDismissableSceneStrategy() / SwipeDismissableSceneStrategy (androidx.wear.compose.navigation3).
  12. Comments

    • [ ] Where any Kotlin file has been modified, ensure that the existing comments are up to date and accurately reflect any changes to the implementation.
  13. HorizontalPager or VerticalPager

    • [ ] Use the Composable hierarchy in this order: AppScaffold, HorizontalPagerScaffold, HorizontalPager, AnimatedPage, ScreenScaffold. Or similarly for VerticalPager.

Source and attribution

Source:android/skillsinwear/wear-compose-m3at commit42dc227

License: Complete terms in LICENSE.txt

Content belongs to its original authors. SourceWeft indexes it from a public repository.

Report or request removal

More from android/skills

Display Glasses With Jetpack Compose Glimmer

android

Provides guidelines for developing projected Android XR apps for display glasses using the Jetpack Compose Glimmer UI toolkit. This skill covers foundational Glimmer design principles, workflows for implementing Jetpack Compose Glimmer, and interaction models for the glasses form factor. Use this skill to build an Android XR Augmented Experience app with Jetpack Compose Glimmer that adheres to the Glimmer design system for optimized glasses styling.

Awaiting classification7.7Kupdated 13 days ago

Play Billing Library Version Upgrade

android

Guides upgrading an Android project from a legacy Google Play Billing Library version to the latest stable release.

Software Development7.7Kupdated 13 days ago

Leanback To Compose Tv Migration

android

Provides instructions and architectural patterns for migrating Android TV applications from legacy Leanback UI Toolkit, Android Views, or Support Fragments to Jetpack Compose for TV (androidx.tv). Use this skill for Leanback to Compose migrations, including browse screen, settings screen, authentication screen, login screen, or video playback screen migrations, or when replacing BrowseSupportFragment, LeanbackSettingsFragment, PreferenceFragment, BaseLeanbackPreferenceFragmentCompat, VideoSupportFragment, GuidedStepSupportFragment, SearchSupportFragment, VerticalGridSupportFragment, Presenter, ArrayObjectAdapter, or CursorMapper with modern Compose equivalents, implementing immersive carousels with focus memory, Media3 video playback with PlayerSurface, or custom 10-foot hero layouts.

Awaiting classification7.7Kupdated 13 days ago

Testing Setup

android

Analyzes an Android project's testing setup and installs testing frameworks, harnesses and tests for unit, UI, screenshot and end-to-end coverage.

Software Development7.7Kupdated 13 days ago

Android Profiler

android

Guides Android performance profiling: recording system traces, heap dumps and method recordings, and analyzing them with Perfetto SQL.

Software Development7.7Kupdated 13 days ago

Styles

android

Guides migrating Android Jetpack Compose custom components and themes to the experimental Styles API.

Software Development7.7Kupdated 13 days ago