Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class MainActivity : AppCompatActivity(), Interface{
- override var myVar: String = "Worked!"
- override fun onCreate(savedInstanceState: Bundle?) {
- super.onCreate(savedInstanceState)
- setContentView(R.layout.activity_main)
- updateButton.setOnClickListener { welcomeTextView.text = "Kotlin is so Easy!" }
- hello()
- }
- override fun hello() {
- updateButton2.setOnClickListener { welcomeTextView.text = "Interface " + myVar}
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement