7 ms·
I have a relatively medium implementation of a layout in anko here: https://github.com/burntcookie90/KotMeh/blob/master/app/src/main/kotlin/io/dwak/meh/view/Mai
by burntcookie90 11y ago
I have a relatively medium implementation of a layout in anko here: https://github.com/burntcookie90/KotMeh/blob/master/app/src/main/kotlin/io/dwak/meh/view/MainActivity.kt https://github.com/burntcookie90/KotMeh/blob/master/app/src/...
I'm not sold on using it as a layout DSL, it's just not as easy to format as XML, and I don't think it looks syntactically that much better. However, I am sold on using anko as replacement for setters and getters (ie. `setText("test")` is just `.text = "test"`). Additionally, it's incredibly easy to add more extensions for other view types, like `RecyclerView` and custom layouts.