Returning to Compose after a 6 month hiatus. I wan...
# compose
t
Returning to Compose after a 6 month hiatus. I want to prototype a screen with 4 static buttons on the bottom (icon above text with an optional badge on some of them), clicking on buttons scrolls pages above to desired screen. I know this has seen a lot of flux... what's the current stock idiom I should be chasing? Is this a HorizontalPager or something else?
s
Yeah quite open ended 😄 What did you try so far and didn’t work? Or if not that, do you have a picture of how you want it to look like? It’d help.
t
Great question. The app I'd like to port from iOS looks like:
I'm trying to just decompose the visual pieces and gain experience with doing it in Compose (we have an Android version using Fragments etc done by a college student who was learning).
It seems to have a similar functionality , at first glance
s
Aha now this makes total sense. You are asking about navigation then. I'd also suggest taking a look at NowInAndroid, as they do this there too. But there may be a simpler sample there for sure!
And I would suggest you give this https://github.com/kiwicom/navigation-compose-typed Or this https://github.com/raamcosta/compose-destinations To make your life easier regarding typed navigation if you find that part annoying