https://kotlinlang.org logo
#anko
Title
# anko
s

stantronic

09/09/2017, 9:22 PM
How's this:
Copy code
private fun ViewManager.hintUi(context: Context) {

    val viewManager = this
    val component = HintUI()
    addView(component.createView(
            AnkoContext.create(context)),
            ViewGroup.LayoutParams(matchParent, matchParent)
    )
}