May 2022
Intermediate to advanced
688 pages
20h 12m
English
CriminalIntent already has a simple app bar in place (Figure 15.2).
Figure 15.2 The app bar
This is because Android Studio sets up all new projects with activities that extend from AppCompatActivity to include an app bar by default. It does this by:
adding the Jetpack AppCompat and Material Components library dependencies
applying one of the themes that includes an app bar
Open your app/build.gradle file (the one labeled (Module: CriminalIntent.app)) to see the AppCompat and Material Components dependencies:
dependencies {
...
implementation 'androidx.appcompat:appcompat:1.4.1'
implementation ...Read now
Unlock full access