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

Andrew Kuryan

07/09/2020, 4:04 PM
Hey guys, can anyone advise a library for building android ui using dsl? From the requirements: at least a 1000 stars on the github and the last commit no later than a year ago.
e

estevanfick

07/09/2020, 4:06 PM
c

Casey Brooks

07/09/2020, 4:11 PM
Most Android DSL libraries didn’t last very long. The UI and configuration of the normal View system generally proved to be too complex to make a clean DSL out of. There’s a lot of implicit binding with XML that was difficult to do correctly in a DSL (LayoutParams, Themes, etc). You’re probably better off waiting until #compose is stable
2
💯 1
w

willyrs

07/09/2020, 4:18 PM
I agree with @Casey Brooks, I just made my own non-general-purpose DSL for the ui I need, waiting for compose
t

Tarun Chawla

07/12/2020, 5:43 AM
Jetpack compose, but it is still in preview. It is the safest bet as it is officially supported by google.