View implementation

Let's start with the view implementation. Here, we are going to define what the list of characters will look like. For testing purposes, we are also going to define a few characters and display them.

Let's start with the MainActivity layout implementation. We will use RecyclerView to show a list of elements. The RecyclerView layout is distributed in a separate dependency, which we have to add to the app module build.gradle file:

implementation "com.android.support:recyclerview-v7:$android_support_version" 

The android_support_version instance is a variable that is not yet defined. The reason for this is that the version should be the same for all Android support libraries, and when we extract this version number as a separator ...

Get Android Development with Kotlin 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.