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

DismissView

public class DismissView extends StackScrollerDecorView

Fields Summary
private boolean
mDismissAllInProgress
private DismissViewButton
mDismissButton
Constructors Summary
public DismissView(android.content.Context context, android.util.AttributeSet attrs)

        super(context, attrs);
    
Methods Summary
protected android.view.ViewfindContentView()

        return findViewById(R.id.dismiss_text);
    
public booleanisButtonVisible()

        return mDismissButton.isButtonStatic();
    
public booleanisOnEmptySpace(float touchX, float touchY)

        return touchX < mContent.getX()
                || touchX > mContent.getX() + mContent.getWidth()
                || touchY < mContent.getY()
                || touchY > mContent.getY() + mContent.getHeight();
    
protected voidonFinishInflate()

        super.onFinishInflate();
        mDismissButton = (DismissViewButton) findContentView();
    
public voidsetClipBounds(android.graphics.Rect clipBounds)

        if (mDismissAllInProgress) {
            // we don't want any clipping to happen!
            return;
        }
        super.setClipBounds(clipBounds);
    
public voidsetDismissAllInProgress(boolean dismissAllInProgress)

        if (dismissAllInProgress) {
            setClipBounds(null);
        }
        mDismissAllInProgress = dismissAllInProgress;
    
public voidsetOnButtonClickListener(OnClickListener listener)

        mContent.setOnClickListener(listener);
    
public voidshowClearButton()

        mDismissButton.showButton();