Skip to content

Commit

Permalink
Merge pull request ribot#16 from ribot/fix_section_numbering
Browse files Browse the repository at this point in the history
Fix 1.2 section numbering
  • Loading branch information
Ivan Carballo committed Dec 8, 2015
2 parents 1ff6230 + 00fe34d commit f067ef2
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions project_and_code_guidelines.md
Original file line number Diff line number Diff line change
@@ -11,11 +11,11 @@ Class names are written in [UpperCamelCase](http://en.wikipedia.org/wiki/CamelCa

For classes that extend an Android component, the name of the class should end with the name of the component; for example: `SignInActivity`, `SignInFragment`, `ImageUploaderService`, `ChangePasswordDialog`.

### 1.2.1 Resources files
### 1.2.2 Resources files

Resources file names are written in __lowercase_underscore__.

#### 1.2.1.1 Drawable files
#### 1.2.2.1 Drawable files

Naming conventions for drawables:

@@ -53,7 +53,7 @@ Naming conventions for selector states:
| Selected | `_selected` | `btn_order_selected.9.png` |


#### 1.2.1.2 Layout files
#### 1.2.2.2 Layout files

Layout files should match the name of the Android components that they are intended for but moving the top level component name to the beginning. For example, if we are creating a layout for the `SignInActivity`, the name of the layout file should be `activity_sign_in.xml`.

@@ -69,13 +69,13 @@ A slightly different case is when we are creating a layout that is going to be i

Note that there are cases where these rules will not be possible to apply. For example, when creating layout files that are intended to be part of other layouts. In this case you should use the prefix `partial_`.

#### 1.2.1.3 Menu files
#### 1.2.2.3 Menu files

Similar to layout files, menu files should match the name of the component. For example, if we are defining a menu file that is going to be used in the `UserActivity`, then the name of the file should be `activity_user.xml`

A good practice is to not include the word `menu` as part of the name because these files are already located in the `menu` directory.

#### 1.2.1.4 Values files
#### 1.2.2.4 Values files

Resource files in the values folder should be __plural__, e.g. `strings.xml`, `styles.xml`, `colors.xml`, `dimens.xml`, `attrs.xml`

0 comments on commit f067ef2

Please sign in to comment.