Fennec/NativeUI/CodingStyle

From MozillaWiki
< Fennec‎ | NativeUI
Revision as of 18:58, 18 October 2011 by Lucasr (talk | contribs)
Jump to navigation Jump to search

Coding Style

XML files (layout, resources, styles, etc)

  • Each child tag should be indented with 4 spaces.
  • The properties should be aligned with the first property of a tag.
  • Each element should have "android:id" first, "style" (if exists) second, and the other properties follow. The root will have "xmlns:android" as first property.
  • A Line break after every tag.

Java