Android Guides | Samples

Android.Graphics.Drawables.ShapeDrawable.ShaderFactory Class

Base class defines a factory object that is called each time the drawable is resized (has a new width or height).

See Also: ShapeDrawable+ShaderFactory

Syntax

[Android.Runtime.Register("android/graphics/drawable/ShapeDrawable$ShaderFactory", DoNotGenerateAcw=true)]
public abstract class ShapeDrawable.ShaderFactory : Object

Remarks

Base class defines a factory object that is called each time the drawable is resized (has a new width or height). Its resize() method returns a corresponding shader, or null. Implement this class if you'd like your ShapeDrawable to use a special Shader, such as a LinearGradient.

[Android Documentation]

Requirements

Namespace: Android.Graphics.Drawables
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 1

The members of Android.Graphics.Drawables.ShapeDrawable.ShaderFactory are listed below.

See Also: Object

Public Constructors

Protected Constructors

A constructor used when creating managed representations of JNI objects; called by the runtime.

Protected Properties

[read-only]
override
ThresholdClassIntPtr. This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.
[read-only]
override
ThresholdTypeType. This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.

Public Methods

abstract
Resize(Int32, Int32) : Shader
Returns the Shader to be drawn when a Drawable is drawn.