Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
package example.siva.com.hellokotlin
import android.support.v7.app.AppCompatActivity
import android.os.Bundle
import kotlinx.android.synthetic.main.activity_main.*
import org.jetbrains.anko.toast
class MainActivity : AppCompatActivity() {
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
setContentView(R.layout.activity_main)
helloMe.setOnClickListener{ toast("My Hello World Example") }
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment