Android 常用参考文档
来源:互联网 发布:冰川网络客服 编辑:程序博客网 时间:2024/06/06 16:55
本文记录安卓开发过程中常用的参考数据。
1. API Level 与系统版本号对应关系
戳我查看官方文档
2. dp和px换算关系对照表
为了适配多种分辨率,我们要按照 3:4:6:8 的比例来为上述资源文件夹设计图片文件,具体如下:
这里需要注意的是图片文件,当系统根据当前设备的 dpi 在相应文件夹下没有找到图片文件,而其他 dpi 文件夹中存在该图片文件时,系统会对该图片进行一定比例的缩放,然后展示在界面上。
比如,有一张给 xxhdpi 屏幕用的图片,本来应该放在 xxhdpi 文件夹中的,但是误放在了 hdpi 文件夹中,系统会先找到 hdpi 文件夹中的图片,想了一会儿:这是给 hdpi 屏幕用的,图片分辨率较低,当前设备的屏幕是 xxhdpi,所需图片分辨率较高,所以我应该将该图片放大展示,放大几倍呢?480/240 = 2 倍,哈哈,我感觉自己好贴心,好周到啊!其实,效果是错误的,而且很可能造成 OOM。
3. 图标尺寸一览表
Launcher icons
Three-dimensional, front view, with a slight perspective as if viewed from above, so that users perceive some depth.
Action bar, Dialog & Tab icons
These icons are used in the action bar menu. The first number is the size of the icon area, and the second is file size.
Small Contextual Icons
Small icons are used to surface actions and/or provide status for specific items. For example, in the Gmail app, each message has a star icon that marks the message as important.
Notification icons
These are used to represent application notifications in the status bar. They should be flat (no gradients), white and face-on perspective.
参考文献:
- http://iconhandbook.co.uk/reference/chart/android/
- https://www.google.com/design/spec/style/icons.html
- https://www.creativefreedom.co.uk/icon-designers-blog/simple-android-icon-size-guide-for-lollipop-5-1/
- https://www.google.com/design/spec/patterns/notifications.html#
- https://www.google.com/design/spec/style/icons.html#icons-system-icons
- http://petrnohejl.github.io/Android-Cheatsheet-For-Graphic-Designers/
- Android 常用参考文档
- Android参考文档的使用
- Android输入系统参考文档
- android 常用开源参考
- Android-4.0支持触摸屏参考文档转载
- 参考文档
- 参考文档
- 参考文档
- 常用API参考文档及ORELLY的58本电子书籍
- 常用API参考文档及ORELLY的58本电子书籍 .
- Android--常用布局、特效--参考Demo
- [Android]常用官方在线文档
- [参考文档]Apache2配置文件参考
- Cocos2d-x的Android配置以及相关参考文档
- Android 线性布局(LinearLayout)相关官方文档 - 参考部分
- Hibernate参考文档
- Hibernate2 参考文档
- Hibernate参考文档
- jersey框架发送图片到另一台服务器
- 小程序
- SoapUI用groovy脚本提取json数组数据
- extern "c"用法解析
- PHP判断当前是否utf-8
- Android 常用参考文档
- SoapUI命令行方式运行
- 极光IM简单的聊天测试
- 基于STM8的小型操作系统
- LeetCode91. Decode Ways
- PHP检查是否BOM头
- SoapUI对于Json数据进行属性值获取与传递
- 每天学一点linux(9)--文件与目录的默认权限与隐藏权限
- soapUI(groovy脚本作用1)请不要问为什么系列1