https://kotlinlang.org logo
#android
Title
# android
a

Apex

05/17/2020, 7:11 PM
Does anyone have an example of onboarding flow using navigation component ? For example a intro slider using viewpager ? I have seen the conditional navigation docs but I don't understand how this would fit into what the docs recommend.
r

Ryan

05/17/2020, 9:51 PM
just use a view pager and instantiate fragments in the adapter
a

Apex

05/18/2020, 5:59 AM
But my doubt is that would require it being the start destination , something the documentation recommends not to do.
p

pascalchidi

06/09/2020, 7:41 PM
Ok
You can as well use a ViewPager with just layouts no Fragment. Difference is, you might have issues adding click event to views on each layout. Rather your events will be on the parent Activity. whivh might be a finish btn. In this case, the viewPager is just a visual info of your app