https://kotlinlang.org logo
#compose
Title
# compose
s

Steve

10/23/2019, 10:44 PM
In order to get the live preview, do you have to have something with the @Preview annotation?
w

wasyl

10/23/2019, 10:46 PM
Yes, the
@Preview
annotation should be attached to a
@Composable
function with no parameters
s

Steve

10/23/2019, 10:47 PM
Ok. I was trying to go through the tutorial, and wasn't getting a preview
w

wasyl

10/23/2019, 10:49 PM
If you create new project from composable activity template it should work
s

Steve

10/23/2019, 10:50 PM
it did, but then I cleared the code to work alongside the tutorial
👍 1
and then about 3 steps down, it says to add the @Preview bit
2 Views