I saw a few days ago a library to construct Androi...
# android
t
I saw a few days ago a library to construct Android UI with Kotlin, maybe a DSL. Like Anko, but newer and supported. Maybe it was from Square? I can’t find it now. Anybody here know what it might be. Thank you!
c
If you're looking to use Kotlin to build a UI, I'd strongly recommend using #compose over anything based on standard Views. Views were never designed to be created programmatically, and while a DSL might be able to make it work, it's almost certainly never going to be as easy or well-supported as XML. Compose, on the other hand, was designed from the very beginning to leverage the best features of Kotlin, and provide a much safer and easier way to build UIs in Kotlin code. But if you're set on using a View-based DSL, the Anko deprecation notice suggests Splitties, which may be what you saw.
z
I'd also recommend Compose in general, but you might be thinking of https://github.com/cashapp/contour, which is a layout lib by Square
i
You might be thinking about Workflow, which supports Views and Compose (and iOS): https://square.github.io/workflow/
👍🏾 1
👍 1