You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: project_and_code_guidelines.md
+5-5Lines changed: 5 additions & 5 deletions
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
11
11
12
12
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`.
13
13
14
-
### 1.2.1 Resources files
14
+
### 1.2.2 Resources files
15
15
16
16
Resources file names are written in __lowercase_underscore__.
17
17
18
-
#### 1.2.1.1 Drawable files
18
+
#### 1.2.2.1 Drawable files
19
19
20
20
Naming conventions for drawables:
21
21
@@ -53,7 +53,7 @@ Naming conventions for selector states:
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`.
59
59
@@ -69,13 +69,13 @@ A slightly different case is when we are creating a layout that is going to be i
69
69
70
70
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_`.
71
71
72
-
#### 1.2.1.3 Menu files
72
+
#### 1.2.2.3 Menu files
73
73
74
74
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`
75
75
76
76
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.
77
77
78
-
#### 1.2.1.4 Values files
78
+
#### 1.2.2.4 Values files
79
79
80
80
Resource files in the values folder should be __plural__, e.g. `strings.xml`, `styles.xml`, `colors.xml`, `dimens.xml`, `attrs.xml`
0 commit comments