Skip to content

Instantly share code, notes, and snippets.

@alohaabhi
Created March 29, 2023 07:57
Show Gist options
  • Save alohaabhi/b4a8dedd21cfff56979b8573cde3e64b to your computer and use it in GitHub Desktop.
Save alohaabhi/b4a8dedd21cfff56979b8573cde3e64b to your computer and use it in GitHub Desktop.
var count = 1
findViewById<Button>(R.id.incrementButton).setOnClickListener {
count = count.inc()
findViewById<TextView>(R.id.counterText).text = "The count is $count"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment