Wear ProtoLayout

Frameworks & LibrariesAI extracted

AndroidX's layout and expression library behind Wear OS tiles, with Material and Material 3 components.

Latest 1.4.2 · by GoogleWebsiteRSS

Release activity

Release activity — 9 releases across 9 days in the last year. Each cell is one day; darker means more releases that day. Older weeks are hidden at this screen width.
AugSepOctNov
SundayNo releases on Aug 2, 2026No releases on Aug 9, 2026No releases on Aug 16, 2026No releases on Aug 23, 2026No releases on Aug 30, 2026No releases on Sep 6, 2026No releases on Sep 13, 2026No releases on Sep 20, 2026No releases on Sep 27, 2026No releases on Oct 4, 2026No releases on Oct 11, 2026No releases on Oct 18, 2026No releases on Oct 25, 2026No releases on Nov 1, 2026No releases on Nov 8, 2026No releases on Nov 15, 2026
MondayNo releases on Aug 3, 2026No releases on Aug 10, 2026No releases on Aug 17, 2026No releases on Aug 24, 2026No releases on Aug 31, 2026No releases on Sep 7, 2026No releases on Sep 14, 2026No releases on Sep 21, 2026No releases on Sep 28, 2026No releases on Oct 5, 2026No releases on Oct 12, 2026No releases on Oct 19, 2026No releases on Oct 26, 2026No releases on Nov 2, 2026No releases on Nov 9, 2026
TuesdayNo releases on Aug 4, 2026No releases on Aug 11, 2026No releases on Aug 18, 2026No releases on Aug 25, 2026No releases on Sep 1, 2026No releases on Sep 8, 2026No releases on Sep 15, 2026No releases on Sep 22, 2026No releases on Sep 29, 2026No releases on Oct 6, 2026No releases on Oct 13, 2026No releases on Oct 20, 2026No releases on Oct 27, 2026No releases on Nov 3, 2026No releases on Nov 10, 2026
WednesdayNo releases on Aug 5, 2026No releases on Aug 12, 2026No releases on Aug 19, 2026No releases on Aug 26, 2026No releases on Sep 2, 2026No releases on Sep 9, 2026No releases on Sep 16, 2026No releases on Sep 23, 2026No releases on Sep 30, 2026No releases on Oct 7, 2026No releases on Oct 14, 2026No releases on Oct 21, 2026No releases on Oct 28, 2026No releases on Nov 4, 2026No releases on Nov 11, 2026
ThursdayNo releases on Aug 6, 2026No releases on Aug 13, 2026No releases on Aug 20, 2026No releases on Aug 27, 2026No releases on Sep 3, 2026No releases on Sep 10, 2026No releases on Sep 17, 2026No releases on Sep 24, 2026No releases on Oct 1, 2026No releases on Oct 8, 2026No releases on Oct 15, 2026No releases on Oct 22, 2026No releases on Oct 29, 2026No releases on Nov 5, 2026No releases on Nov 12, 2026
FridayNo releases on Aug 7, 2026No releases on Aug 14, 2026No releases on Aug 21, 2026No releases on Aug 28, 2026No releases on Sep 4, 2026No releases on Sep 11, 2026No releases on Sep 18, 2026No releases on Sep 25, 2026No releases on Oct 2, 2026No releases on Oct 9, 2026No releases on Oct 16, 2026No releases on Oct 23, 2026No releases on Oct 30, 2026No releases on Nov 6, 2026No releases on Nov 13, 2026
SaturdayNo releases on Aug 8, 2026No releases on Aug 15, 2026No releases on Aug 22, 2026No releases on Aug 29, 2026No releases on Sep 5, 2026No releases on Sep 12, 2026No releases on Sep 19, 2026No releases on Sep 26, 2026No releases on Oct 3, 2026No releases on Oct 10, 2026No releases on Oct 17, 2026No releases on Oct 24, 2026No releases on Oct 31, 2026No releases on Nov 7, 2026No releases on Nov 14, 2026

9 releases in the last year

Changelog

1.4.2

Latest
Fixed 2
  • Prevented crashes in the expression pipeline caused by invalid cubic bezier parameters in animations by falling back to a default interpolator
  • Prevented crashes in ProtoLayout's renderer by wrapping exception handling and guarding against non-finite values or invalid animations

From Wear ProtoLayout

Prevented crashes in the expression pipeline caused by invalid cubic bezier parameters in animations by falling back to a default interpolator. Improved ProtoLayout's renderer by wrapping exception handling to prevent crashes by guarding against non-finite values or invalid animations.

View originalPermalink
How 1.4.2 went

1.4.1

Changed 1
  • Replaced uncaught IllegalArgumentExceptions with safer error logging and node invalidation in the expression pipeline
