# How lambdas work in Kotlin. setOnClickListener transformation (KAD 18)

DevFeed: [How lambdas work in Kotlin. setOnClickListener transformation (KAD 18)](<https://devfeed.tech/articles/how-lambdas-work-in-kotlin-setonclicklistener-transformation-kad-18-27190.md>)

Original publisher: [Read original article](<https://antonioleiva.com/lambdas-kotlin-android>)

Published: 2017-03-28T00:00:00Z

Content type: tutorial

Language: en

Sources: [Antonio Leiva](<https://devfeed.tech/sources/antonio-leiva.md>)

Topics: [Kotlin](<https://devfeed.tech/topics/kotlin.md>), [Android](<https://devfeed.tech/topics/android.md>), [Code](<https://devfeed.tech/topics/code.md>), [ui](<https://devfeed.tech/topics/ui.md>), [Framework](<https://devfeed.tech/topics/framework.md>)

Tags: [android](<https://devfeed.tech/tags/android.md>), [android-framework](<https://devfeed.tech/tags/android-framework.md>), [examples](<https://devfeed.tech/tags/examples.md>), [how-to](<https://devfeed.tech/tags/how-to.md>), [implementation](<https://devfeed.tech/tags/implementation.md>), [kotlin](<https://devfeed.tech/tags/kotlin.md>), [transformation](<https://devfeed.tech/tags/transformation.md>), [ui-components](<https://devfeed.tech/tags/ui-components.md>)

## AI overview

A tutorial explaining how Kotlin lambdas simplify single-method Java interfaces, with examples focused on Android's setOnClickListener and view handling. It covers anonymous-class transformations, trailing lambdas, omitted parameters, the it keyword, and Kotlin DSL-style code.

## Source excerpt

Everything Android, Kotlin and other random topics