3D world

The material environment is a 3D space, which means all objects have x, y, and z dimensions. The z-axis is perpendicularly aligned to the plane of the display, with the positive z-axis extending towards the viewer. Every sheet of material occupies a single position along the z-axis and has a standard 1dp thickness, equivalent toone pixel of thicknesson screens with a pixel density of 160.

On the web, the z-axis is used for layering and not for perspective. The 3D world is emulated by manipulating the y-axis.

3D space with x, y, and z axes

Light and shadow

Within the material environment, virtual lights illuminate the scene. Key lights create directional shadows, while ambient light creates soft shadows from all angles.

Shadows in the material environment are cast by these two light sources. In Android development, shadows occur when light sources are blocked by sheets of material at various positions along the z-axis. On the web, shadows are depicted by manipulating the y-axis only. The following example shows the card with a height of 6dp.

Shadow cast by key light

Shadow cast by ambient light

Combined shadow from key and ambient lights

更多相关文章

  1. 代码中设置drawableleft
  2. android 3.0 隐藏 系统标题栏
  3. Android开发中activity切换动画的实现
  4. Android(安卓)学习 笔记_05. 文件下载
  5. Android中直播视频技术探究之—摄像头Camera视频源数据采集解析
  6. 技术博客汇总
  7. android 2.3 wifi (一)
  8. AndRoid Notification的清空和修改
  9. Android中的Chronometer

随机推荐

  1. Android installed app, never used, can
  2. android屏蔽返回键和Home键
  3. Android-微信抢红包插件-原理分析
  4. 【开发工具】判断请求源是 手机 or PC
  5. android具有折叠效果的控件
  6. Android中事件处理之TouchListener实现步
  7. AndroidManifest.xml文件详解(activity)(一)
  8. Android广播机制
  9. Android 实现windows文件资源管理器
  10. 背光之关闭(turnOff)