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

耗尽温柔 提交于 2019-12-09 08:49:08

问题


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 following that.

But what about Logos, button images, navigation images etc?

I would really be interested to find out if other exist and what everyone else is using

Thanks in advance


回答1:


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



来源:https://stackoverflow.com/questions/10785281/android-standards-for-prefixing-files-in-the-res-directory-apart-from-ic

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!