Skip to content

Instantly share code, notes, and snippets.

@the-dagger
Created December 28, 2017 13:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save the-dagger/fa89aea78c2dfcf7169c1b84ba5950d4 to your computer and use it in GitHub Desktop.
Save the-dagger/fa89aea78c2dfcf7169c1b84ba5950d4 to your computer and use it in GitHub Desktop.
import kotlinx.android.synthetic.main.activity_main.*
class KotlinActivity : AppCompatActivity() {
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
setContentView(R.layout.activity_main)
studentName.text = "Harshit" //That's it!
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment