O'Reilly logo

Mastering Android Application Development by Antonio Pachón Ruiz

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

Chapter 5. Lists and Grids

In this chapter, we will work with lists and grids. A list or a matrix of elements can be found in almost every app on the market. Knowing how to display a list of elements on Android is something that you learn at a basic level; however, there is a lot to expand on and understand.

It's important to know which patterns we can use here, how to recycle the view, and how to display different kinds of elements with different views in the same list.

With this in mind, we will be able to understand why RecyclerView is the successor of ListView, and we will learn how to implement a list with this component. Therefore, we will cover the following in this chapter:

  • Starting with lists
    • ListView
    • The custom adapter
    • Recycling views
    • Using ...

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