Skip to content

bangbangtech/LayoutFormatter

 
 

Repository files navigation

LayoutFormatter

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

Deprecated!

This project is deprecated in favor of the Android Studio has the same and better XML formatter:
Editor -> Code Style -> XML -> Arrangement

Obtaining

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.

Install

Preferences -> Plugin -> Install plugin from disk...

How to use

Changelog

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".

About

Retrofit your Android layout XML files.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Java 100.0%