共用方式為


TextView.SetShadowLayer(Single, Single, Single, Color) Method

Definition

Gives the text a shadow of the specified blur radius and color, the specified distance from its drawn position.

[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

Parameters

radius
Single
dx
Single
dy
Single
color
Color
Attributes

Remarks

Gives the text a shadow of the specified blur radius and color, the specified distance from its drawn position.

The text shadow produced does not interact with the properties on view that are responsible for real time shadows, View#getElevation() elevation and View#getTranslationZ() translationZ.

Java documentation for android.widget.TextView.setShadowLayer(float, float, float, int).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to

See also

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