Skip to content

Instantly share code, notes, and snippets.

@agnamc9
Last active April 29, 2020 14:01
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 agnamc9/cf7c93424f083081c8b23b2431c7ec74 to your computer and use it in GitHub Desktop.
Save agnamc9/cf7c93424f083081c8b23b2431c7ec74 to your computer and use it in GitHub Desktop.
class MainActivity : AppCompatActivity() {
private lateinit var binding: ActivityMainBinding
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
binding = ActivityMainBinding.inflate(layoutInflater)
setContentView(binding.root)
// Accès au texte
binding.helloText.text = "Hello World"
// Accès au bouton
binding.helloButton.setOnClickListener {
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment