public class ShapeDrawable extends Drawable
| Modifier and Type | Class and Description |
|---|---|
static class |
ShapeDrawable.ShaderFactory |
Drawable.Callback, Drawable.ConstantState| Constructor and Description |
|---|
ShapeDrawable() |
ShapeDrawable(Shape s) |
| Modifier and Type | Method and Description |
|---|---|
void |
draw(Canvas canvas) |
int |
getChangingConfigurations() |
Drawable.ConstantState |
getConstantState() |
int |
getIntrinsicHeight() |
int |
getIntrinsicWidth() |
int |
getOpacity() |
boolean |
getPadding(Rect padding) |
Paint |
getPaint() |
ShapeDrawable.ShaderFactory |
getShaderFactory() |
Shape |
getShape() |
void |
inflate(Resources r,
org.xmlpull.v1.XmlPullParser parser,
AttributeSet attrs) |
protected boolean |
inflateTag(String name,
Resources r,
org.xmlpull.v1.XmlPullParser parser,
AttributeSet attrs) |
Drawable |
mutate() |
protected void |
onBoundsChange(Rect bounds) |
protected void |
onDraw(Shape shape,
Canvas canvas,
Paint paint) |
void |
setAlpha(int alpha) |
void |
setColorFilter(ColorFilter cf) |
void |
setDither(boolean dither) |
void |
setIntrinsicHeight(int height) |
void |
setIntrinsicWidth(int width) |
void |
setPadding(int left,
int top,
int right,
int bottom) |
void |
setPadding(Rect padding) |
void |
setShaderFactory(ShapeDrawable.ShaderFactory fact) |
void |
setShape(Shape s) |
clearColorFilter, copyBounds, copyBounds, createFromPath, createFromResourceStream, createFromResourceStream, createFromStream, createFromXml, createFromXmlInner, getBounds, getCallback, getCurrent, getLevel, getMinimumHeight, getMinimumWidth, getState, getTransparentRegion, invalidateSelf, isStateful, isVisible, jumpToCurrentState, onLevelChange, onStateChange, resolveOpacity, scheduleSelf, setBounds, setBounds, setCallback, setChangingConfigurations, setColorFilter, setFilterBitmap, setLevel, setState, setVisible, unscheduleSelfpublic ShapeDrawable()
public ShapeDrawable(Shape s)
public Shape getShape()
public void setShape(Shape s)
public void setShaderFactory(ShapeDrawable.ShaderFactory fact)
public ShapeDrawable.ShaderFactory getShaderFactory()
public Paint getPaint()
public void setPadding(int left,
int top,
int right,
int bottom)
public void setPadding(Rect padding)
public void setIntrinsicWidth(int width)
public void setIntrinsicHeight(int height)
public int getIntrinsicWidth()
getIntrinsicWidth in class Drawablepublic int getIntrinsicHeight()
getIntrinsicHeight in class Drawablepublic boolean getPadding(Rect padding)
getPadding in class Drawablepublic int getChangingConfigurations()
getChangingConfigurations in class Drawablepublic void setColorFilter(ColorFilter cf)
setColorFilter in class Drawablepublic int getOpacity()
getOpacity in class Drawableprotected void onBoundsChange(Rect bounds)
onBoundsChange in class Drawableprotected boolean inflateTag(String name, Resources r, org.xmlpull.v1.XmlPullParser parser, AttributeSet attrs)
public void inflate(Resources r, org.xmlpull.v1.XmlPullParser parser, AttributeSet attrs) throws org.xmlpull.v1.XmlPullParserException, IOException
inflate in class Drawableorg.xmlpull.v1.XmlPullParserExceptionIOExceptionpublic Drawable.ConstantState getConstantState()
getConstantState in class DrawableCopyright © 2008-2013. All Rights Reserved.