Join Slack
I’m updating an old project dependencies and now the `TileLayoutPreview` don’t exists anymore. Where...
# compose-wear
t
Tgo1014
05/02/2024, 11:36 AM
I’m updating an old project dependencies and now the
TileLayoutPreview
don’t exists anymore. Where can I find an example of rendering a tile layout where it loads an image from the internet and have a working preview? 😄
y
yschimke
05/02/2024, 12:12 PM
It's still on the 0.5.x stable branch. On 0.6.x it's replaced by the official Wear Tiles Preview support.
t
Tgo1014
05/02/2024, 12:13 PM
I can’t find any samples on how to use the new preview. Do you know where I can find it?
y
yschimke
05/02/2024, 12:14 PM
https://github.com/android/wear-os-samples/blob/main/WearTilesKotlin/app/src/debug/java/com/example/wear/tiles/golden/GoldenTilesPreviewsRow1.kt
yschimke
05/02/2024, 12:15 PM
This was the commit that changed over -
https://github.com/android/wear-os-samples/commit/8302865fcf8a2ffba6bd25f4889305cfb9738ec7
t
Tgo1014
05/02/2024, 12:17 PM
Thanks a lot! Super helpful. Mine should be similar to the workout layout but with more buttons and loading images from the internet. Let’s see if I can make it work lol
4
Views
Open in Slack
Previous
Next
kotlinlang
A modern programming language that makes developers happier.
Powered by