3 Tip Calculator App
Objectives
In this chapter you’ll:
Change the default GUI theme.
Customize the GUI theme’s colors.
Design a GUI using a
GridLayout
.Use the IDE’s Component Tree window to add views to a
GridLayout
.Use
TextView
s, anEditText
and aSeekBar
.Use Java object-oriented programming capabilities, including classes, objects, interfaces, anonymous inner classes and inheritance to add functionality to an app.
Programmatically change the text in a
TextView
.Use event handling to respond to user interactions with an
EditText
and aSeekBar
.Specify that the keypad should display by default when the app executes.
Specify that the app supports only portrait orientation.
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.