首页 > 其他 > 详细

elevation 和 translationZ的区别

时间:2015-12-12 18:50:37      阅读:1532      评论:0      收藏:0      [点我收藏+]

Z轴阴影: Z = elevation + translationZ

elevation 是静态值,是View在Z轴上的初始值

translationZ是动态值,是Z上的偏移变化

参考 http://stackoverflow.com/questions/29367804/difference-between-elevation-and-translationz

That is because the actual Z value is the sum of the elevation and the translationZ

In the docs the say elevation is "base z depth of the view" and this is a static variable, while translationZ is dynamic.

So elevation is your start value and for animations you should use translationZ.

 

elevation 和 translationZ的区别

原文:http://www.cnblogs.com/krislight1105/p/5041587.html

(1)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!