Formats xml files according to Android Studio's default formatting rules. By default, also re-orders the attributes to specify the android:id
, android:layout_width
and android:layout_height
first. This can be turned off with a command line option.
To view available command line options, execute java -jar android-xml-formatter.jar --help
.
Can be used as a style check on a CI server by executing and then printing the diff.