Is it possible to create custom views or use exist...
# anko
a
Is it possible to create custom views or use existing ones that won't be added as children to enclosing views immediately? For example, if I want to do something like this:
Copy code
verticalLayout {
    addView(myCustomView())
}
I'm currently not able to do so because
myCustomView()
defined as
fun ViewManager.myCustomView(): View = view()
will already have parent. I can remove it after it has been created but it's somewhat ugly and I hope there is simplier way.