Created
February 19, 2020 00:52
-
-
Save markchristopherng/335359163f19ed8cd59d46ad0464aea9 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
class MainActivity : AppCompatActivity(), KodeinAware { | |
override val kodein by closestKodein() | |
private val greetingService by instance<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