Skip to content

Instantly share code, notes, and snippets.

@DjakaTechnology
Created June 5, 2020 02:51
Show Gist options
  • Save DjakaTechnology/8916e833b1dcea3df4a944d57021857e to your computer and use it in GitHub Desktop.
Save DjakaTechnology/8916e833b1dcea3df4a944d57021857e to your computer and use it in GitHub Desktop.
class MainActivity : AppCompatActivity() {
lateinit var binding: ActivityMainBinding
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
binding = DataBindingUtil.setContentView(this, R.layout.activity_main)
binding.buttonContinue.setOnClickListener {
binding.name = Random.nextInt(100).toString()
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment