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)
Draw a light gray transparent rectangle border and a red line
int getOpacity()
void setAlpha(int alpha)
Specify an alpha value for the drawable.
void setBorderColor(int borderColor)
Sets rectangle border color
void setColorFilter(ColorFilter colorFilter)
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)

Draw a light gray transparent rectangle border and a red line

public int getOpacity ()

public void setAlpha (int alpha)

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)

public void setDrawCircle (boolean circle)

Sets draw shape as circle

public void setRoundedConer (float roundedConer)

Sets rounded corner