-
-
Save Dannyk-kago/f738ff9d32424d8a6d215de352e99302 to your computer and use it in GitHub Desktop.
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
sealed class BottomBarScreen ( | |
var route:String, | |
var title:String, | |
var icon: Int | |
) { | |
object Home : BottomBarScreen( | |
route = "home", | |
title = "Home", | |
icon = R.drawable.ic_home | |
) | |
object Search : BottomBarScreen( | |
route = "search", | |
title = "Search", | |
icon = R.drawable.ic_search | |
) | |
object Post : BottomBarScreen( | |
route = "post", | |
title = "Post", | |
icon = R.drawable.ic_baseline_add_box | |
) | |
object Favorite : BottomBarScreen( | |
route = "favorite", | |
title = "Favorite", | |
icon = R.drawable.ic_favorite | |
) | |
object Profile : BottomBarScreen( | |
route = "profile", | |
title = "Profile", | |
icon = R.drawable.ic_person | |
) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
initial code