Create a complex user interface with Android’s user interface classes
Objectives:
Familiarize
yourself with Android’s User Interface (UI) classes. Create a simple application that uses a variety of UI elements including: Buttons, TextViews and Checkboxes. You will also reinforce the knowledge you've gained in previous lessons by implementing a larger portion of the application from scratch.
Overview:
In
this Lab, you will create a ToDo Manager application. The application creates and manages a list of ToDo Items (i.e., things that you need “to do.”) You will design this application’s user interface, including its layout and resource files. You will also implement a bit more of the application’s features than you did in previous Labs. Do NOT modify any resource IDs or log messages contained in the skeleton layout files as this may break our test cases.
Exercise A: The basic ToDo Manager
The
main Activity for this application is called ToDoManagerActivity. When the Activity runs, but there are no previously saved ToDo Items, its initial UI will look something like this:
Figure 1: Initial View
This UI contains a single ListView that displays all existing ToDo Items. As shown above, the last row