public class

TransparentDrawable

extends Drawable
java.lang.Object
   ↳ android.graphics.drawable.Drawable
     ↳ com.pdftron.pdf.widget.TransparentDrawable

Class Overview

This class is used for drawing a grey rectangle border and a red line inside, It is used to represents the transparent color

Summary

Public Constructors
TransparentDrawable(Context context)
Public Methods
void draw(Canvas canvas)
Overload implementation of draw(Canvas) Draw a light gray transparent rectangle border and a red line
int getOpacity()
Overload implementation of getOpacity()
void setAlpha(int alpha)
Overload implementation of setAlpha(int) Specify an alpha value for the drawable.
void setBorderColor(int borderColor)
Sets rectangle border color
void setColorFilter(ColorFilter colorFilter)
Overload implementation of setColorFilter(int, PorterDuff.Mode)
void setDrawCircle(boolean circle)
Sets draw shape as circle
void setRoundedConer(float roundedConer)
Sets rounded corner
[Expand]
Inherited Methods
From class android.graphics.drawable.Drawable
From class java.lang.Object

Public Constructors

public TransparentDrawable (Context context)

Public Methods

public void draw (Canvas canvas)

Overload implementation of draw(Canvas) Draw a light gray transparent rectangle border and a red line

public int getOpacity ()

Overload implementation of getOpacity()

public void setAlpha (int alpha)

Overload implementation of setAlpha(int) Specify an alpha value for the drawable. 0 means fully transparent, and 255 means fully opaque.

public void setBorderColor (int borderColor)

Sets rectangle border color

Parameters
borderColor border color

public void setColorFilter (ColorFilter colorFilter)

Overload implementation of setColorFilter(int, PorterDuff.Mode)

Parameters
colorFilter The color filter to apply, or null to remove the existing color filter

public void setDrawCircle (boolean circle)

Sets draw shape as circle

public void setRoundedConer (float roundedConer)

Sets rounded corner