The example discussed previously of using Compose ...
# compose-wear
y
The example discussed previously of using Compose DrawScope to share elements between Canvas and Tiles is now available in the Horologist library. API is still very experimental, mainly around pixels/dp params which I don't think is right yet. But let's you draw the same weekly goals chart to your app and tile. Design first in compose, use compose previews to edit the chart, and then reuse in a Tile.
🚀 3
t
Is this just possible with Canvas? Would it be possible some day in the future to make a tile using any composable?
y
Just Canvas.
Glance is the compose solution for tiles. Different elements, 1:1 with existing tile elements.
t
Could I transform a composable to Bitmap and then draw this Bitmap in the canvas? 😄 Still things like click wouldn’t work I guess
y
Technically something like paparazzi proves it is possible, but I wouldn't know how, and I wouldn't aim for that myself.
t
Just thinking of possibilities haha
y
Or https://github.com/PatilShreyas/Capturable if you render it in app first.
I think that's designed to let you email the content of a compose screen to users.