Kotlin Anko Converter For Xml

Compatible with: IntelliJ IDEA Android Studio
Nov 05, 2017
2 408
Convert layout xml to kotlin code use anko.
Java 8 at least.
Select or open a layout xml under res/layout.
Open the Code Menu.
Chose the last option "Convert Layout Xml to Kotlin Anko".

Download plugin

Recent change notes

Fix boolean attribute bug
Support weight
Support elevation,translationZ,rotation,rotationX,rotationY,scaleX,scaleY,translationX,translationY
Support 0dp transform to 0 or 0f
Support v4,v7 views exclude attributes Support textStyle and inputType

General usage instructions

Select or open a layout xml under res/layout.

Open the Code Menu.

Chose the last option "Convert Layout Xml to Kotlin Anko"