I found this link Rearrange Attributes in Android XML Files with IntelliJ IDEA 13
File | Settings | Editor | Code Style | XML for Windows and Linux
Finally got it. Choose File > Settings > Code Style > XML > Set from > Predefined Style > Android; Set File > Settings > Editor > Formatting ...
Java SDK Library · Runtime Resource Overlays (RROs)
By default this group sets ordering of standard java/javax imports.
... the XML is in a resource value file such as strings.xml , or a layout file
These should be followed throughout the Android project in order to help us
Here we provide guidelines on the code style and code organization for
According to the Android code style guide, the standard practices for some of the
Resource files in the values folder should be plural, e.g. strings.xml, styles.xml,