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