https://kotlinlang.org logo
#android
Title
# android
s

Sergio Crespo Toubes

11/02/2018, 1:52 PM
@louiscad what are you using? anko for build the views?
🥁 1
l

louiscad

11/02/2018, 2:09 PM
An alternative to anko. I'm still working on a breaking release right now (after months of work), so I'll ping you with the link after it's done (hopefully, finally today)
s

Sergio Crespo Toubes

11/02/2018, 3:38 PM
ok thanks you
m

Matt Rea

11/02/2018, 6:09 PM
there’s nothing wrong with using
findViewById
. Synthetic imports from xml just give you view caching. Not a huge benefit for most apps
1
you could also build a lazy delegate wrapper around
findViewById
pretty easily
so you could do
val view: View by viewFinder(R.id.view)
l

louiscad

11/02/2018, 6:11 PM
@Matt Rea I don't see the link with this specific thread, we're not talking about findViewById but Views without xml at all here
@Matt Rea Maybe you targeted the message just above the one that started this thread?
m

Matt Rea

11/02/2018, 6:12 PM
oooo I misunderstood what you were saying about ’moving away from xml`. Thought you were talking about moving away from synthetic imports, not xml altogether
nice! Interested to see your work when its finished
l

louiscad

11/02/2018, 10:57 PM
The alpha5 version of Splitties is now available on jcenter and is on the master branch on GitHub. I'm still writing the release notes, but you probably only need the updated documentation. So, to make UIs in Android, I use the View DSL split, and you can read the documentation and try it by following this link: https://github.com/LouisCAD/Splitties/blob/master/viewdsl/README.md There are not much examples at the moment (because I also have a day job), but the API and the doc is there.
K 1
K 1