Is it possible to draw to a Compose UI to a androi...
# compose
y
Is it possible to draw to a Compose UI to a android.graphics.Canvas directly, without using AbstractComposeView or generally having it directly attached to a View? Do any of the test functionality do something similar? I was curious whether Compose is usable with an API like Wear watchfaces that has a service that renders to Canvas directly
androidx.wear.watchface.CanvasRenderer.render(canvas: Canvas, bounds: Rect, zonedDateTime: ZonedDateTime)
.
Also happy to find out if this is a bad idea for some reason...
z
That isn’t really practical,
AbstractComposeView
does a ton of other integrations with the view system than just drawing.
Compose for Wear is being worked on though