语言

TextView.SetShadowLayer(Single, Single, Single, Color) 方法

定义

为文本提供指定模糊半径和颜色的阴影,该阴影与其绘制位置之间的指定距离。

[Android.Runtime.Register("setShadowLayer", "(FFFI)V", "GetSetShadowLayer_FFFIHandler")]
public virtual void SetShadowLayer(float radius, float dx, float dy, Android.Graphics.Color color);
[<Android.Runtime.Register("setShadowLayer", "(FFFI)V", "GetSetShadowLayer_FFFIHandler")>]
abstract member SetShadowLayer : single * single * single * Android.Graphics.Color -> unit
override this.SetShadowLayer : single * single * single * Android.Graphics.Color -> unit

参数

radius
Single

float

dx
Single

float

dy
Single

float

color
Color

int

属性

注解

为文本提供指定模糊半径和颜色的阴影,该阴影与其绘制位置之间的指定距离。

生成的文本阴影不会与负责实时阴影的视图的属性交互, View#getElevation() elevation 并且 View#getTranslationZ() translationZ。

Java文档android.widget.TextView.setShadowLayer(float, float, float, int)。

本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。

适用于

另请参阅

  • <xref:Android.Graphics.Paint.SetShadowLayer(System.Single%2c+System.Single%2c+System.Single%2c+System.Single)>