Android Lists and Adapters (Refresh)
Coming May 2018…
About this Course
A collection of data is often represented in an app in some sort of list. In this course we will learn about the popular Android component called ListView to display and interact with a list of items. We will also learn about RecyclerView, a newer, more efficient version of ListView. We will see how to use some default components as well as building custom lists with our own layouts and adapters.
Updating the Data Model
The first thing we need to do is get the list of data we want to display from our forecast API. We will update the data model classes and have it ready to plug into a list.
We'll start this project by learning how to use some simple default list views and adapters, which is helpful for certain kinds of lists.
We have lots of data to display, so next we will learn how to customize the layout and adapter for a ListView to show more data.
Using Parcelalbe Data
"Parcelable" is a Java interface that is used in Android to make data easy to transfer from one thing to another. We often use it when transferring from one Activity to another, which we will see how to do in this stage.
Lists with RecyclerViews
In Android 5.0 (Lollipop) a new view for lists was added called RecyclerViews. It's a more efficient way to list large data sets, and it's an important tool to add your belt.
Acting on List Item Tap
Though the mechanism is slightly different, both ListViews and RecyclerViews allow us to easily take action when an item in a list is tapped on.