I.1. Introduction

A graphical user interface (GUI) presents a user-friendly mechanism for interacting with an app. A GUI (pronounced “GOO-ee”) gives an app a distinctive “look-and-feel.” GUIs are built from GUI components, such as labels, buttons, textboxes, menus scrollbars and more. These are sometimes called controls or widgets—short for window gadgets. A GUI component is an object with which the user interacts via the mouse, the keyboard or another form of input, such as voice recognition. In this appendix, we introduce a few basic GUI components and how to respond to user interactions with them—a technique known as event handling. We also discuss nested classes and anonymous inner classes, which are commonly used for event handling in Java ...

Get Android™ How to Program, Second Edition 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.