Using Java 8 Lambdas to Clean Up Click Listener Code

By Kristin Marsicano on Jan 29, 2018


About

How do you clean up onClick listeners using Lambdas?

Android view click listeners are often implemented inline using anonymous inner classes. Lambda syntax offers a more streamlined syntax. This video walks you through how lambda syntax map to anonymous inner class syntax, how to set up your project to support lambda syntax, and how to use Android Studio to make writing or converting to lambdas easy.

Lambda Expressions (The Java™ Tutorials | Learning the Java Language | Classes and Objects)
Button API - Android Developers
Gradle Retrolambda Plugin
BNR Guide to Android
Android & Kotlin Courses

Transcript

Transcripts are only available for subscribers. Create an account today to access our collection of screencasts, skill packs, and more.

Downloads

Project files are only available for subscribers. Create an account today to access our collection of screencasts, skill packs, and more.

Comments