Guest User

Untitled

a guest
Sep 15th, 2021
43
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Kotlin 0.50 KB | None | 0 0
  1.  
  2.             actions.forEach { item: TopBarAction ->
  3.                 Icon(painter = painterResource(id = item),contentDescription = "")
  4.             }
  5.  
  6.  
  7. sealed class TopBarAction(@DrawableRes icon: Int, function: @Composable RowScope.() -> Unit){
  8.     object popupMenu : TopBarAction(icon = R.drawable.ic_pop_up_menu,function = {})
  9.     object search : TopBarAction(icon = R.drawable.ic_bg_white_search,function = {})
  10.     object add : TopBarAction(icon = R.drawable.ic_bg_white_add_with_circle,function = {})
  11. }
Advertisement
Add Comment
Please, Sign In to add comment