Android app module for Zeichen.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

45 lines
1.4 KiB

  1. package sh.modal.apps.zeichen.components
  2. import androidx.compose.material.BottomNavigation
  3. import androidx.compose.material.BottomNavigationItem
  4. import androidx.compose.material.Icon
  5. import androidx.compose.material.Text
  6. import androidx.compose.material.icons.Icons
  7. import androidx.compose.material.icons.outlined.Delete
  8. import androidx.compose.material.icons.outlined.Note
  9. import androidx.compose.material.icons.outlined.Person
  10. import androidx.compose.runtime.Composable
  11. import androidx.compose.ui.tooling.preview.Preview
  12. import sh.modal.apps.zeichen.ui.theme.ZeichenTheme
  13. @Composable
  14. fun Navigation() {
  15. BottomNavigation {
  16. BottomNavigationItem(
  17. icon = { Icon(Icons.Outlined.Note, contentDescription = null) },
  18. label = { Text("Notes") },
  19. selected = true,
  20. onClick = { /*TODO*/ }
  21. )
  22. BottomNavigationItem(
  23. icon = { Icon(Icons.Outlined.Delete, contentDescription = null) },
  24. label = { Text("Bin") },
  25. selected = false,
  26. onClick = { /*TODO*/ }
  27. )
  28. BottomNavigationItem(
  29. icon = { Icon(Icons.Outlined.Person, contentDescription = null) },
  30. label = { Text("User") },
  31. selected = false, onClick = { /*TODO*/ }
  32. )
  33. }
  34. }
  35. @Preview(showBackground = true)
  36. @Composable
  37. fun DefaultPreview() {
  38. ZeichenTheme {
  39. Navigation()
  40. }
  41. }