We can use extension functions to add new behaviors to a class that we may not even have access to. We can also add extension functions to view groups. One such view group is recycler view. Let's see how we can access views of a recycler view using extension functions.
Accessing views of view groups using extension functions
Getting ready
I'll be using Android Studio 3 to write code. You can get started by creating a new project in Kotlin with a blank activity in Android Studio 3+, as we won't be using any code from other recipes. You also need an intermediate understanding of Android development.