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:
In the preceding screenshot, you can see the usage of primary, primary dark, and accent colors.
The style is defined as:
<style name="AppTheme" ...
Get Learning Android Google Maps now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.