Fennec/NativeUI/CodingStyle
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
- We use the Java Coding Style.
- Don't use wilcard imports.