I'm sure I'm missing something obvious, but when I add a preview, the preview looks like it's a phone... how do you change to a watch screen shape and size?
โ 1
s
Steve Bower [G]
11/11/2021, 3:09 PM
Hi - support for different Wear device shapes was recently released in the Chipmunk canary, but you won't have seen it if you're still on Arctic Fox or Bumblebee versions - see https://developer.android.com/studio/preview. Alternatively, you can set properties on the @Preview annotation to customize (e.g. to set width and height) - a good example of that is in https://developer.android.com/codelabs/compose-for-wear-os#1, see the previews for ReusableComponents.
๐๐ผ 1
๐ 4
g
Garan Jenkin
11/11/2021, 3:13 PM
Thanks Steve!
c
Chris Sinco [G]
11/11/2021, 7:04 PM
It seems we are still missing Wear devices for the Preview annotation in Chipmunk and likely are not going to have it until the next Studio release ๐