java.lang.Object | ||
↳ | android.graphics.drawable.Drawable | |
↳ | com.facebook.drawee.drawable.ProgressBarDrawable |
Drawable that displays a progress bar based on the level.
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
ProgressBarDrawable() |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Drawable |
cloneDrawable()
Creates a copy of the drawable.
| ||||||||||
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.
| ||||||||||
boolean |
getIsVertical()
Gets if the progress bar is vertical.
| ||||||||||
int | getOpacity() | ||||||||||
boolean |
getPadding(Rect padding)
Gets the progress bar padding.
| ||||||||||
int |
getRadius()
Gets the radius of the progress bar.
| ||||||||||
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 |
setIsVertical(boolean isVertical)
Sets if the progress bar should be vertical.
| ||||||||||
void |
setPadding(int padding)
Sets the progress bar padding.
| ||||||||||
void |
setRadius(int radius)
The progress bar will be displayed as a rounded corner rectangle, sets the radius here.
|
Protected Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
boolean | onLevelChange(int level) |
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
android.graphics.drawable.Drawable
| |||||||||||
From class
java.lang.Object
| |||||||||||
From interface
com.facebook.drawee.drawable.CloneableDrawable
|
Creates a copy of the drawable.
Gets the progress bar background color.
Gets the progress bar width.
Gets the progress bar color.
Gets whether the progress bar should be hidden when the progress is 0.
Gets if the progress bar is vertical.
Gets the progress bar padding.
Gets the radius of the progress bar.
Sets the progress bar background color.
Sets the progress bar width.
Sets the progress bar color.
Sets whether the progress bar should be hidden when the progress is 0.
Sets if the progress bar should be vertical.
Sets the progress bar padding.
The progress bar will be displayed as a rounded corner rectangle, sets the radius here.