Fixed 3
  • Fixed a bug that allowed deep layouts to skip layout depth enforcement during fingerprint optimizations
  • Prevented an array bounds exception and crash caused by unbounded gap parameters in DashedArcLine
  • Fixed an uncaught NullPointerException when processing malformed image URIs
Security 1
  • Enforced a 2048px dimension limit and 20MB raw size maximum on images to prevent memory exhaustion
View originalRead the notes
How 1.4.1 went

1.4.0

Added 5
  • Inlined ImageResource support, allowing ImageResource to be directly inlined within the layout itself
  • Material3TileService, a Kotlin-friendly service providing a single suspend function that returns both tile layout and resources
  • Specialized Kotlin helpers for Tile and all other APIs needed to build a tile, such as Timeline
  • METADATA_GROUP_KEY, allowing multiple TileService instances to be grouped in the manifest for dynamic switching between services representing the same tile on new OS versions
  • Ability to specify a particular tileId in update requests to control which tile instances are refreshed
Changed 4
  • Tile Previews tooling updated to support automatic resource handling via ProtoLayoutScope so previews reflect inlined resources without extra configuration
  • Material3TileService automatically manages MaterialScope and ProtoLayoutScope for improved resource handling and faster tile loading
  • Increased required compileSdk version to 35
  • Calling PlatformHealthSources.heartRateBpm or PlatformHealthSources.heartRateAccuracy from API 36 requires the android.health.connect.HealthPermissions.READ_HEART_RATE permission to be granted to the calling app
Fixed 1
  • Moved unbinding logic during tile update requests to a background thread to prevent Application Not Responding (ANR) errors
View originalRead the notes
How 1.4.0 went

1.4.0-rc02

Changed 1
  • Starting from API 36, accessing heart rate data via the ProtoLayout Expressions library with PlatformHealthSources.heartRateBpm and PlatformHealthSources.heartRateAccuracy requires the android.health.connect.HealthPermissions.READ_HEART_RATE permission to be granted to the calling app
View originalRead the notes
How 1.4.0-rc02 went

1.4.0-beta01

Added 14
  • Inlined image resources: ImageResource can be directly inlined within the layout, removing the need for manual resource mapping in onTileResourcesRequest
  • New image API methods that accept ProtoLayoutScope to support inlined image resources
  • materialScopeWithResources for Material3 MaterialScope with inlined resources, providing automatic resource registration
  • New backgroundImage, avatarImage, and icon helper methods on the Material3 scope to streamline component usage
  • PendingIntent support for Tiles clickables, with fallback LoadAction or LaunchAction for older ProtoLayout Renderer versions
  • Kotlin helpers for Image and all ImageResource types
Changed 3
  • Tiles loading time improved by removing the need for two binder calls, since only onTileResourcesRequest needs to be implemented
  • The protoLayoutScope field in MaterialScope is now NonNull when created via materialScopeWithResources
  • ARC_DIRECTION_* consts are now public for use in Arc, ArcLine, ArcText, and DashedArcLine elements
Fixed 3
  • Resource comparison performance optimized with improved hash and equals methods for resource types
  • Default content description applied to the single slot textButton
  • Calculations for adjusting max lines fixed on the renderer side
Deprecated 1
  • Existing Material3 image helpers deprecated in favor of new overloads using ProtoLayoutScope and inlined resource handling
View originalRead the notes
How 1.4.0-beta01 went

1.4.0-alpha05

Added 1
  • A new Kotlin Transformation modifier has been added.
Fixed 1
  • Better resource handling by removing stateful ProtoLayoutScope from TileService.
View originalRead the notes
How 1.4.0-alpha05 went

1.4.0-alpha04

Deprecated 1
  • Material3 image helpers are deprecated in favour of new overloads that use ProtoLayoutScope and allow ImageResource to be inlined directly in the layout
View originalRead the notes
How 1.4.0-alpha04 went

1.4.0-alpha03

Changed 1
  • Comparing two resources types for better resource handling and performance improvements is now done using the optimized hash and equals methods
View originalRead the notes
How 1.4.0-alpha03 went

1.4.0-alpha02

Added 2
  • New Platform event source (isInAmbientMode) describing whether the device is in ambient mode or not
  • The PendingIntent clickable now accepts a fallback action (LoadAction/LaunchAction) to be used when PendingIntent is not supported by the ProtoLayout Renderer
Changed 1
  • Fallback action is automatically picked up and placed in the layout when the Renderer version is lower than the one supporting PendingIntent
View originalRead the notes
How 1.4.0-alpha02 went

1.4.0-alpha01

Added 10
  • Helper method for LayoutModifier that makes an element fade in as the tile is becoming visible
  • materialScopeWithResources to support the M3 MaterialScope concept with automatic resource registration
  • New helper methods for images (backgroundImage, avatarImage and icon) within materialScopeWithResources that remove the need for manual resource registration in onTileResourceRequest
  • ProtoLayout Kotlin helpers for Image and ImageResources for usage with ProtoLayoutScope and automatic resource registration
  • Getter for how many Lottie properties are allowed in customization of one Lottie animation
  • API in AndroidLottieResourceByResId to allow customizing a Lottie animation via properties
Changed 3
  • ProtoLayout Material3 MaterialScope now exposes the Context field as public for use within methods of the scope
  • Heading semantic APIs are now public
  • ARC_DIRECTION_* constants are now public for use in Arc, ArcLine, ArcText and DashedArcLine
View originalRead the notes
How 1.4.0-alpha01 went

1.3.0

Added 24
  • Material 3 design components and layouts optimized for round displays, scaling from small to large screen sizes
  • Kotlin-only protolayout-material3 library with Compose-like APIs for Material 3 components and features
  • Dynamic color theme from the system and watch face, using the latest Material3 colors, shapes and typography
  • MaterialScope for applying opinionated defaults and easier customization
  • iconEdgeButton and textEdgeButton components
  • iconButton, textButton, button, imageButton, avatarButton and compactButton components
View originalRead the notes
How 1.3.0 went

1.3.0-beta02

Added 2
  • Heading semantics modifier to indicate that a layout element is a heading for a section of content for accessibility purposes
  • Default content description applied to textEdgeButton
Changed 5
  • Typography design values applied on API 36 and above are improved so that Tiles use the system font consistently in the Tiles carousel
  • Text, Spacer, ArcLine and DashedArcLine builders no longer throw when layoutConstraints for dynamic values are not set; older renderers still require layoutConstraints and ignore dynamic values without them
  • Text in the title slot of primaryLayout is marked as an accessibility heading by default
  • Space between the title slot and main slot of primaryLayout is decreased to 4dp instead of 6dp on smaller screens
  • Inner padding of avatarButton is slightly updated
View originalRead the notes
How 1.3.0-beta02 went

1.3.0-beta01

Added 22
  • Material 3 design components and layouts for Wear ProtoLayout, optimized for round displays and scaling from small to large screens, provided in the Kotlin-only protolayout-material3 library
  • Dynamic color theme from the system and watch face, using the latest Material 3 theme for colors, shapes and typography
  • MaterialScope for applying opinionated defaults and easier customization of Material components
  • Material components iconEdgeButton and textEdgeButton
  • Material components iconButton, textButton, button, imageButton, avatarButton and compactButton
  • Material components titleCard, appCard, graphicDataCard, iconDataCard and textDataCard
View originalRead the notes
How 1.3.0-beta01 went

1.3.0-alpha10

Added 2
  • Add helper for Brush in Kotlin Background Modifier.
  • Add new experimental API PlatformEventSources.isLayoutUpdatePending.
Changed 5
  • Mandatory Android Context field in MaterialScope is now public to allow easier usage in developers' functions that create components for Material3 tiles.
  • Rename api platformVisibilityStatus to PlatformEventSources.isLayoutVisible.
  • Margins for primaryLayout are now rounded up properly, which can make some layouts up to 2dp less space for the main slot.
  • Clarified the default dynamic color theme in ProtoLayout Material3 components.
  • Typography.NUMERAL_* typographies are no longer tabular/monospace by default; for animating text, add FontSetting.tabularNum() setting.
View originalRead the notes
How 1.3.0-alpha10 went

1.3.0-alpha09

Added 6
  • Added experimental modifiers for enterTransition and exitTransition
  • Added additional platform binding to receive the visibility status of the full layout whenever it changes
  • Allow injecting testing app state and platform data into LayoutElementAssertionsProvider for evaluating dynamic values
  • Added corner filters to the ProtoLayout testing library
  • ButtonColors, CardColors and ProgressIndicatorColors now support a copy method with optional override of some parameters
  • Added dynamic data binding support to the testing library
Changed 3
  • The backgroundImage function now allows specifying null for the overlay color, meaning no overlay is applied
  • Default hasValueOfType method now throws UnsupportedOperationException instead of IllegalArgumentException
  • Default color token values are updated to reflect the latest spec
Fixed 2
  • Fixed imageButton used with backgroundImage function by removing the overlay
  • Fixed aliasing issue visible on arc lines in the AndroidX tiles renderer
View originalRead the notes
How 1.3.0-alpha09 went

1.3.0-alpha08

Added 7
  • Add a FontSetting list parameter for Material3 text.
  • Add a DynamicDataMap class which StateBuilder now supports for a more type safe Kotlin API for app states.
  • Add factory methods such as intAppDataKey for easier creation of AppDataKey objects.
  • Add a hasValueOfType(Class<?>) method to DynamicDataValue in addition to the hasInt/hasColor methods.
  • Add errorDim to the Material3 ProtoLayout ColorScheme for high priority errors or emergency actions such as safety alerts.
  • Material3 Typography supports the roundness variable axis for system fonts that support this axis, and FontSetting supports the roundness axis for fonts that support it.
  • Allow dynamic values in ColorStop and for start and end angles in SweepGradient.
Changed 6
  • Rename addKeyToValueMapping to addToStateMap and remove the redundant DynamicDataMap.put methods.
  • Rename multilineAlignment to alignment in the Material3 text method.
  • Update the circular progress indicator to be of Box type, and specify the mainContent in constructGraphic to be of Box type.
  • Improve support for using the circular progress indicator in a graph.
  • Material3 graphicCard and avatarButton fall back when the weight expand dimension is not supported, such as below API 33.
  • Material3 text falls back to TEXT_OVERFLOW_ELLIPSIZE_END when TEXT_OVERFLOW_ELLIPSIZE is not supported by the renderer.
Fixed 1
  • Guard against a crash when accessing the global reducemotion setting on platforms where that setting is not provided.
View originalRead the notes
How 1.3.0-alpha08 went

1.3.0-alpha07

Added 9
  • API option to set different triggers for Lottie animations
  • API for triggers fired when layout is visible
  • Border, visibility and opacity modifiers
  • Avatar button to ProtoLayout Material3 component
  • Segmented variant of the circular progress indicator
  • Compact button component to ProtoLayout Material3
Changed 5
  • Margins (side and in some cases bottom) can be customized in Material3 primaryLayout
  • LayoutModfier.foldIn is renamed to foldRight to better reflect its expected behaviour
  • VisibleOnce trigger is now experimental
  • Top level methods in LayoutString.kt and LayoutColor.kt renamed to have Java friendly names
  • Suffix Color added to fields in *Colors classes in Material3
Removed 2
  • withOpacity removed from the public API in favour of a graphics library alternative
  • Non-ProtoLayout typographies removed in Material3
View originalRead the notes
How 1.3.0-alpha07 went

1.3.0-alpha06

Added 14
  • ProtoLayout Material3 textButton component
  • ProtoLayout Material3 iconButton component
  • ProtoLayout Material3 button container component
  • Chainable semantic modifiers support in protolayout-material3
  • ProtoLayout Material3 single segment CircularProgressIndicator
  • Padding and metadata modifiers
Changed 4
  • LayoutColor supports both static and dynamic color types
  • EdgeButtonColors abstracted to ButtonColors
  • ProtoLayout Material3 API accepts LayoutString to support both static and dynamic texts
  • Renderer allows ArcSpacer to take dp length
View originalRead the notes
How 1.3.0-alpha06 went

1.3.0-alpha05

Added 2
  • Added LayoutString to support bindable layout string fields
  • Added ProtoLayout Material3 card container component
Changed 1
  • This library now uses JSpecify nullness annotations, which are type-use; Kotlin developers should use the compiler argument -Xjspecify-annotations=strict to enforce correct usage (this is the default starting with version 2.1.0 of the Kotlin compiler)
View originalRead the notes
How 1.3.0-alpha05 went

1.3.0-alpha04

Added 1
  • Added multiple commonly used matchers to the testing library
Changed 2
  • Updated Material3 shape to be a class with fields that hold the actual Corner value, same as in Wear Compose
  • Updated Material3 colors to include ColorScheme concept, same as in Wear Compose
View originalRead the notes
How 1.3.0-alpha04 went

1.3.0-alpha03

Added 1
  • Add LayoutElementAssertionsProvider, LayoutElementAssertion and LayoutElementMatcher to the testing library
View originalRead the notes
How 1.3.0-alpha03 went

1.2.1

Security 1
  • Compiles against protobuf 4.28.2 to address CVE-2024-7254.
View originalRead the notes
How 1.2.1 went

1.3.0-alpha02

Added 1
  • Initial version of Material 3 library, including text, edgeButton, buttonGroup and primaryLayout components
Security 1
  • androidx compiles against protobuf 4.28.2 to address CVE-2024-7254
View originalRead the notes
How 1.3.0-alpha02 went

1.3.0-alpha01

Added 1
  • Enabled Roboto Flex font family in AndroidX Tile renderer.
Changed 1
  • Clarified that Roboto and Roboto Flex font family names availability is device dependent.
View originalRead the notes
How 1.3.0-alpha01 went

1.2.0

Added 3
  • FontStyle supports additional font support for variable axes and an improved font selection API to support upcoming Flex fonts
  • Transformation modifier offering translation, rotation and scaling with or without animations
  • Specifying different horizontal and vertical values for each corner radius
Changed 2
  • Touch targets of any element using the Clickable modifier are extended to be at least 48dp by 48dp for improved accessibility
  • PrimaryLayout and EdgeContentLayout add setResponsiveContentInsetEnabled to better support responsive behavior across different screen sizes and improve Tiles consistency
View originalRead the notes
How 1.2.0 went

1.2.0-rc01

Changed 1
  • Documentation for Material layouts has been updated to include visuals from the relevant page for easier understanding of layouts.
Fixed 1
  • The standard Material Chip can be used as an icon only when neither the primary nor the secondary label is passed in.
View originalRead the notes
How 1.2.0-rc01 went

1.2.0-beta01

Added 5
  • FontStyle supports setting font variation settings such as FontSetting.weight and FontSetting.width
  • FontStyle supports tabular numerals via the FontSetting.tnum font feature setting, giving all numeric characters the same width
  • Improved font selection APIs allow specifying preferred font family names to be used, to support upcoming flex fonts
  • New Transformation modifier offers translation, rotation and scaling of LayoutElement, which can be animated using dynamic values
  • setArcDirection with Clockwise, CounterClockwise and Normal options is available on all arc elements (Arc, ArcLine and ArcText) to support different layout directions such as LTR and RTL
Changed 3
  • Corner modifier supports specifying each CornerRadius with separate horizontal and vertical values to allow asymmetric corners
  • PrimaryLayout and EdgeContentLayout gained setResponsiveContentInsetEnabled to better support responsive behavior across screen sizes and improve Tiles consistency, with a linter warning and quick fix suggesting its usage
  • Parameter passed to FontSetting.width must now be positive
Fixed 2
  • Touch target accessibility improved by extending the tappable area of any element using the Clickable modifier to be at least 48dp by 48dp
  • Scaling and non-scaling of Material Text improved for Android 14's non-linear font scaling
Removed 1
  • Default font family name (DEFAULT_SYSTEM_FONT) removed, as it is implied by not using the preferredFontFamilies API
View originalRead the notes
How 1.2.0-beta01 went

1.2.0-alpha05

Added 1
  • Add hasText method to Material.CompactChip to check whether the text content has been set
Changed 2
  • FontFamily constants are moved to be in FontStyle instead of its Builder class
  • Update FontSetting.weight and FontSetting.width API to include Range annotations and change weight's parameter to be int
Fixed 1
  • Non-scalable texts in Material library now work correctly with Android 14's non-linear font scaling
View originalRead the notes
How 1.2.0-alpha05 went

1.2.0-alpha04

Added 4
  • Added asymmetrical corners API to specify the radius of each corner separately with two values
  • Added font feature setting to FontSetting, such as setting the font to be tabular
  • Added font variation setting to FontSetting, such as setting a custom width for variable fonts
  • Added font family API to FontStyle to specify an ordered list of font families to be used
Changed 2
  • Renamed constants for space height between content and secondary label in Material's LayoutDefaults from being prefixed with "Edge content" to a more generic name, as they apply to both PrimaryLayout and EdgeContentLayout
  • Renamed variable font axes naming from axisName to axisTag
View originalRead the notes
How 1.2.0-alpha04 went

1.2.0-alpha03

Added 1
  • Added API for setting custom weight values for FontStyle.
Fixed 1
  • Fixed the failure in getTouchDelegateInfo caused by an empty target map.
View originalRead the notes
How 1.2.0-alpha03 went

1.2.0-alpha02

Added 7
  • Support for disabling ripple feedback on individual clickable elements
  • PlatformDataValues.Builder.putAll method allows merging one PlatformDataValue into another
  • Material Text can set whether to use scalable size (grows when user font size is changed) or not
  • Option to set content description to TitleChip
  • Getter on DynamicDataNode to retrieve node cost used when acquiring dynamic node quota; nodes with fixed values have a cost of 0, all other nodes have a cost of 1
  • Lint rule reporting a warning when PrimaryLayout is used without setResponsiveContentInsetEnabled, with a quick fix
  • Limit on the number of dynamic expression nodes
Changed 3
  • ArcDirectionProp Builder now expects a value in the constructor
  • Text#setIsScalable is renamed to Text#setScalable
  • Counting logic removed from the NO_OP_QUOTA_MANAGER
Fixed 2
  • CompactChip works correctly with icon only, and the API is updated to allow this option
  • Potential duplicate platform data during initialization
Removed 1
  • The API for transformation has been removed from ArcModifiers
View originalRead the notes
How 1.2.0-alpha02 went

1.2.0-alpha01

Added 4
  • ProtoLayout Arc elements can now be given an ArcDirection (Clockwise, Counterclockwise or Normal), which fixes their behaviour on RTL layouts when applied to Arc, ArcLine or ArcText.
  • EdgeContentLayout has a new setResponsiveContentInsetEnabled setter that keeps the primary label at a fixed position on top and applies responsive inset to labels.
  • PrimaryLayout.setResponsiveContentInsetEnabled adds responsive inset to the primary label, secondary label and bottom chip so content does not go off the screen edge.
  • A method was added to remove outer margins from CircularProgressIndicator so it can be used as a smaller component.
Changed 1
  • The Tiles renderer now excludes font padding on all text elements by default, with no option to include it.
Fixed 3
  • Fixed a Text alignment issue when ellipsize, letter spacing and center alignment are all used on Text.
  • Added a workaround for a Skia arc drawing issue.
  • Fixed ArcLine drawing direction for RTL layouts.
View originalRead the notes
How 1.2.0-alpha01 went

1.1.0

Added 4
  • Gradient support in ProtoLayout, along with better representation of arc lengths larger than 360 degrees in ArcLine
  • Date-time formatting supports different time zones for dynamic data types
  • Spacer supports expanded dimensions with an optional weight
  • Schema version requirement annotation added to all ProtoLayout APIs
Changed 3
  • Text autosizing and ellipsizing options improved to better handle truncated text
  • Target area of any Clickable element extended to 48 dp x 48 dp to satisfy accessibility requirements
  • Font padding is turned off by default and is the only behavior across all Text elements and Material components that contain text
View originalRead the notes
How 1.1.0 went

1.1.0-rc01

Fixed 3
  • PlatformTimeUpdateNotifierImpl now ticks immediately after enabling update.
  • CircularProgressIndicator is fixed for RTL layouts and now always goes clockwise.
  • A workaround is added for a Skia arc drawing issue.
View originalRead the notes
How 1.1.0-rc01 went

1.1.0-beta01

Added 10
  • ArcLine supports gradients by adding Brush with SweepGradient
  • ArcLine supports a shadow on the cap via Shadow on the existing StrokeCap to better represent arcs longer than 360 degrees
  • DynamicInstant supports zoned date-time formatting
  • DynamicInstant and DynamicDuration can be used as state or platform data types
  • Text autosizing via FontStyle.setSizes, where text size automatically scales based on the space available inside the parent
  • TEXT_OVERFLOW_ELLIPSIZE text overflow option
Changed 1
  • The target area of every element with Clickable is extended to at least 48x48 in the renderer to better meet accessibility requirements
Deprecated 1
  • TEXT_OVERFLOW_ELLIPSIZE_END is deprecated in favour of TEXT_OVERFLOW_ELLIPSIZE
View originalRead the notes
How 1.1.0-beta01 went

1.1.0-alpha04

Added 1
  • Renderer now supports the TEXT_OVERFLOW_ELLIPSIZE option
Changed 5
  • VersionInfo class now implements the Comparable interface
  • Font padding is now turned off by default on all Text elements
  • FontStyle#setSizes now accepts int instead of SpProp arguments
  • An exception is thrown when encountering an Undefined or Unrecognized enum value
  • DynamicTypeBindingRequest has been refactored
Fixed 1
  • The result of an expression is invalidated when it yields an invalid numeric value (NaN or infinite) or throws an ArithmeticException
Removed 2
  • AndroidTextStyle and related setters have been removed from the public API
  • Modifier.hidden has been replaced with Modifier.visible
Deprecated 1
  • Text overflow option TEXT_OVERFLOW_ELLIPSIZE_END is deprecated in favour of the new API TEXT_OVERFLOW_ELLIPSIZE, which has very similar behavior
View originalRead the notes
How 1.1.0-alpha04 went

1.1.0-alpha03

Added 8
  • Add experimental support for dynamically hiding and unhiding layout elements
  • Add dynamic value support to BoolProp
  • Add schema version requirement annotation to ProtoLayout APIs
  • Add a new TextOverflow option for ellipsizing Text in a fixed parent container even when max lines is not reached but there is not enough space for the Text
  • Add helper method DimensionBuilders.weight for building ExpandedDimensionProp with weight
  • DynamicInstant and DynamicDuration can be used as state or platform data types
  • Spacer now supports Expanded dimension for width and height
  • Support click target area extension in Renderer
Changed 1
  • Hide DynamicZonedDateTime from the API and move all its operations to DynamicInstant
View originalRead the notes
How 1.1.0-alpha03 went

1.1.0-alpha02

Added 6
  • Added an ArcLine StrokeCap Shadow field to the API.
  • Extended the API to allow specifying Spacer's width or height to expand.
  • Added an experimental API to automatically scale text size based on the space available inside the parent.
  • Added support for a minimum clickable size.
  • Added renderer support for StrokeCap Shadow.
  • Added renderer support for Sweep Gradient in ArcLine.
View originalRead the notes
How 1.1.0-alpha02 went

1.1.0-alpha01

Added 5
  • Brush option for Arcline, with support for SweepGradient.
  • Support for zoned date-time formatting.
  • Protos and Java wrappers required for zoned date-time formatting.
  • Getters for reading back the value stored in a DynamicDataValue.
  • Setter for positioning the edge content in EdgeContentLayout so it can be positioned before other content.
Changed 1
  • Reduced delay between a layout becoming visible and its pipeline nodes being initialized.
Fixed 3
  • Expression with multiple time data source registrations not being updated immediately.
  • Root element not being centered during diff updates.
  • Unset (or empty) layout constraint values being ignored.
View originalRead the notes
How 1.1.0-alpha01 went

1.0.0

Added 3
  • ProtoLayout library introduces APIs for creating layouts and expressions that can be used across different Wear OS surfaces
  • Tiles library uses the ProtoLayout APIs to support platform data binding for faster tile data updates
  • Tiles library uses the ProtoLayout APIs to support animations
View originalRead the notes
How 1.0.0 went

1.0.0-rc01

Changed 3
  • Limited the maximum depth of a ProtoLayout's layout to 30 nested LayoutElements
  • Added a check that throws an exception when a DynamicColor is set for a SpanText
  • Clarified that the DAILY_CALORIES data source unit is kcal
Removed 1
  • Removed the setLayoutConstraintForDynamicAnchorAngle and getLayoutConstraintForDynamicAnchorAngle methods from the Arc element, which were added by mistake and had no effect on the layout
View originalRead the notes
How 1.0.0-rc01 went

1.0.0-beta01

Added 2
  • Allow setting clock for time binding tests
  • CompactChip and TitleChip support adding an icon
Changed 7
  • PlatformDataReceiver.onData() and StateBuilders.Builder.addKeyToValueMapping accept type-safe mapping of DynamicDataKey to DynamicDataValue instead of unsafe generics, with DynamicDataValue now typed with its DynamicType
  • HEART_RATE_ACCURACY_X constants moved to the root of PlatformHealthSources to match other Android constants positioning
  • HEART_RATE_ACCURACY_X int constants are used directly in DynamicHeartRateAccuracy.constant() and DynamicHeartRateAccuracy.dynamicDataValueOf() instead of the value constant
  • PlatformTimeUpdateNotifier#setReceiver receives Runnable instead of a Supplier function and Executor to notify on
  • Parameter type in PlatformTimeUpdateNotifier#setReceiver changed from Callable to Supplier
  • Prop messages with dynamic fields updated to use oneof instead
  • Setters implementation reused for overloads that have setters
Fixed 2
  • PlatformHealthSources.Constants class was instantiable by mistake and is no longer instantiable
  • Fingerprints are properly recorded in setters that have overloads
View originalRead the notes
How 1.0.0-beta01 went

1.0.0-alpha11

Added 2
  • Added a PlatformDataKey for heart rate accuracy
  • Added a setter for perfectly aligning the label to all chip components
Changed 10
  • Renamed StateBuilders#getIdToValueMapping to getKeyToValueMapping and changed its return type to Map<AppDataKey<?>,DynamicDataValue>
  • Made StateStore a final class
  • Replaced the TimeGateway interface with PlatformTimeUpdateNotifier in the protolayout-expression-pipeline library, which provides the desired frequency for updating time data
  • Renamed register/unregisterForData in PlatformDataProvider to set/clearReceiver
  • Renamed getExcludeFontPadding to hasExcludeFontPadding in Material Text
  • All chip components now have the minimum tappable target applied
View originalRead the notes
How 1.0.0-alpha11 went

1.0.0-alpha10

Added 5
  • Add AppDataKey for accessing app pushed state
  • Add PlatformDataKey for accessing platform data
  • Add namespace support in StateStore
  • Support Equal and NotEqual operations for DynamicBool
  • Added support for ARGB_8888 format for inline image resources
