O'Reilly logo

Learning Mobile App Development: A Hands-on Guide to Building Apps with iOS and Android by Michael Eierman, Jakob Iversen

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Complex Lists

The ContactListActivity needs to have more functionality than can be coded in a simple list. In this activity, the list displays the contact’s name in a large blue font and the contact’s phone number in a smaller black font below the name. The list item also displays an arrow indicating that tapping the contact leads to some other activity. In this case, the ContactActivity will open and the contact’s data is displayed. The list also allows the deletion of one or more contacts. To get this functionality, you need to create data source methods, create your own list item layout, and create your own adapter.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required