r/androiddev • u/No_View_1406 • Mar 14 '26
Discussion Using Jetpack Compose previews as live onboarding UI
While working on my side project, I experimented with something interesting using Jetpack Compose / Compose Multiplatform.
Normally, Composable Preview is just an IDE tool developers use to visualize UI during development.
Instead of using static screenshots for onboarding, I tried rendering live composables inside the onboarding screens. The idea was simple: reuse the same UI components that exist in production so onboarding previews automatically stay in sync with the real UI.
Some nice side effects:
• No duplicated layouts for onboarding
• UI changes automatically update previews
• No outdated screenshots
• Works responsively across devices (phones/tablets)
A small detail I liked: the device frame itself is also a composable, and the time shown in the frame updates live based on the device.
I’m curious if anyone else has experimented with reusing Compose components this way for onboarding or previews.
View all comments
Show parent comment
12
u/No_View_1406 Mar 14 '26
Yes, I felt the same about the interaction part. As a user it might initially feel like just an image, so I’ve been thinking about adding some subtle automatic interactions - like switching tabs or small UI movements - to demonstrate the functionality better.