Android:RES 目录中除 ic_ 之外的文件前缀标准?

标签 android android-layout android-resources

任何人都知道在 RES 目录中是否有我们需要使用(或建议使用)的标准前缀列表。即 Android 推荐 ic_ 作为图标,这很棒,我正在关注。

但是 Logo 、按钮图像、导航图像等呢?

我真的很想知道其他人是否存在以及其他人都在使用什么

提前致谢

最佳答案

对图标 Assets 使用通用的命名约定

尝试命名文件,以便相关 Assets 在按字母顺序排序时会在目录中组合在一起。特别是,它有助于为每种图标类型使用通用前缀。例如:

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

检查此链接 tips for Designers

关于Android:RES 目录中除 ic_ 之外的文件前缀标准?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10785281/

相关文章:

android - 想要在带有 onClick 监听器和 onLongClickListener 的警报对话框中有一个 ListView

android - 在 LinearLayout 中重叠 TextView

java - 动画 Android Ring Shape 的扫角

android - 资源限定符应该如何应对?

android - 不同 Android 版本的不同 appWidgetProvider

android - 如何在android中制作适合各种屏幕尺寸的全屏图像?

android - 如何用拇指实现滚动条以实现快速滚动

android - 如何使用外部非构建库 (OpenCV) 制作一个 cordova android 插件

java - NoClassDefFoundError无法从azure表获取数据

Android - 如何将 Activity 布局膨胀成 fragment ?