Android Code Styles
AndroidStudio/IntelliJ IDEA code style settings for Android projects.
- AndroidStudioStyle:
a standard code style of AndroidStudio 1.2
(Fixed part of the namespace of xml arrangement) - AndroidPlatformStyle:
a code style that is used by the Android platform development - AndroidModernStyle:
a hybrid code style that mixed the best of Square's Android code style and AndroidPlatformStyle and AndroidStudioStyle.
In addition, add the 'orientation' and 'layout_weight' to xml arrangement
Code style comparison table
Installation
- Clone this repo
- Run the
install.sh
script - Restart AndroidStudio (or IntelliJ IDEA)
- Open Preferences and view the 'Code Style'
- Select you want to use code style, and apply
Thanks
Inspired by java-code-styles in Square, Inc.