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 | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
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 | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() | |||||||||||
![]() |
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 the progress bar padding.
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 the progress bar padding.