Skip to content

Instantly share code, notes, and snippets.

@Temidtech
Created April 23, 2018 13:17
Show Gist options
  • Save Temidtech/59c3970f9c27edaa4ebf2f5e8ccd945e to your computer and use it in GitHub Desktop.
Save Temidtech/59c3970f9c27edaa4ebf2f5e8ccd945e to your computer and use it in GitHub Desktop.
import kotlinx.android.synthetic.main.content_main.*
class LoginActivity : AppCompatActivity() {
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
setContentView(R.layout.activity_main)
// No need to call findViewById(R.id.textView) as TextView
userName.text = "temidayo"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment