Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import android.app.Activity
- import android.os.Bundle
- import kotlinx.android.synthetic.main.activity_home.*
- class HomeActivity : Activity() {
- override fun onCreate(savedInstanceState: Bundle?) {
- super.onCreate(savedInstanceState)
- setContentView(R.layout.activity_home)
- button.setOnClickListener {toast("This is awesome!!!")}
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement