If you are developing for Android, you probably deal with XML files every day. These are the manifests, layouts, drawables, resource files and many others. That's why in IntelliJ IDEA 12 we have added a new option for the code formatter, which is aware of Android-specific code styles.
The new option is available in Settings → Code Style → XML and can be enabled via Set From… → Predefined