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

enighma

09/08/2017, 8:17 PM
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