FileDocCategorySizeDatePackage
NotificationGuts.javaAPI DocAndroid 5.1 API2862Thu Mar 12 22:22:42 GMT 2015com.android.systemui.statusbar

NotificationGuts

public class NotificationGuts extends android.widget.FrameLayout
The guts of a notification revealed when performing a long press.

Fields Summary
private android.graphics.drawable.Drawable
mBackground
private int
mClipTopAmount
private int
mActualHeight
Constructors Summary
public NotificationGuts(android.content.Context context, android.util.AttributeSet attrs)

        super(context, attrs);
        setWillNotDraw(false);
    
Methods Summary
private voiddraw(android.graphics.Canvas canvas, android.graphics.drawable.Drawable drawable)

        if (drawable != null) {
            drawable.setBounds(0, mClipTopAmount, getWidth(), mActualHeight);
            drawable.draw(canvas);
        }
    
public voiddrawableHotspotChanged(float x, float y)

        if (mBackground != null) {
            mBackground.setHotspot(x, y);
        }
    
protected voiddrawableStateChanged()

        drawableStateChanged(mBackground);
    
private voiddrawableStateChanged(android.graphics.drawable.Drawable d)

        if (d != null && d.isStateful()) {
            d.setState(getDrawableState());
        }
    
public intgetActualHeight()

        return mActualHeight;
    
public booleanhasOverlappingRendering()


        // Prevents this view from creating a layer when alpha is animating.
        return false;
    
protected voidonDraw(android.graphics.Canvas canvas)

        draw(canvas, mBackground);
    
protected voidonFinishInflate()

        super.onFinishInflate();
        mBackground = mContext.getDrawable(R.drawable.notification_guts_bg);
        if (mBackground != null) {
            mBackground.setCallback(this);
        }
    
public voidsetActualHeight(int actualHeight)

        mActualHeight = actualHeight;
        invalidate();
    
public voidsetClipTopAmount(int clipTopAmount)

        mClipTopAmount = clipTopAmount;
        invalidate();
    
protected booleanverifyDrawable(android.graphics.drawable.Drawable who)

        return super.verifyDrawable(who) || who == mBackground;