Freigeben über


ShapeDrawable.SetShaderFactory(ShapeDrawable+ShaderFactory) Method

Definition

Sets a ShaderFactory to which requests for a android.graphics.Shader object will be made.

[Android.Runtime.Register("setShaderFactory", "(Landroid/graphics/drawable/ShapeDrawable$ShaderFactory;)V", "GetSetShaderFactory_Landroid_graphics_drawable_ShapeDrawable_ShaderFactory_Handler")]
public virtual void SetShaderFactory (Android.Graphics.Drawables.ShapeDrawable.ShaderFactory? fact);
[<Android.Runtime.Register("setShaderFactory", "(Landroid/graphics/drawable/ShapeDrawable$ShaderFactory;)V", "GetSetShaderFactory_Landroid_graphics_drawable_ShapeDrawable_ShaderFactory_Handler")>]
abstract member SetShaderFactory : Android.Graphics.Drawables.ShapeDrawable.ShaderFactory -> unit
override this.SetShaderFactory : Android.Graphics.Drawables.ShapeDrawable.ShaderFactory -> unit

Parameters

fact
ShapeDrawable.ShaderFactory

an instance of your ShaderFactory implementation

Attributes

Remarks

Java documentation for android.graphics.drawable.ShapeDrawable.setShaderFactory(android.graphics.drawable.ShaderFactory).

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