Table of Contents

Class Drawable

Namespace
Android.Graphics.Drawable
Assembly
MASES.Netdroid.dll
public class Drawable : JVMBridgeBase<Drawable>, IDynamicMetaObjectProvider, IJVMBridgeCore, IDisposable, IJVMBridgeBaseStatic, IJVMBridgeBase, IJVMBridgeDefinition
Inheritance
JVMBridgeBase
JVMBridgeBase<Drawable>
Drawable
Implements
IJVMBridgeCore
IJVMBridgeBaseStatic
IJVMBridgeBase
IJVMBridgeDefinition
Derived
Inherited Members
JVMBridgeBase<Drawable>.IsAssignableFrom(IJavaType)
JVMBridgeBase<Drawable>.IsAssignableFrom<T>()
JVMBridgeBase<Drawable>.Execute<T>(params T[])
JVMBridgeBase<Drawable>.DynBridgeClazz
JVMBridgeBase<Drawable>.BridgeClazz
JVMBridgeBase.RuntimeClassNameOf<T>()
JVMBridgeBase.ClassNameOf<T>()
JVMBridgeBase.ClassOf<T>()
JVMBridgeBase.WrapsDirect<TNewClass>(IJavaObject)
JVMBridgeBase.Wraps<TNewClass>(IJavaObject)
JVMBridgeBase.Wraps<TNewClass, TReturn>(IJavaObject)
JVMBridgeBase.Wraps<TNewClass, TReturn, TConverter>(IJavaObject)
JVMBridgeBase.MonitorEnter()
JVMBridgeBase.MonitorExit()
JVMBridgeBase.IsInstanceOf(IJavaType)
JVMBridgeBase.IsInstanceOf<T>()
JVMBridgeBase.RuntimeIsInstanceOf<T>()
JVMBridgeBase.CastTo<TNewClass>()
JVMBridgeBase.CastDirect<TNewClass>()
JVMBridgeBase.Dispose()
JVMBridgeBase.ToString()
JVMBridgeBase.GetHashCode()
JVMBridgeBase.Notify()
JVMBridgeBase.NotifyAll()
JVMBridgeBase.Wait()
JVMBridgeBase.DynBridgeInstance
JVMBridgeBase.BridgeInstance
JVMBridgeBase.IsBridgeListener
Extension Methods

Constructors

Drawable()

Default constructor: even if the corresponding Java class does not have one, it is mandatory for JCOBridge

[Obsolete("Drawable class represents, in .NET, an instance of a JVM interface or abstract class. This public initializer is needed for JCOBridge internal use, other uses can produce unidentible behaviors.")]
public Drawable()

Drawable(params object[])

Generic constructor: it is useful for JCOBridge when there is a derived class which needs to pass arguments to the highest JVMBridgeBase class

[Obsolete("Drawable class represents, in .NET, an instance of a JVM interface or abstract class. This public initializer is needed for JCOBridge internal use, other uses can produce unidentible behaviors.")]
public Drawable(params object[] args)

Parameters

args object[]

Properties

BridgeClassName

public override string BridgeClassName { get; }

Property Value

string

IsBridgeAbstract

public override bool IsBridgeAbstract { get; }

Property Value

bool

IsBridgeCloseable

public override bool IsBridgeCloseable { get; }

Property Value

bool

IsBridgeInterface

public override bool IsBridgeInterface { get; }

Property Value

bool

IsBridgeStatic

public override bool IsBridgeStatic { get; }

Property Value

bool

Methods

ApplyTheme(Theme)

public void ApplyTheme(Resources.Theme arg0)

Parameters

arg0 Resources.Theme

Resources.Theme

CanApplyTheme()

public bool CanApplyTheme()

Returns

bool

bool

ClearColorFilter()

public void ClearColorFilter()

CopyBounds()

public Rect CopyBounds()

Returns

Rect

Rect

CopyBounds(Rect)

public void CopyBounds(Rect arg0)

Parameters

arg0 Rect

Rect

CreateFromPath(String)

public static Drawable CreateFromPath(String arg0)

Parameters

arg0 String

String

Returns

Drawable

Drawable

CreateFromResourceStream(Resources, TypedValue, InputStream, String)

public static Drawable CreateFromResourceStream(Resources arg0, TypedValue arg1, InputStream arg2, String arg3)

Parameters

arg0 Resources

Resources

arg1 TypedValue

TypedValue

arg2 InputStream

InputStream

arg3 String

String

Returns

Drawable

Drawable

CreateFromResourceStream(Resources, TypedValue, InputStream, String, Options)

