public class

MaskedDrawable

extends DrawableWrapper
java.lang.Object
   ↳ DrawableWrapper
     ↳ com.droidux.ui.widgets.layout.drawable.MaskedDrawable

Class Overview

A Drawable that mask another drawable.

Summary

Public Constructors
MaskedDrawable(Drawable drawable)
MaskedDrawable(Drawable drawable, Drawable mask)
Construct a masked drawable with given drawable and mask.
Public Methods
Drawable getMaskDrawable()
Gets the mask drawable.
void setMaskDrawable(Drawable mask)
Set the mask drawable.
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public MaskedDrawable (Drawable drawable)

Since: API Level 3.0

public MaskedDrawable (Drawable drawable, Drawable mask)

Since: API Level 3.0

Construct a masked drawable with given drawable and mask.

Parameters
drawable The drawable to be masked
mask The drawable to be used as mask.

Public Methods

public Drawable getMaskDrawable ()

Since: API Level 3.0

Gets the mask drawable.

Returns
  • The drawable used as mask.

public void setMaskDrawable (Drawable mask)

Since: API Level 3.0

Set the mask drawable.

Parameters
mask The drawable to be used as mask.