Coding Style Standards for Android

A.Quiroga picture A.Quiroga · Sep 25, 2011 · Viewed 49.7k times · Source

I would like to know if there is some standard code styling for Android(maybe a book?) (styling XML , Java programming , file naming , etc...)

Answer

inazaruk picture inazaruk · Sep 25, 2011

There is a good description of code style rules here.

If you want to enforce this rules without remembering all of them, and you are using eclipse then you can use formatting rules provided by Android team: android-formatting.xml. Just import it into eclipse using Preferences->Java->Code Style->Formatter, click Import.