3.8 Wrap-Up
In this chapter, you created the interactive Tip Calculator app. We discussed the app’s capabilities, then you test-drove it to calculate the tip and total, based on the bill amount. You built the app’s GUI using Android Studio’s layout editor, Component Tree window and Properties window. You also edited the layout’s XML and used the Theme Editor to customize the Theme.AppCompat.Light.DarkActionBar
theme’s primary, dark primary and accent colors that were set by the IDE when you created the project. We presented the code for class MainActivity
, a subclass of AppCompatActivity
(and an indirect subclass of Activity
) that defined the app’s logic.
In the app’s GUI, you used a GridLayout
to arrange the views into rows and columns. You ...
Get Android How to Program, 3/e 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.