Skip to content

Instantly share code, notes, and snippets.

@parzibyte
Created July 4, 2019 22:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save parzibyte/b4446b379134a9026760511fc2f8402b to your computer and use it in GitHub Desktop.
Save parzibyte/b4446b379134a9026760511fc2f8402b to your computer and use it in GitHub Desktop.
spinnerCategoriasReporteGastos.onItemSelectedListener = object : AdapterView.OnItemSelectedListener {
override fun onNothingSelected(parent: AdapterView<*>?) {
Toast.makeText(context!!, "onNothingSelected", Toast.LENGTH_SHORT).show()
}
override fun onItemSelected(parent: AdapterView<*>?, view: View?, position: Int, id: Long) {
Toast.makeText(context!!, "onItemSelected position: $position. id: $id", Toast.LENGTH_SHORT).show()
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment