如何设置高程颜色? [英] How to set elevation color?

查看:77
本文介绍了如何设置高程颜色?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们在 react-native (doc),但是如何设置它产生的android-shadow"的颜色?

We have the proptype elevationin react-native (doc), but how can I set the color of the "android-shadow" it's producing?

推荐答案

遗憾的是,Android 的 setElevation 产生的阴影颜色无法更改.此外,他们在网络上的 Material Design 指南(如此处)似乎并不表示您可以更改颜色.

Unfortunately, the color of the shadow produced by Android's setElevation cannot be changed. Also, their Material Design guidelines around the web like here don't seem to indicate that you can change the color.

https://developer.android.com/training/material/shadows-剪辑.html

此外,Android 也不支持 React Native 中的框阴影,基于 这个.

In addition, box shadows in React Native are also not supported on Android, based on this.

这篇关于如何设置高程颜色?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