Monday, August 26, 2013

How Android developer should get resources

Hi Designers,
Few very important conventions

  1. Names should be meaningful.
    Bad: "logo".
    Good: "main_application_logo"
  2. No capital letters, spaces or dashes in names.
  3. Icons resources should starts with "ic_".
    For example: "ic_home_logo".
  4. Backgrounds resources (also ninepatches) should starts with "bg_".
    For example: "bg_enter_button".
  5. Resources should be separated to folders: xhpi, hdpi, mdpi (and maybe xxhdpi).
  6. Resource name should be consistent for all folders.
    Bad: "ic_home_logo_xhdpi",  "ic_home_logo_hdpi",  "ic_home_logo_mdpi".
    Good: "ic_home_logo" in different sizes in each folder.

Please please please follow these conventions.
You are driving me crazy!