SHARE
TWEET

Untitled

a guest Mar 26th, 2019 64 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. class MainActivity : AppCompatActivity(), Interface{
  2.  
  3.     override var myVar: String = "Worked!"
  4.  
  5.     override fun onCreate(savedInstanceState: Bundle?) {
  6.         super.onCreate(savedInstanceState)
  7.         setContentView(R.layout.activity_main)
  8.  
  9.         updateButton.setOnClickListener { welcomeTextView.text = "Kotlin is so Easy!" }
  10.  
  11.         hello()
  12.     }
  13.  
  14.     override fun hello() {
  15.  
  16.         updateButton2.setOnClickListener { welcomeTextView.text = "Interface " + myVar}
  17.  
  18.     }
  19. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top