public class PorterShapeImageView extends PorterImageView
| Constructor and Description |
|---|
PorterShapeImageView(android.content.Context context) |
PorterShapeImageView(android.content.Context context,
android.util.AttributeSet attrs) |
PorterShapeImageView(android.content.Context context,
android.util.AttributeSet attrs,
int defStyleAttr) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
paintMaskCanvas(android.graphics.Canvas maskCanvas,
android.graphics.Paint maskPaint,
int width,
int height) |
void |
setIconDrawable(android.graphics.drawable.Drawable drawable)
设置图标资源
|
invalidate, onDraw, onMeasure, onSizeChanged, setTintColorpublic PorterShapeImageView(android.content.Context context)
public PorterShapeImageView(android.content.Context context,
android.util.AttributeSet attrs)
public PorterShapeImageView(android.content.Context context,
android.util.AttributeSet attrs,
int defStyleAttr)
public void setIconDrawable(android.graphics.drawable.Drawable drawable)
drawable - protected void paintMaskCanvas(android.graphics.Canvas maskCanvas,
android.graphics.Paint maskPaint,
int width,
int height)
paintMaskCanvas in class PorterImageView