TextView.SetShadowLayer(Single, Single, Single, Color) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
為文字指定模糊半徑和色彩的陰影,指定距離其繪製位置的距離。
[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)。
本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。
適用於
另請參閱
- <xref:Android.Graphics.Paint.SetShadowLayer(System.Single%2c+System.Single%2c+System.Single%2c+System.Single)>