Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

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

Contributors

Languages

  • Java 100.0%

AltStyle によって変換されたページ (->オリジナル) /