Skip to content

Instantly share code, notes, and snippets.

View ingerul93's full-sized avatar

Vlad Ioan ingerul93

  • Baia Mare, Romania
View GitHub Profile
@ingerul93
ingerul93 / Injection.kt
Created March 18, 2022 09:06 — forked from code-twister/Injection.kt
Simple Kotlin Dependency Injection
import kotlin.properties.ReadOnlyProperty
import kotlin.reflect.KClass
import kotlin.reflect.KProperty
/*
* Using the Injection framework:
*
* Create bindings somewhere in the application before the injections would occur.
*
* factory<MyInterface>(named = "specialName") { SomeImplementation() }
<style name="TopSheet_DialogAnimation">
  <item name="android:windowEnterAnimation">@anim/slide_out_from_top</item>
  <item name="android:windowExitAnimation">@anim/slide_back_to_top</item>
</style>

slide_out_from_top