Exercises

1. Add the contact’s cell phone number to the complex list. The list should display the contact name on the first line and Home:the number Cell:the number on the second line.

2. Add another line to the list so that the list displays

Contact Name

Street Address, City, State, ZIP,

Phone number

3. Modify the custom adapter to alternately display the contact name in red and blue. For example, the first name in the list will be red, the second will be blue, the third is red, and so on.

Get Learning Mobile App Development: A Hands-on Guide to Building Apps with iOS and Android 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.