Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 855e748

Browse files
committed
Added structure description for Style Resources
1 parent 3e9a737 commit 855e748

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

java/android/README.md

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,8 @@ The following structure should be followed when naming resoures.
4242
* **Group**: Application area or screen. If the resource is used in different parts of applications 'common' should be used instead. e.g. actionbar, menu, media, popup, footer, audio, etc.
4343
* **Type**: Resource Type. e.g. background, icon, button, textfield, list, menuitem, radiobutton, checkbox, tab, dialog, title, etc.
4444
* **Name**: Descriptive name as to what the resource is about. e.g. play, stop.
45-
* **State** (Optional): The optional state of a parent resource. e.g. A button could be in 'normal', 'pressed', 'disabled' and 'selected'. A checkbox could be 'on' or 'off'. These resources should NEVER be used directly in layout but rather as state selectors.
46-
* **Suffix** (Optional): An arbitrary suffix that helps to further identify a property of the resource. Ex: bright, dark, opaque, layer, etc.
45+
* **State**: (Optional): The optional state of a parent resource. e.g. A button could be in 'normal', 'pressed', 'disabled' and 'selected'. A checkbox could be 'on' or 'off'. These resources should NEVER be used directly in layout but rather as state selectors.
46+
* **Suffix**: (Optional): An arbitrary suffix that helps to further identify a property of the resource. e.g. bright, dark, opaque, layer.
4747

4848
Below are some examples of properly named resources.
4949

@@ -71,7 +71,12 @@ Below are some examples of properly named string identifiers.
7171
String resources placed in styles.xml are named in CamelCase.
7272
The following structure should be followed when naming style resoures.
7373

74-
**Group**|**Type**|**Name**|*[Suffix]*
74+
**[Group]TypeName[Suffix]**
75+
76+
* **Group** (Optional): Application area or screen. e.g. actionbar, menu, media, popup, footer, audio.
77+
* **Type**: Resource Type. e.g. Background, Icon, Button, Textfield, List, MenuItem, RadioButton, Checkbox, Tab, Dialog.
78+
* **Name**: Descriptive name as to what the resource is about. e.g. play, stop.
79+
* **Suffix**: (Optional): An arbitrary suffix that helps to further identify a property of the resource. e.g. Bright, Dark, Opaque, Layer.
7580

7681
Below are some examples of properly named string identifiers.
7782

0 commit comments

Comments
 (0)