Android: Standards for prefixing files in the RES directory apart from ic_?

后端 未结 1 1962
被撕碎了的回忆
被撕碎了的回忆 2021-02-12 22:02

anyone know if there a list of standard prefixes that we need to use (or advisable to use) in the RES directory. i.e. Android recommends ic_ for icons, which is great and i am f

相关标签:
1条回答
  • 2021-02-12 22:19

    Use common naming conventions for icon assets

    Try to name files so that related assets will group together inside a directory when they are sorted alphabetically. In particular, it helps to use a common prefix for each icon type. For example:

    Asset Type                   Prefix            Example
    Icons                         ic_                ic_star.png
    Launcher icons                ic_launcher        ic_launcher_calendar.png
    Menu  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
    

    check this link tips for Designers

    0 讨论(0)
提交回复
热议问题