Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Support ConstraintLayout in Anko #210
Since PercentLayout is deprecated now, will ConstraintLayout be supported soon?
yes, it should be possible to inflate. But from my little experience it is better to stick with standard layouts for now. Anko feels like is not complete in term of designer and different configurations. But you can mix both approaches at some extent.
Take a look at kotlin compiler android extensions.
added a commit
Oct 23, 2017
Hi guys. I really liked using the constraint layout but also using Anko for building stuff. The two are not compatible with each other, so I decided to make a library ^_^
It is a bigger project than I originally intended. It adds custom DSL specifically made for use with constraint layout and other stuff like automatic generation of ids for views. Readme should be explanatory enough.