public class ProgressWheel
extends View
| Constructor and Description |
|---|
ProgressWheel(Context context)
The constructor for the ProgressWheel
|
ProgressWheel(Context context,
AttributeSet attrs)
The constructor for the ProgressWheel
|
| Modifier and Type | Method and Description |
|---|---|
int |
getBarColor() |
int |
getBarLength() |
int |
getBarWidth() |
int |
getCircleColor() |
int |
getCircleRadius() |
int |
getDelayMillis() |
int |
getPaddingBottom() |
int |
getPaddingLeft() |
int |
getPaddingRight() |
int |
getPaddingTop() |
int |
getRimColor() |
Shader |
getRimShader() |
int |
getRimWidth() |
int |
getSpinSpeed() |
int |
getTextColor() |
int |
getTextSize() |
Typeface |
getTypeface() |
void |
incrementProgress()
Increment the progress by 1 (of 360)
|
void |
onAttachedToWindow()
Now we know the dimensions of the view, setup the bounds and paints
|
protected void |
onDraw(Canvas canvas) |
protected void |
onSizeChanged(int w,
int h,
int oldw,
int oldh) |
void |
resetCount()
Reset the count (in increment mode)
|
void |
setBarColor(int barColor) |
void |
setBarLength(int barLength) |
void |
setBarWidth(int barWidth) |
void |
setCircleColor(int circleColor) |
void |
setCircleRadius(int circleRadius) |
void |
setDelayMillis(int delayMillis) |
void |
setPaddingBottom(int paddingBottom) |
void |
setPaddingLeft(int paddingLeft) |
void |
setPaddingRight(int paddingRight) |
void |
setPaddingTop(int paddingTop) |
void |
setProgress(int i)
Set the progress to a specific value
|
void |
setRimColor(int rimColor) |
void |
setRimShader(Shader shader) |
void |
setRimWidth(int rimWidth) |
void |
setSpinSpeed(int spinSpeed) |
void |
setText(java.lang.String text)
Set the text in the progress bar
Doesn't invalidate the view
|
void |
setTextColor(int textColor) |
void |
setTextSize(int textSize) |
void |
setTypeface(Typeface typeface) |
void |
spin()
Puts the view on spin mode
|
void |
spinOnce()
Starts a one time spin
|
void |
stopSpinning()
Turn off spin mode
|
public ProgressWheel(Context context)
context - public ProgressWheel(Context context,
AttributeSet attrs)
context - attrs - public void onAttachedToWindow()
protected void onDraw(Canvas canvas)
public void resetCount()
public void stopSpinning()
public void spin()
public void spinOnce()
public void incrementProgress()
public void setProgress(int i)
public void setText(java.lang.String text)
text - the text to show ('\n' constitutes a new line)public int getCircleRadius()
public void setCircleRadius(int circleRadius)
public int getBarLength()
public void setBarLength(int barLength)
public int getBarWidth()
public void setBarWidth(int barWidth)
public int getTextSize()
public void setTextSize(int textSize)
public Typeface getTypeface()
public void setTypeface(Typeface typeface)
public int getPaddingTop()
public void setPaddingTop(int paddingTop)
public int getPaddingBottom()
public void setPaddingBottom(int paddingBottom)
public int getPaddingLeft()
public void setPaddingLeft(int paddingLeft)
public int getPaddingRight()
public void setPaddingRight(int paddingRight)
public int getBarColor()
public void setBarColor(int barColor)
public int getCircleColor()
public void setCircleColor(int circleColor)
public int getRimColor()
public void setRimColor(int rimColor)
public Shader getRimShader()
public void setRimShader(Shader shader)
public int getTextColor()
public void setTextColor(int textColor)
public int getSpinSpeed()
public void setSpinSpeed(int spinSpeed)
public int getRimWidth()
public void setRimWidth(int rimWidth)
public int getDelayMillis()
public void setDelayMillis(int delayMillis)
protected void onSizeChanged(int w,
int h,
int oldw,
int oldh)