public class BezelImageView
extends AppCompatImageView
ImageView that draws its contents inside a mask and draws a border
drawable on top. This is useful for applying a beveled look to image contents, but is also
flexible enough for use with other desired aesthetics.
Taken from Google IO 2014 sample app.| Constructor and Description |
|---|
BezelImageView(android.content.Context context) |
BezelImageView(android.content.Context context,
android.util.AttributeSet attrs) |
BezelImageView(android.content.Context context,
android.util.AttributeSet attrs,
int defStyle) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
drawableStateChanged() |
void |
invalidateDrawable(android.graphics.drawable.Drawable who) |
protected void |
onDraw(android.graphics.Canvas canvas) |
protected boolean |
setFrame(int l,
int t,
int r,
int b) |
protected boolean |
verifyDrawable(android.graphics.drawable.Drawable who) |
public BezelImageView(android.content.Context context)
public BezelImageView(android.content.Context context,
android.util.AttributeSet attrs)
public BezelImageView(android.content.Context context,
android.util.AttributeSet attrs,
int defStyle)
protected boolean setFrame(int l,
int t,
int r,
int b)
protected void onDraw(android.graphics.Canvas canvas)
protected void drawableStateChanged()
public void invalidateDrawable(android.graphics.drawable.Drawable who)
protected boolean verifyDrawable(android.graphics.drawable.Drawable who)