Join Slack
Powered by
Please advise regarding the most correct (idiomati...
# anko
a
arild
08/20/2017, 7:06 PM
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
miha-x64
08/23/2017, 6:47 AM
Why check anything? Just
Copy code
onCreateView(...) = UI { coolLayout { coolView() } }.view
2
Views
Open in Slack
Previous
Next