Skip to content

Commit

Permalink
lab04 in compose v3
Browse files Browse the repository at this point in the history
Cafeteria Screen crash handle
  • Loading branch information
AlmosF committed Jul 25, 2024
1 parent 1f35274 commit 8d0b636
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 10 deletions.
Binary file modified docs/laborok/04-android-ui-fragments/assets/datepicker.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/laborok/04-android-ui-fragments/assets/holiday1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/laborok/04-android-ui-fragments/assets/menu.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/laborok/04-android-ui-fragments/assets/profile1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/laborok/04-android-ui-fragments/assets/profile2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
20 changes: 10 additions & 10 deletions docs/laborok/04-android-ui-fragments/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -133,13 +133,7 @@ class MainActivity : ComponentActivity() {
enableEdgeToEdge()
setContent {
WorkplaceAppTheme {
Scaffold(
modifier = Modifier.fillMaxSize(),
topBar = { TopBar() }
)
{ innerPadding ->
NavGraph(innerPadding)
}
NavGraph()
}
}
}
Expand Down Expand Up @@ -183,7 +177,7 @@ class MainActivity : ComponentActivity() {
super.onCreate(savedInstanceState)
enableEdgeToEdge()
setContent {
WorkplaceAppFinalTestTheme {
WorkplaceAppTheme {
NavGraph()
}
}
Expand Down Expand Up @@ -364,16 +358,22 @@ fun NavGraph(
){
...
composable("profile"){
ProfileScreen(modifier = Modifier.padding(paddingValues))
ProfileScreen()
}

composable("holiday"){
HolidayScreen(modifier = Modifier.padding(paddingValues))
HolidayScreen()
}
composable("cafeteria"){
/*TODO*/
}
}
}
```

!!!note "Cafeteria"
A Cafeteria képernyőre navigációt előre beírtuk, hogy a labor végén a gombra való kattintásnál ne crasheljen az alkalmazás. Ezt a funkciót mindenki tudja otthon módosítani gyakorlás képpen.

Indítsuk el az alkalmazást. Mostmár a felső két gombnak működnie kellene.

!!!example "BEADANDÓ (1 pont)"
Expand Down

0 comments on commit 8d0b636

Please sign in to comment.