I have a question about <#C0C7SMTU6> Is it possib...
# android
a
I have a question about #C0C7SMTU6 Is it possible to create custom views or use existing ones using dsl 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.