Created
September 24, 2021 09:04
-
-
Save Ahmad-Hamwi/56daf93bd0d8fcb28eeaa3f06f9a9744 to your computer and use it in GitHub Desktop.
creating a list of categories, each category has a list of items
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private val categories = mutableListOf( | |
Category( | |
"Category 1", | |
Item("Item 1"), | |
Item("Item 2"), | |
Item("Item 3"), | |
Item("Item 4"), | |
Item("Item 5"), | |
Item("Item 6") | |
), | |
... | |
... | |
... | |
Category( | |
"Category 5", | |
Item("Item 1"), | |
Item("Item 2"), | |
Item("Item 4"), | |
Item("Item 5"), | |
), | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment