Last active
April 20, 2017 04:04
-
-
Save AkshayChordiya/c3963430451db62c6119636382858f94 to your computer and use it in GitHub Desktop.
Kotlin Article: MainActivity.kt with Views
This file contains 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
class MainActivity : AppCompatActivity() { | |
var mToolbar: Toolbar? = null | |
override fun onCreate(savedInstanceState: Bundle?) { | |
super.onCreate(savedInstanceState) | |
setContentView(R.layout.activity_main) | |
bindViews() | |
setSupportActionBar(mToolbar) | |
} | |
private fun bindViews() { | |
mToolbar = findViewById(R.id.toolbar) as Toolbar | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment