Wear Tiles | Android Developers
source link: https://developer.android.com/jetpack/androidx/releases/wear-tiles
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
Wear Tiles
Create applications for Wear OS by Google smartwatches.
Latest Update Current Stable Release Next Release Candidate Beta Release Alpha ReleaseJuly 21, 2021
-
-
-
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:
dependencies {
// Use to implement support for wear tiles
implementation "androidx.wear.tiles:tiles:1.0.0-alpha09"
// Use to preview wear tiles in your own app
debugImplementation "androidx.wear.tiles:tiles-renderer:1.0.0-alpha09"
}
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.0.0
Version 1.0.0-alpha09
July 21, 2021
androidx.wear.tiles:tiles:1.0.0-alpha09
, androidx.wear.tiles:tiles-proto:1.0.0-alpha09
, and androidx.wear.tiles:tiles-renderer:1.0.0-alpha09
are released. Version 1.0.0-alpha09 contains these commits.
New Features
- Added layout checkers to Wear Tiles' renderer. (I3a869)
- These are used to validate best practises in your tile. To begin with, these will raise a warning if your tile does not contain any elements with a
Semantics
modifier.
- These are used to validate best practises in your tile. To begin with, these will raise a warning if your tile does not contain any elements with a
- Added documentation for
DefaultTileProviderClient
andTestingTileProviderClient constructors
. (I9f4b9)
API Changes
- Renaming in TileProviderClient (I0ec36):
getApiVersion
->requestApiVersion
tile/resourcesRequest
->requestTile/Resources
onTileFooEvent
->sendOnTileFooEvent
- Added layout checkers to Wear Tiles' renderer. (I3a869)
Bug Fixes
- Ensure that a LaunchAction target does not have special permissions. (I39136)
Version 1.0.0-alpha08
June 30, 2021
androidx.wear.tiles:tiles:1.0.0-alpha08
, androidx.wear.tiles:tiles-proto:1.0.0-alpha08
, and androidx.wear.tiles:tiles-renderer:1.0.0-alpha08
are released. Version 1.0.0-alpha08 contains these commits.
New Features
- Spannables now support line_height instead of line_spacing.
API Changes
- Add support for line_height in Spannables, remove line_spacing. (Ibeb54)
- Code using line_spacing should be ported to use line_height instead.
Bug Fixes
- Fix bug when using proportional dimensions. (I37ace)
- Fix bug preventing Text elements having content descriptions. (Id2c7d)
Version 1.0.0-alpha07
June 16, 2021
androidx.wear.tiles:tiles:1.0.0-alpha07
, androidx.wear.tiles:tiles-proto:1.0.0-alpha07
, and androidx.wear.tiles:tiles-renderer:1.0.0-alpha07
are released. Version 1.0.0-alpha07 contains these commits.
API Changes
- Add
TileProviderClient
interface, and exposeDefaultTileProviderClient
, allowing implementations to bind to aTileProviderService
interface. (I69165)
Version 1.0.0-alpha06
June 2, 2021
androidx.wear.tiles:tiles:1.0.0-alpha06
, androidx.wear.tiles:tiles-proto:1.0.0-alpha06
, and androidx.wear.tiles:tiles-renderer:1.0.0-alpha06
are released. Version 1.0.0-alpha06 contains these commits.
API Changes
- All Builder classes now contain getters for all properties. Note that these are intended for testing purposes only (I9d155)
- Package change: Classes in
androidx.wear.tiles.builders
have been moved toandroidx.wear.tiles
. - Add experimental tint support to Tiles. (I38929)
- Renamed
LayoutElementBuilders.HALIGN_*
toLayoutElementBuilders.HORIZONTAL_ALIGN_*
(I67e58) - Renamed
LayoutElementBuilders.VALIGN_*
toLayoutElementBuilders.VERTICAL_ALIGN_*
(I67e58) - Renamed
LayoutElementBuilders.SPAN_VALIGN_*
toLayoutElementBuilders.SPAN_VERTICAL_ALIGN_*
(I67e58) - Added builder classes for Requests and Events. (Ib5cf4)
- Migrated
TileProviderService
to use request and event classes fromRequestBuilders
andEventBuilders
, rather thanRequestReaders
/EventReaders
(e.g.onTileRequest
now provides you with aRequestBuilders.TileRequest
, rather thanRequestReaders.TileRequest
). (I46ea1)
Bug Fixes
- Fix bug in async image loading for Tiles renderer. (Iad9b0)
- Fixed layout bug when placing an image with width or height set to
expand()
in aBox
with width or height set towrap()
. (I33770)
Version 1.0.0-alpha05
May 18, 2021
androidx.wear.tiles:tiles:1.0.0-alpha05
, androidx.wear.tiles:tiles-proto:1.0.0-alpha05
, and androidx.wear.tiles:tiles-renderer:1.0.0-alpha05
are released. Version 1.0.0-alpha05 contains these commits.
API Changes
- Removed getTileId from incoming tile events (
TileAddEvent
,TileRemoveEvent
,TileEnterEvent
,TileLeaveEvent
,TileRequest
). (Ifbba2) - Renamed
ImageResource#setAndroidResourceByResid
tosetAndroidResourceByResId
(I4ba6e) - Renamed
TimelineManager#deInit
to close, and implementedAutoCloseable
. (I5dff2)
Version 1.0.0-alpha04
May 5, 2021
androidx.wear.tiles:tiles:1.0.0-alpha04
, androidx.wear.tiles:tiles-proto:1.0.0-alpha04
, and androidx.wear.tiles:tiles-renderer:1.0.0-alpha04
are released. Version 1.0.0-alpha04 contains these commits.
API Changes
- Hidden concrete TileProviderService classes.
- Made TileUpdateRequester take a
Class<? extends TileProviderService>
. (Ib7cca)
- Made TileUpdateRequester take a
- Added ability to add extras to AndroidActivity. (I748f4)
Tiles Version 1.0.0-alpha03
April 21, 2021
androidx.wear.tiles:tiles:1.0.0-alpha03
, androidx.wear.tiles:tiles-proto:1.0.0-alpha03
, and androidx.wear.tiles:tiles-renderer:1.0.0-alpha03
are released. Version 1.0.0-alpha03 contains these commits.
API Changes
- Rename
TileManager
->TileClient
- Rename
TileManager#create
->TileClient#connect
(I91839)
- Rename
Bug Fixes
- Added Proguard rules to ensure
tiles
andtiles-renderer
work properly with Proguard enabled (Ie3d85)
Version 1.0.0-alpha02
April 7, 2021
androidx.wear.tiles:tiles:1.0.0-alpha02
, androidx.wear.tiles:tiles-proto:1.0.0-alpha02
, and androidx.wear.tiles:tiles-renderer:1.0.0-alpha02
are released. Version 1.0.0-alpha02 contains these commits.
API Changes
androidx.wear:wear-tiles
has moved groups, and should now be referred to asandroidx.wear.tiles:tiles
androidx.wear:wear-tiles-renderer
has moved groups, and should now be referred to asandroidx.wear.tiles:tiles-renderer
TileRenderer.LoadActionListener
now consumes an instance ofandroidx.wear.tiles.builders.StateBuilders.State
rather thanandroidx.wear.tiles.proto.StateProto.State
.TileRenderer
now accepts Tile resources fromandroidx.wear.tiles.builders.ResourceBuilders.Resources
, rather than an instance ofandroidx.wear.tiles.renderer.ResourceAccessors
.
Bug Fixes
- Fixed inability to use
LoadActionListener
, as it exposed an internal class.
Version 1.0.0-alpha01
March 10, 2021
androidx.wear:wear-tiles:1.0.0-alpha01
, androidx.wear:wear-tiles-proto:1.0.0-alpha01
, and androidx.wear:wear-tiles-renderer:1.0.0-alpha01
are released. Version 1.0.0-alpha01 contains these commits.
New Features
- The Wear Tiles Renderer library provides functionality to build custom Tiles for Wear OS devices, along with the classes that allow the system to fetch your Tile and display it right next to your watch face.
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK