Skip to content

Instantly share code, notes, and snippets.

@pahill
Created Aug 31, 2022
Embed
What would you like to do?
import org.koin.android.ext.android.inject
...
class MainActivity : AppCompatActivity() {
private val searchBox: SearchBox by inject()
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
setContentView(R.layout.activity_main)
val tv: TextView = findViewById(R.id.text_view)
tv.text = searchBox
.findStaffMemberByName("Pamela Hill").toString()
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment