Manage Jobs

The ManageJobs Activity presents a scrollable list ofjobs for review and action. At the top of the screen is a simple summary indicating the number of jobs in the list, and each individual job is enumerated in a ListView.

Earlier we mentioned the importance of the JobEntry's toString() method:

public String toString() {

return this._jobid + ": " + this._customer + ": " + this._product;

This method generates the String that is used to represent the JobEntry in the ListView, as shown in figure 12.9.

The layout for this Activity's View is rather simple, just a TextView and a ListView, as shown in listing 12.14.

0 0

Post a comment