Created
December 4, 2017 15:05
-
-
Save javikin/06cd3b300fecada3871053995264d682 to your computer and use it in GitHub Desktop.
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
class MainActivity : Activity() { | |
... | |
override fun onCreate(savedInstanceState: Bundle?) { | |
... | |
mAdapter = MyAdapter(myDataset, {onClickActionItemList(it)}, {onClickActionButtonItemList(it)}) | |
... | |
} | |
fun onClickActionItemList(item: String) { | |
item.shortToast() | |
} | |
fun onClickActionButtonItemList(item: Double) { | |
item.shortToast() | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment