Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update drawable conventions #3

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
41 changes: 19 additions & 22 deletions project_and_code_guidelines.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,28 +19,25 @@ Resources file names are written in __lowercase_underscore__.

Naming conventions for drawables:


| Asset Type | Prefix | Example |
|--------------| ------------------|-----------------------------|
| Action bar | `ab_` | `ab_stacked.9.png` |
| Button | `btn_` | `btn_send_pressed.9.png` |
| Dialog | `dialog_` | `dialog_top.9.png` |
| Divider | `divider_` | `divider_horizontal.9.png` |
| Icon | `ic_` | `ic_star.png` |
| Menu | `menu_ ` | `menu_submenu_bg.9.png` |
| Notification | `notification_` | `notification_bg.9.png` |
| Tabs | `tab_` | `tab_pressed.9.png` |

Naming conventions for icons (taken from [Android iconography guidelines](http://developer.android.com/design/style/iconography.html)):

| Asset Type | Prefix | Example |
| --------------------------------| ---------------- | ---------------------------- |
| Icons | `ic_` | `ic_star.png` |
| Launcher icons | `ic_launcher` | `ic_launcher_calendar.png` |
| Menu icons and Action Bar icons | `ic_menu` | `ic_menu_archive.png` |
| Status bar icons | `ic_stat_notify` | `ic_stat_notify_msg.png` |
| Tab icons | `ic_tab` | `ic_tab_recent.png` |
| Dialog icons | `ic_dialog` | `ic_dialog_info.png` |
| Action bar | `drawable_ab_` | `drawable_ab_stacked.9.png` |
| Button | `drawable_btn_` | `drawable_btn_send_pressed.9.png` |
| Dialog | `drawable_dialog_` | `drawable_dialog_top.9.png` |
| Divider | `drawable_divider_` | `drawable_divider_horizontal.9.png` |
| Icon | `drawable_ic_` | `drawable_ic_star.png` |
| Menu | `drawable_menu_ ` | `drawable_menu_submenu_bg.9.png` |
| Notification | `drawable_notification_` | `drawable_notification_bg.9.png` |
| Tabs | `drawable_tab_` | `drawable_tab_pressed.9.png` |
-
-Naming conventions for icons (taken from [Android iconography guidelines](http://developer.android.com/design/style/iconography.html)):
-
-| Asset Type | Prefix | Example |
-| --------------------------------| ---------------- | ---------------------------- |
-| Icons | `drawable_ic_` | `drawable_ic_star.png` |
-| Launcher icons | `drawable_ic_launcher` | `drawable_ic_launcher_calendar.png` |
-| Menu icons and Action Bar icons | `drawable_ic_menu` | `drawable_ic_menu_archive.png` |
-| Status bar icons | `drawable_ic_stat_notify` | `drawable_ic_stat_notify_msg.png` |
-| Tab icons | `drawable_ic_tab` | `drawable_ic_tab_recent.png` |
-| Dialog icons | `drawable_ic_dialog` | `drawable_ic_dialog_info.png` |

Naming conventions for selector states:

Expand Down