activity_main.xml -> R.layout.activity_main Alternative resources for different device configurations res / values-en / strings.xml res / values-fr / strings.xml
onCreate(...) { ... setContentView(R.layout.activity_main) val msgText = findViewById(R.id.msgText) val sendButton = findViewById(R.id.sendBtn) sendButton.setOnClickListener { // Do something when user clicks } } }