Last active
February 23, 2019 06:52
-
-
Save renaudcerrato/edd2c9cb29d5522b06e392a08bce5b8f to your computer and use it in GitHub Desktop.
Kotlin Anonymous Objects
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
val listener = object: OnMenuClickListener, OnMenuExpandListener { | |
override fun onMenuClick(item: Menu) { ... } | |
override fun onMenuExpand(item: Menu) { ... } | |
} | |
menu.setOnClickListener(listener) | |
menu.setOnExpandListener(listener) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment