/android-xml-formatter

Simple formatter for the Android layout xml code style

Primary LanguageJavaGNU General Public License v3.0GPL-3.0

android-xml-formatter

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.