android从API21开始,引入了2个新属性,用于设置控件高度,控件越高,阴影越大
Z = elevation + translationZ
elevation一般用于设置固定高度,translationZ一般用于动画(高度动态变化)
【Android】【UI】设置控件高度和阴影

相关文章: