Please advise regarding the most correct (idiomati...
# anko
a
Please advise regarding the most correct (idiomatic) way to use Anko for Fragment UI creation. The whole
UI {...}.view
wrapping, where
addView
checks a boolean field to see if it should actually add view seems… inelegant
m
Why check anything? Just
Copy code
onCreateView(...) = UI {

    coolLayout {
        coolView()
    }

}.view