Before Android Studio, I was using android-formatting.xml as Code Style in Eclipse.
How can I setup Android Studio / Intellij Idea to format code as in Eclipse?
I tried Eclipse Code Formatter plugin. It seems to work, but you cannot edit any setting at all. My team prefers 120 columns instead of 100.
I tried @CrossleSong answer too. It's a bit tricky, but more powerful. You can save this
as Android.xml and copy it to AndroidStudio/Intellij codestyles folder: for me is
Now you can select Android as Code Style in Android Studio Preferences.