O'Reilly logo

Learning Android Google Maps by Raj Amal W.

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Implementation

This is the most exciting part of this chapter. In a nutshell, our application has a single activity with four fragments. Also, it has a SQLite database with a single table to store marker data.

Defining the app theme

The app theme can be customized by using the styles.xml file in res | values | styles.xml.

The primary color is the color of the action bar. The primary dark color is the color of the status bar. The accent color is the color for FAB. The sample app looks like the following image:

Defining the app theme

In the preceding screenshot, you can see the usage of primary, primary dark, and accent colors.

The style is defined as:

 <style name="AppTheme" ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required