Changed 7
  • FontStyles class is now final
  • Hide Action#Builder nested interface from Action interface, as implementations of Builder are already provided by LoadAction and LaunchAction classes
  • Allow using DynamicFloat with FloatProp, which does not require layout constraints since it is not used as a layout-changing prop
  • Rename StateEntryValue to DynamicDataValue and update the state APIs to use DynamicDataKey
  • Limit the number of entries allowed in the StateStore to MAX_STATE_ENTRY_COUNT; creating or updating a StateStore with more entries throws an IllegalStateException
  • Hide OnLoadTrigger and OnConditionMetTrigger classes, and rename setTrigger to setCondition for OnConditionMetTrigger
  • AnimatedVectorDrawable APIs are marked as experimental because ProtoLayout renderers do not support the full set of AnimatedVectorDrawable features
Removed 1
  • The LoadAction and SetStateAction actions are removed as they were not really supported yet
Deprecated 1
  • LayoutElementBuilders#FontStyles has been deprecated; use androidx.wear.protolayout.Typography or create your own FontStyle instead
View originalRead the notes
How 1.0.0-alpha10 went

1.0.0-alpha09

Added 7
  • Added an experimental extension layout element, which requires a renderer extension capable of understanding the layout element to be used
  • Added StrokeCap support for ArcLine
  • Added support for Conditional Instant operation
  • Added support for Conditional Duration operation
  • Added support for creating duration from seconds
  • Added the ability to cap the size of bound data types
  • Added support for dynamic content description in protolayout-material
Changed 1
  • Changed duration and delay in AnimationParameters to use long and @IntRange
Removed 1
  • Removed enablePlatformSource and disablePlatformSource methods from DynamicTypeEvaluator; the caller is now responsible for updates
View originalRead the notes
How 1.0.0-alpha09 went

1.0.0-alpha08

Added 6
  • AndroidTextStyle has been added to LayoutElementBuilders.
  • Support for setting excluding font padding in ProtoLayout Material Text.
  • ARGB_8888 is now supported for inline images.
  • DynamicColor now supports onCondition operation.
  • Support custom duration for reverse animation.
  • The SemanticDescription modifier has been added.
Changed 5
  • ContentDescription is no longer bindable.
  • The DynamicBool.isFalse() method is replaced with DynamicBool.negate().
  • NaN DynamicFloat values and narrowing a DynamicInt32 to a DynamicFloat now emit an invalid dynamic result.
  • Int and float formatters now use the Builder pattern.
  • Length of Strings in dynamic expressions is now capped.
Fixed 1
  • Gradle dependencies are now correctly set to api instead of implementation when required.
Removed 3
  • The DynamicBool.isTrue() method is removed.
  • Fallback static value has been removed from animatable fields.
  • DynamicTypeValueReceiver#onPreUpdate has been removed.
View originalRead the notes
How 1.0.0-alpha08 went

1.0.0-alpha07

Added 3
  • Add dynamic value support to StringProp
  • Mark bindable layout elements
  • Added DynamicTypeEvaluator.Builder instead of constructor arguments to allow more optional arguments, including ObservableStateStore which now defaults to an empty store
Changed 3
  • sensorGateway#registerSensorGatewayConsumer takes data type as a parameter instead of method in Consumer
  • ObservableStateStore has been renamed to StateStore
  • Refactored order of parameters in DynamicTypeEvaluator
Fixed 1
  • Correctly propagate signals from platform sensor sources to downstream nodes
View originalRead the notes
How 1.0.0-alpha07 went

1.0.0-alpha06

Added 6
  • An experimental API for using heart rate and daily steps in dynamic expressions
  • Support for reverse and forward delay for animations
  • DynamicColor support to Border and Background
  • Dynamic value support to types in DimensionBuilder
  • LoadActionListener added to ProtoLayoutViewInstance
  • FloatNodesTest
Changed 1
  • Layout and components from tiles-material are moving to protolayout-material
Fixed 1
  • Renderer crash when unable to load structured bitmap
View originalRead the notes
How 1.0.0-alpha06 went

1.0.0-alpha05

Added 3
  • Added an experimental "content update" animation to the Modifiers object that triggers when the element or one of its children changes during a layout update
  • Added forwardRepeatDelayMillis and reverseRepeatDelayMillis to Repeatable
  • Added the startEvaluation method to BoundDynamicType to trigger evaluation after the dynamic type is bound
Changed 2
  • Renamed delayMillis in AnimationSpec to startDelayMillis
  • DynamicTypeEvaluator.bind methods now accept an Executor
Fixed 1
  • The Animator object is reused for subsequent animations of a single element
View originalRead the notes
How 1.0.0-alpha05 went

1.0.0-alpha04

Added 1
  • Renderer schema version and font scale are added to DeviceParameters, which can be used to conditionally create layouts.
Changed 1
  • ObservableStateStore now informs the listeners when a key is removed too.
View originalRead the notes
How 1.0.0-alpha04 went
View all

Discussion