|Synopsis:||Order import statements.|
The ordering of import statements is:
To exactly match the IDE settings, the imports should be:
Originally there was no style requirement on the ordering. This meant that the IDE's were either always changing the ordering, or IDE developers had to disable the automatic import management features and maintain the imports by hand. This was deemed bad. When java-style was asked, the preferred styles were all over the map. It pretty much came down to our needing to "pick an ordering and be consistent." So we chose a style, updated the style guide, and made the IDEs obey it. We expect that as IDE users work on the code, the imports in all of the packages will end up matching this pattern without any extra engineering effort.
This style was chosen such that:
Since most people consider this a low priority issue, just use your judgement and please be consistent.
|Google Android Guidelines|