public class BubbleDrawable
extends android.graphics.drawable.Drawable
| 限定符和类型 | 类和说明 |
|---|---|
static class |
BubbleDrawable.ArrowLocation |
static class |
BubbleDrawable.BubbleType |
| 限定符和类型 | 字段和说明 |
|---|---|
static float |
DEFAULT_ANGLE |
static float |
DEFAULT_ARROW_HEIGHT |
static float |
DEFAULT_ARROW_POSITION |
static float |
DEFAULT_ARROW_WITH |
static int |
DEFAULT_BUBBLE_COLOR |
| 构造器和说明 |
|---|
BubbleDrawable(android.graphics.Bitmap srcBitmap) |
BubbleDrawable(android.graphics.drawable.Drawable srcDrawable) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
draw(android.graphics.Canvas canvas) |
int |
getIntrinsicHeight() |
int |
getIntrinsicWidth() |
int |
getOpacity() |
protected void |
onBoundsChange(android.graphics.Rect bounds) |
void |
setAlpha(int alpha) |
BubbleDrawable |
setAngle(float mAngle) |
BubbleDrawable |
setArrowCenter(boolean arrowCenter) |
BubbleDrawable |
setArrowHeight(float mArrowHeight) |
BubbleDrawable |
setArrowLocation(BubbleDrawable.ArrowLocation arrowLocation) |
BubbleDrawable |
setArrowPosition(float mArrowPosition) |
BubbleDrawable |
setArrowWidth(float mArrowWidth) |
BubbleDrawable |
setBubbleBitmap(android.graphics.Bitmap bubbleBitmap) |
BubbleDrawable |
setBubbleColor(int bubbleColor) |
BubbleDrawable |
setBubbleType(BubbleDrawable.BubbleType bubbleType) |
void |
setColorFilter(android.graphics.ColorFilter cf) |
applyTheme, canApplyTheme, clearColorFilter, copyBounds, copyBounds, createFromPath, createFromResourceStream, createFromResourceStream, createFromStream, createFromXml, createFromXml, createFromXmlInner, createFromXmlInner, getAlpha, getBounds, getCallback, getChangingConfigurations, getColorFilter, getConstantState, getCurrent, getDirtyBounds, getHotspotBounds, getLayoutDirection, getLevel, getMinimumHeight, getMinimumWidth, getOpticalInsets, getOutline, getPadding, getState, getTransparentRegion, inflate, inflate, invalidateSelf, isAutoMirrored, isFilterBitmap, isProjected, isStateful, isVisible, jumpToCurrentState, mutate, onLayoutDirectionChanged, onLevelChange, onStateChange, resolveOpacity, scheduleSelf, setAutoMirrored, setBounds, setBounds, setCallback, setChangingConfigurations, setColorFilter, setDither, setFilterBitmap, setHotspot, setHotspotBounds, setLayoutDirection, setLevel, setState, setTint, setTintBlendMode, setTintList, setTintMode, setVisible, unscheduleSelfpublic static final float DEFAULT_ARROW_WITH
public static final float DEFAULT_ARROW_HEIGHT
public static final float DEFAULT_ANGLE
public static final float DEFAULT_ARROW_POSITION
public static final int DEFAULT_BUBBLE_COLOR
public BubbleDrawable(android.graphics.Bitmap srcBitmap)
public BubbleDrawable(android.graphics.drawable.Drawable srcDrawable)
public BubbleDrawable setArrowWidth(float mArrowWidth)
public BubbleDrawable setAngle(float mAngle)
public BubbleDrawable setArrowHeight(float mArrowHeight)
public BubbleDrawable setArrowPosition(float mArrowPosition)
public BubbleDrawable setBubbleColor(int bubbleColor)
public BubbleDrawable setBubbleBitmap(android.graphics.Bitmap bubbleBitmap)
public BubbleDrawable setArrowLocation(BubbleDrawable.ArrowLocation arrowLocation)
public BubbleDrawable setBubbleType(BubbleDrawable.BubbleType bubbleType)
public BubbleDrawable setArrowCenter(boolean arrowCenter)
protected void onBoundsChange(android.graphics.Rect bounds)
onBoundsChange 在类中 android.graphics.drawable.Drawablepublic void draw(android.graphics.Canvas canvas)
draw 在类中 android.graphics.drawable.Drawablepublic int getOpacity()
getOpacity 在类中 android.graphics.drawable.Drawablepublic void setAlpha(int alpha)
setAlpha 在类中 android.graphics.drawable.Drawablepublic void setColorFilter(android.graphics.ColorFilter cf)
setColorFilter 在类中 android.graphics.drawable.Drawablepublic int getIntrinsicWidth()
getIntrinsicWidth 在类中 android.graphics.drawable.Drawablepublic int getIntrinsicHeight()
getIntrinsicHeight 在类中 android.graphics.drawable.Drawable