Methods Summary |
---|
private void | draw(android.graphics.Canvas canvas, android.graphics.drawable.Drawable drawable)
if (drawable != null) {
drawable.setBounds(0, mClipTopAmount, getWidth(), mActualHeight);
drawable.draw(canvas);
}
|
public void | drawableHotspotChanged(float x, float y)
if (mBackground != null) {
mBackground.setHotspot(x, y);
}
|
protected void | drawableStateChanged()
drawableStateChanged(mBackground);
|
private void | drawableStateChanged(android.graphics.drawable.Drawable d)
if (d != null && d.isStateful()) {
d.setState(getDrawableState());
}
|
public int | getActualHeight()
return mActualHeight;
|
public boolean | hasOverlappingRendering()
// Prevents this view from creating a layer when alpha is animating.
return false;
|
protected void | onDraw(android.graphics.Canvas canvas)
draw(canvas, mBackground);
|
protected void | onFinishInflate()
super.onFinishInflate();
mBackground = mContext.getDrawable(R.drawable.notification_guts_bg);
if (mBackground != null) {
mBackground.setCallback(this);
}
|
public void | setActualHeight(int actualHeight)
mActualHeight = actualHeight;
invalidate();
|
public void | setClipTopAmount(int clipTopAmount)
mClipTopAmount = clipTopAmount;
invalidate();
|
protected boolean | verifyDrawable(android.graphics.drawable.Drawable who)
return super.verifyDrawable(who) || who == mBackground;
|