Sdílet prostřednictvím


View.SetRenderEffect(RenderEffect) Method

Definition

Configure the android.graphics.RenderEffect to apply to this View.

[Android.Runtime.Register("setRenderEffect", "(Landroid/graphics/RenderEffect;)V", "GetSetRenderEffect_Landroid_graphics_RenderEffect_Handler", ApiSince=31)]
public virtual void SetRenderEffect (Android.Graphics.RenderEffect? renderEffect);
[<Android.Runtime.Register("setRenderEffect", "(Landroid/graphics/RenderEffect;)V", "GetSetRenderEffect_Landroid_graphics_RenderEffect_Handler", ApiSince=31)>]
abstract member SetRenderEffect : Android.Graphics.RenderEffect -> unit
override this.SetRenderEffect : Android.Graphics.RenderEffect -> unit

Parameters

renderEffect
RenderEffect

to be applied to the View. Passing null clears the previously configured RenderEffect

Attributes

Remarks

Configure the android.graphics.RenderEffect to apply to this View. This will apply a visual effect to the results of the View before it is drawn. For example if RenderEffect#createBlurEffect(float, float, RenderEffect, Shader.TileMode) is provided, the contents will be drawn in a separate layer, then this layer will be blurred when this View is drawn.

Java documentation for android.view.View.setRenderEffect(android.graphics.RenderEffect).

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