Updating the RecyclerView
We'll cover the following
Creating an adapter
The RecyclerView
uses an adapter to display each row of data. We’ll use a new AirportAdapter
class for this purpose, to display the status of each airport.
Create a new Kotlin class file named AirportAdapter.kt
that will hold the class AirportAdapter
. Let’s start with this initial code for the class in this file:
Get hands-on with 1400+ tech skills courses.