Created
January 4, 2016 13:57
-
-
Save shem8/c3a1b5317fd8a2df84ef to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Using R.layout.activity_main from the main source set | |
import kotlinx.android.synthetic.main.activity_main.* | |
public class MyActivity : Activity() { | |
override fun onCreate(savedInstanceState: Bundle?) { | |
super.onCreate(savedInstanceState) | |
setContentView(R.layout.activity_main) | |
textView.setText("Hello, world!") // Instead of findView(R.id.textView) as TextView | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment