is there a way to set the @Preview api level to de...
# android-studio
t
is there a way to set the @Preview api level to default to 33 without having to change every single one? I found that I started having rendering problems everywhere, but adding apiLevel=33 made my previews work again, but I'd prefer to not have to edit every single preview
c
There is not a way to do it directly in the Preview API, but you could create a multi-preview and set only one preview to API 33, and use the multi-preview annotation instead
For example
Copy code
@Preview(apiLevel = 33)
annotation class Api33Preview

@Api33Preview
@Composable
fun HelloWorldPreview() {
    Text("Hello World")
}
👍 1
t
gratitude thank you 🙏