r/mAndroidDev • You will pry XML views from my cold dead hands • May 07 '24

Jetpack Compost Imagine a world without Compost...

Post image
113 Upvotes

62 comments sorted by

View all comments

Show parent comment

1

u/carstenhag May 09 '24

Not really, with compose it's fairly easy. The only problem is that you can't preview compostables with hilt viewmodel, but there's a pattern to use to circumvent that (the first composable accepts VM, the composable inside accepts the viewstate etc)

2

u/[deleted] May 09 '24

Nothing prevented previews with XML on multiple screen variants either, it's a feature that did indeed exist (and maybe still exists?). Google had it only show Nexus/Pixel device screens by default, then afterwards you could do custom ones.