[Obsolete]
public static Drawable CreateFromResourceStream(Resources arg0, TypedValue arg1, InputStream arg2, String arg3, BitmapFactory.Options arg4)

Parameters

arg0 Resources

Resources

arg1 TypedValue

TypedValue

arg2 InputStream

InputStream

arg3 String

String

arg4 BitmapFactory.Options

BitmapFactory.Options

Returns

Drawable

Drawable

CreateFromStream(InputStream, String)

public static Drawable CreateFromStream(InputStream arg0, String arg1)

Parameters

arg0 InputStream

InputStream

arg1 String

String

Returns

Drawable

Drawable

CreateFromXml(Resources, XmlPullParser)

public static Drawable CreateFromXml(Resources arg0, XmlPullParser arg1)

Parameters

arg0 Resources

Resources

arg1 XmlPullParser

XmlPullParser

Returns

Drawable

Drawable

Exceptions

IOException
XmlPullParserException

CreateFromXml(Resources, XmlPullParser, Theme)

public static Drawable CreateFromXml(Resources arg0, XmlPullParser arg1, Resources.Theme arg2)

Parameters

arg0 Resources

Resources

arg1 XmlPullParser

XmlPullParser

arg2 Resources.Theme

Resources.Theme

Returns

Drawable

Drawable

Exceptions

IOException
XmlPullParserException

CreateFromXmlInner(Resources, XmlPullParser, AttributeSet)

public static Drawable CreateFromXmlInner(Resources arg0, XmlPullParser arg1, AttributeSet arg2)

Parameters

arg0 Resources

Resources

arg1 XmlPullParser

XmlPullParser

arg2 AttributeSet

AttributeSet

Returns

Drawable

Drawable

Exceptions

IOException
XmlPullParserException

CreateFromXmlInner(Resources, XmlPullParser, AttributeSet, Theme)

public static Drawable CreateFromXmlInner(Resources arg0, XmlPullParser arg1, AttributeSet arg2, Resources.Theme arg3)

Parameters

arg0 Resources

Resources

arg1 XmlPullParser

XmlPullParser

arg2 AttributeSet

AttributeSet

arg3 Resources.Theme

Resources.Theme

Returns

Drawable

Drawable

Exceptions

IOException
XmlPullParserException

Draw(Canvas)

public void Draw(Canvas arg0)

Parameters

arg0 Canvas

Canvas

GetAlpha()

public int GetAlpha()

Returns

int

int

GetBounds()

public Rect GetBounds()

Returns

Rect

Rect

GetCallback()

public Drawable.Callback GetCallback()

Returns

Drawable.Callback

Drawable.Callback

GetChangingConfigurations()

public int GetChangingConfigurations()

Returns

int

int

GetColorFilter()

public ColorFilter GetColorFilter()

Returns

ColorFilter

ColorFilter

GetConstantState()

public Drawable.ConstantState GetConstantState()

Returns

Drawable.ConstantState

Drawable.ConstantState

GetCurrent()

public Drawable GetCurrent()

Returns

Drawable

Drawable

GetDirtyBounds()

public Rect GetDirtyBounds()

Returns

Rect

Rect

GetHotspotBounds(Rect)

public void GetHotspotBounds(Rect arg0)

Parameters

arg0 Rect

Rect

GetIntrinsicHeight()

public int GetIntrinsicHeight()

Returns

int

int

GetIntrinsicWidth()

public int GetIntrinsicWidth()

Returns

int

int

GetLayoutDirection()

public int GetLayoutDirection()

Returns

int

int

GetLevel()

public int GetLevel()

Returns

int

int

GetMinimumHeight()

public int GetMinimumHeight()

Returns

int

int

GetMinimumWidth()

public int GetMinimumWidth()

Returns

int

int

GetOpacity()

[Obsolete]
public int GetOpacity()

Returns

int

int

GetOpticalInsets()

public Insets GetOpticalInsets()

Returns

Insets

Insets

GetOutline(Outline)

public void GetOutline(Outline arg0)

Parameters

arg0 Outline

Outline

GetPadding(Rect)

public bool GetPadding(Rect arg0)

Parameters

arg0 Rect

Rect

Returns

bool

bool

GetState()

public int[] GetState()

Returns

int[]

int

GetTransparentRegion()

public Region GetTransparentRegion()

Returns

Region

Region

HasFocusStateSpecified()

public bool HasFocusStateSpecified()

Returns

bool

bool

Inflate(Resources, XmlPullParser, AttributeSet)

public void Inflate(Resources arg0, XmlPullParser arg1, AttributeSet arg2)

Parameters

arg0 Resources

Resources

arg1 XmlPullParser

XmlPullParser

arg2 AttributeSet

AttributeSet

Exceptions

IOException
XmlPullParserException

Inflate(Resources, XmlPullParser, AttributeSet, Theme)

public void Inflate(Resources arg0, XmlPullParser arg1, AttributeSet arg2, Resources.Theme arg3)

Parameters

arg0 Resources

Resources

arg1 XmlPullParser

XmlPullParser

arg2 AttributeSet

AttributeSet

arg3 Resources.Theme

Resources.Theme

Exceptions

IOException
XmlPullParserException

InvalidateSelf()

public void InvalidateSelf()

IsAutoMirrored()

public bool IsAutoMirrored()

Returns

bool

bool

IsFilterBitmap()

public bool IsFilterBitmap()

Returns

bool

bool

IsProjected()

public bool IsProjected()

Returns

bool

bool

IsStateful()

public bool IsStateful()

Returns

bool

bool

IsVisible()

public bool IsVisible()

Returns

bool

bool

JumpToCurrentState()

public void JumpToCurrentState()

Mutate()

public Drawable Mutate()

Returns

Drawable

Drawable

OnLayoutDirectionChanged(int)

public bool OnLayoutDirectionChanged(int arg0)

Parameters

arg0 int

int

Returns

bool

bool

ResolveOpacity(int, int)

public static int ResolveOpacity(int arg0, int arg1)

Parameters

arg0 int

int

arg1 int

int

Returns

int

int

ScheduleSelf(Runnable, long)

public void ScheduleSelf(Runnable arg0, long arg1)

Parameters

arg0 Runnable

Runnable

arg1 long

long

SetAlpha(int)

public void SetAlpha(int arg0)

Parameters

arg0 int

int

SetAutoMirrored(bool)

public void SetAutoMirrored(bool arg0)

Parameters

arg0 bool

bool

SetBounds(Rect)

public void SetBounds(Rect arg0)

Parameters

arg0 Rect

Rect

SetBounds(int, int, int, int)

public void SetBounds(int arg0, int arg1, int arg2, int arg3)

Parameters

arg0 int

int

arg1 int

int

arg2 int

int

arg3 int

int

SetCallback(Callback)

public void SetCallback(Drawable.Callback arg0)

Parameters

arg0 Drawable.Callback

Drawable.Callback

SetChangingConfigurations(int)

public void SetChangingConfigurations(int arg0)

Parameters

arg0 int

int

SetColorFilter(ColorFilter)

public void SetColorFilter(ColorFilter arg0)

Parameters

arg0 ColorFilter

ColorFilter

SetColorFilter(int, Mode)

[Obsolete]
public void SetColorFilter(int arg0, PorterDuff.Mode arg1)

Parameters

arg0 int

int

arg1 PorterDuff.Mode

PorterDuff.Mode

SetDither(bool)

[Obsolete]
public void SetDither(bool arg0)

Parameters

arg0 bool

bool

SetFilterBitmap(bool)

public void SetFilterBitmap(bool arg0)

Parameters

arg0 bool

bool

SetHotspot(float, float)

public void SetHotspot(float arg0, float arg1)

Parameters

arg0 float

float

arg1 float

float

SetHotspotBounds(int, int, int, int)

public void SetHotspotBounds(int arg0, int arg1, int arg2, int arg3)

Parameters

arg0 int

int

arg1 int

int

arg2 int

int

arg3 int

int

SetLayoutDirection(int)

public bool SetLayoutDirection(int arg0)

Parameters

arg0 int

int

Returns

bool

bool

SetLevel(int)

public bool SetLevel(int arg0)

Parameters

arg0 int

int

Returns

bool

bool

SetState(int[])

public bool SetState(int[] arg0)

Parameters

arg0 int[]

int

Returns

bool

bool

SetTint(int)

public void SetTint(int arg0)

Parameters

arg0 int

int

SetTintBlendMode(BlendMode)

public void SetTintBlendMode(BlendMode arg0)

Parameters

arg0 BlendMode

BlendMode

SetTintList(ColorStateList)

public void SetTintList(ColorStateList arg0)

Parameters

arg0 ColorStateList

ColorStateList

SetTintMode(Mode)

public void SetTintMode(PorterDuff.Mode arg0)

Parameters

arg0 PorterDuff.Mode

PorterDuff.Mode

SetVisible(bool, bool)

public bool SetVisible(bool arg0, bool arg1)

Parameters

arg0 bool

bool

arg1 bool

bool

Returns

bool

bool

UnscheduleSelf(Runnable)

public void UnscheduleSelf(Runnable arg0)

Parameters

arg0 Runnable

Runnable