在View上单独设置elevation是看不到任何效果的,需要在设置了elevation的View 上同时设置backgroundColor这个属性才能看到渐变的阴影。
参考 react native issue 10411
在View上单独设置elevation是看不到任何效果的,需要在设置了elevation的View 上同时设置backgroundColor这个属性才能看到渐变的阴影。
参考 react native issue 10411
本文标题:Android elevation not working
本文链接:https://www.haomeiwen.com/subject/wbrydxtx.html
网友评论