I have an `AnkoComponent` and I want to use it as ...
# anko
e
I have an
AnkoComponent
and I want to use it as custom view for an alertdialog I’m having problems with the syntax. I got something to work but I think it can be simplified a lot.
Copy code
alert {
    customView {
        addView(UI { HintUI().createView(this) }.view
                , ViewGroup.LayoutParams(WRAP_CONTENT, WRAP_CONTENT))
    }
}.show()
I.e. I’m missing something to make look less like a hack