Retrofit your Android layout XML files.
It will adjust your attributes order in accordance with the rules, and it will adjust some attributes to the front, and take some attributes at the end of the rows. It will make your code format more nice.
It is open source. https://github.com/drakeet/LayoutFormatter
This project is deprecated in favor of the Android Studio has the same and better XML formatter:
Editor -> Code Style -> XML -> Arrangement
The plugin is distributed through the Plugin Manager in IntelliJ. https://plugins.jetbrains.com/plugin/8299
Or you can download the jar file from releases.
Preferences -> Plugin -> Install plugin from disk...
v1.0.4
Fix the bad style that ">" or "/>" may be moved to a newline;
Add "fill_parent" to "match_parent";
Add "dip" to "dp".

