Skip to content

Instantly share code, notes, and snippets.

@markchristopherng
Created February 19, 2020 00:20
Show Gist options
  • Save markchristopherng/512ab4b705a16499b587679de5c02a96 to your computer and use it in GitHub Desktop.
Save markchristopherng/512ab4b705a16499b587679de5c02a96 to your computer and use it in GitHub Desktop.
class MainActivity : AppCompatActivity() {
private val greetingService by inject<GreetingService>()
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
setContentView(R.layout.activity_main)
val greetings = findViewById<TextView>(R.id.greetingsTextView)
greetings.text = "${greetingService.greetings()}"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment