Sign in
https://tinyurl.com/hacksprintw20signin4
Link to ReadME + code:
https://tinyurl.com/hacksprintw2020
Slides:
https://tinyurl.com/hacksprintw5
its
Attendance Code
What we will cover today
Let’s talk about Gradle
But before that, what is a build system?
Back to Gradle
App Res
Source Code
Other Components
build.gradle
Fragments
What is a fragment?
Some differences...
However, they are different in that:
As such, an Activity is not dependant on Fragments, but Fragments are dependant on Activities.
Fragment:
Navigation Bar
Nav time!!!!!
https://www.uclapuritytest.com/
(disclaimer: all answers to the test is for demonstration purpose only)
Navigation Graph
StartFragment → GameFragment → ScoreFragment
NavHostFragment
MainActivity
NavHostFragment
GameFragment
StartFragment
ScoreFragment
contains
controls
I can swap different fragments in and out of the screen
NavHostFragment
MainActivity
NavHostFragment
GameFragment
StartFragment
ScoreFragment
contains
controls
provides
Our Navigation graph
Action