Chapter 7. List Views and Adapters: Getting Organized

Want to know how best to structure your Android app?

You’ve learned about some of the basic building blocks that are used to create apps, and now it’s time to get organized. In this chapter, we’ll show you how you can take a bunch of ideas and structure them into an awesome app. You’ll learn how lists of data can form the core part of your app design, and how linking them together can create a powerful and easy-to-use app. Along the way, you’ll get your first glimpse of using event listeners and adapters to make your app more dynamic.

Every app starts with ideas

When you first come up with an idea for an app, you’ll have lots of thoughts about what the app should contain.

As an example, the guys at Starbuzz Coffee want a new app to entice more customers to their stores. These are some of the ideas they came up with for what the app should include:

These are all ideas that users of the app will find useful. But how do you take all of these ideas and organize them into an intuitive, well-structured app?

Organize your ideas: top-level, category, and detail/edit activities

A useful way to bring order to these ideas is to organize them into three different types of activity: top-level activities, category activities, and detail/edit activities. ...

Get Head First Android Development, 2nd 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.