This is a simple demo that shows how to create a custom view. There are two modules: app: This module contains the Java implementation. kotlinapp: This module contains the Kotlin implementation. This repo is related to the following post.