public abstract class SeekBarStateDrawable extends Drawable
SeekBarDrawableDrawable.Callback, Drawable.ConstantState| 构造器和说明 |
|---|
SeekBarStateDrawable(ColorStateList trackStateList,
ColorStateList scrubberStateList,
ColorStateList thumbStateList) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
draw(Canvas canvas) |
abstract void |
draw(Canvas canvas,
Paint paint,
int trackColor,
int scrubberColor,
int thumbColor)
Subclasses should implement this method to do the actual drawing
|
int |
getAlpha() |
ColorStateList[] |
getColor()
Get the Tint ColorStateList
|
int[] |
getCurrentColor()
Get The CurrentColor
|
int |
getOpacity() |
ColorStateList |
getScrubberColor()
Get the Scrubber ColorStateList
|
ColorStateList |
getThumbColor()
Get the Thumb ColorStateList
|
ColorStateList |
getTrackColor()
Get the Track ColorStateList
|
boolean |
isStateful() |
void |
setAlpha(int alpha) |
void |
setColorFilter(ColorFilter cf) |
void |
setScrubberColor(ColorStateList stateList)
Set the Scrubber ColorStateList
|
boolean |
setState(int[] stateSet) |
void |
setThumbColor(ColorStateList stateList)
Set the Thumb ColorStateList
|
void |
setTrackColor(ColorStateList stateList)
Set the Track ColorStateList
|
applyTheme, canApplyTheme, clearColorFilter, copyBounds, copyBounds, createFromPath, createFromResourceStream, createFromResourceStream, createFromStream, createFromXml, createFromXml, createFromXmlInner, createFromXmlInner, getBounds, getCallback, getChangingConfigurations, getColorFilter, getConstantState, getCurrent, getDirtyBounds, getHotspotBounds, getIntrinsicHeight, getIntrinsicWidth, getLayoutDirection, getLevel, getMinimumHeight, getMinimumWidth, getOutline, getPadding, getState, getTransparentRegion, inflate, inflate, invalidateSelf, isAutoMirrored, isFilterBitmap, isVisible, jumpToCurrentState, mutate, onBoundsChange, onLayoutDirectionChanged, onLevelChange, onStateChange, resolveOpacity, scheduleSelf, setAutoMirrored, setBounds, setBounds, setCallback, setChangingConfigurations, setColorFilter, setDither, setFilterBitmap, setHotspot, setHotspotBounds, setLayoutDirection, setLevel, setTint, setTintList, setTintMode, setVisible, unscheduleSelfpublic SeekBarStateDrawable(ColorStateList trackStateList, ColorStateList scrubberStateList, ColorStateList thumbStateList)
public boolean isStateful()
isStateful 在类中 Drawablepublic int getOpacity()
getOpacity 在类中 Drawablepublic void setColorFilter(ColorFilter cf)
setColorFilter 在类中 Drawablepublic void setTrackColor(ColorStateList stateList)
stateList - ColorStateListpublic ColorStateList getTrackColor()
public void setScrubberColor(ColorStateList stateList)
stateList - ColorStateListpublic ColorStateList getScrubberColor()
public void setThumbColor(ColorStateList stateList)
stateList - ColorStateListpublic ColorStateList getThumbColor()
public ColorStateList[] getColor()
public int[] getCurrentColor()
public abstract void draw(Canvas canvas, Paint paint, int trackColor, int scrubberColor, int thumbColor)
canvas - The current Canvas to draw intopaint - The Paint the Paint object that defines with the current
ColorStateList color