public class

ProgressBarDrawable

extends Drawable
java.lang.Object
   ↳ android.graphics.drawable.Drawable
     ↳ com.facebook.drawee.drawable.ProgressBarDrawable

Class Overview

Drawable that displays a progress bar based on the level.

Summary

Public Constructors
ProgressBarDrawable()
Public Methods
void draw(Canvas canvas)
int getBackgroundColor()
Gets the progress bar background color.
int getBarWidth()
Gets the progress bar width.
int getColor()
Gets the progress bar color.
boolean getHideWhenZero()
Gets whether the progress bar should be hidden when the progress is 0.
int getOpacity()
boolean getPadding(Rect padding)
Gets the progress bar padding.
void setAlpha(int alpha)
void setBackgroundColor(int backgroundColor)
Sets the progress bar background color.
void setBarWidth(int barWidth)
Sets the progress bar width.
void setColor(int color)
Sets the progress bar color.
void setColorFilter(ColorFilter cf)
void setHideWhenZero(boolean hideWhenZero)
Sets whether the progress bar should be hidden when the progress is 0.
void setPadding(int padding)
Sets the progress bar padding.
Protected Methods
boolean onLevelChange(int level)
[Expand]
Inherited Methods
From class android.graphics.drawable.Drawable
From class java.lang.Object

Public Constructors

public ProgressBarDrawable ()

Public Methods

public void draw (Canvas canvas)

public int getBackgroundColor ()

Gets the progress bar background color.

public int getBarWidth ()

Gets the progress bar width.

public int getColor ()

Gets the progress bar color.

public boolean getHideWhenZero ()

Gets whether the progress bar should be hidden when the progress is 0.

public int getOpacity ()

public boolean getPadding (Rect padding)

Gets the progress bar padding.

public void setAlpha (int alpha)

public void setBackgroundColor (int backgroundColor)

Sets the progress bar background color.

public void setBarWidth (int barWidth)

Sets the progress bar width.

public void setColor (int color)

Sets the progress bar color.

public void setColorFilter (ColorFilter cf)

public void setHideWhenZero (boolean hideWhenZero)

Sets whether the progress bar should be hidden when the progress is 0.

public void setPadding (int padding)

Sets the progress bar padding.

Protected Methods

protected boolean onLevelChange (int level)