louiscad
02/26/2022, 10:27 PMremember { … }
, State
, and other Compose facilities for interactive and animated Watch Faces. Is there a reason we don't have such an API? I'd think maybe there would be some performance concerns, or other potential issues, or maybe just bandwidth?
I'm wondering about that because I am pondering about hacking around to use Compose to control what gets rendered on my Watch Face.yschimke
02/26/2022, 10:37 PMyschimke
02/26/2022, 10:38 PMyschimke
02/26/2022, 10:40 PMyschimke
02/26/2022, 10:44 PMyschimke
02/26/2022, 10:45 PMyschimke
02/26/2022, 10:53 PMlouiscad
02/27/2022, 1:02 AMyschimke
02/27/2022, 9:57 AMyschimke
02/27/2022, 10:00 AMoverride fun render(
canvas: android.graphics.Canvas,
bounds: Rect,
zonedDateTime: ZonedDateTime
) {
In the render method I did two things,
a) draw the current state of the bitmap to avoid a slow render call.
b) update the time (trimmed to seconds or minutes) in a MutableState.yschimke
02/27/2022, 10:00 AMyschimke
02/27/2022, 10:01 AMyschimke
02/27/2022, 10:03 AMyschimke
02/27/2022, 10:05 AMlouiscad
02/27/2022, 12:33 PMZach Klippenstein (he/him) [MOD]
03/01/2022, 4:18 PMJohn Nichol
03/01/2022, 4:57 PMlouiscad
03/01/2022, 5:03 PMJohn Nichol
03/01/2022, 5:08 PMlouiscad
03/01/2022, 5:09 PMlouiscad
03/01/2022, 5:12 PM