How to make a custom adapter in kotlin?

this section only contains the formation of a custom adapter in java but how can we implement it in kotlin plz explain

Custom adapter code for recycler view is available in kotlin and similar would be for listview too.