Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- actions.forEach { item: TopBarAction ->
- Icon(painter = painterResource(id = item),contentDescription = "")
- }
- sealed class TopBarAction(@DrawableRes icon: Int, function: @Composable RowScope.() -> Unit){
- object popupMenu : TopBarAction(icon = R.drawable.ic_pop_up_menu,function = {})
- object search : TopBarAction(icon = R.drawable.ic_bg_white_search,function = {})
- object add : TopBarAction(icon = R.drawable.ic_bg_white_add_with_circle,function = {})
- }
Advertisement
Add Comment
Please, Sign In to add comment