With RelativeLayout, it's sometimes necessary to use those properties, but they don't seem to be supported by Anko. For example, if I create an XML file with the following content:
Apart from the missing id but_right (which is an easily solvable issue), the problem is that toRightOf and toLeftOf don't exist, and that code does not compile.
I am using Kotlin 1.2.50 with Anko 0.10.5 in Android Studio 3.1.3.
With RelativeLayout, it's sometimes necessary to use those properties, but they don't seem to be supported by Anko. For example, if I create an XML file with the following content:
And then convert it to Anko DSL, this code is generated (excluding imports):
Apart from the missing id
but_right
(which is an easily solvable issue), the problem is that toRightOf and toLeftOf don't exist, and that code does not compile.I am using Kotlin 1.2.50 with Anko 0.10.5 in Android Studio 3.1.3.