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

doodla

07/22/2020, 11:50 PM
is there a compose way to do viewpagers/bottom navs?
t

Timo Drick

07/23/2020, 1:52 PM
It is different. So as far as i know you can build it on own very easy. The different parts are already there. TabRow/Tab and to switch between views you can just use a state and maybe a when? S.th. like that:
Copy code
when (selection) {
    <http://ConfigType.Info|ConfigType.Info> -> InfoView(show)
    ConfigType.Misc -> MiscView(config, config)
    ConfigType.Effects -> ImageEffectsView(config)
    ConfigType.AnimationMode -> AnimationModeView(config)
}
d

doodla

07/28/2020, 6:27 PM
Thanks!