Building Custom Component with Kotlin

Assuming you want to build a page that consist of some repetitive common views. You might not want to duplicate the views and the code that handle it. So a better way is to build a custom component that group views together to be reused.

Example

Here, I will show you how to build the below example, in Kotlin (yeah, the first class language of Android!!) .. in case you…

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store