SHARE
TWEET

Untitled

a guest May 19th, 2017 46 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. import android.app.Activity
  2. import android.os.Bundle
  3. import kotlinx.android.synthetic.main.activity_home.*
  4.  
  5. class HomeActivity : Activity() {
  6.  
  7.     override fun onCreate(savedInstanceState: Bundle?) {
  8.         super.onCreate(savedInstanceState)
  9.         setContentView(R.layout.activity_home)
  10.         button.setOnClickListener {toast("This is awesome!!!")}
  11.     }
  12. }
RAW Paste Data
Top