Join Slack
Powered by
In Compose do you typically inline define menu ite...
# compose
a
Alexander Black
08/05/2021, 3:53 PM
In Compose do you typically inline define menu items using maybe something like listOf(“menu item 1”, “menu item 2" … etc) or would you load menu items from a menu XML like you used to?
v
Vitaliy Zarubin
08/05/2021, 3:59 PM
This is the implementation of the option menu jetpack compose
👍 1
a
Alexander Black
08/05/2021, 4:02 PM
that’s interesting… so they are pulling menu items from Firebase?
v
Vitaliy Zarubin
08/05/2021, 4:03 PM
No, this is just an example of a/b tests with remote сonfig
a
Alexander Black
08/05/2021, 4:42 PM
👍
a
alorma
08/05/2021, 4:47 PM
There's an implementation i made that also manage items on overflow:
https://github.com/alorma/Extendend-material-compose-components/blob/main/components/src/main/java/com/alorma/components/buttons/TopAppBar.kt
👍 1
a
Alexander Black
08/05/2021, 5:03 PM
@alorma
Fantastic! Thank you for this.
2
Views
Open in Slack
Previous
Next