Methods Summary |
---|
protected android.view.View | findContentView()
return findViewById(R.id.dismiss_text);
|
public boolean | isButtonVisible()
return mDismissButton.isButtonStatic();
|
public boolean | isOnEmptySpace(float touchX, float touchY)
return touchX < mContent.getX()
|| touchX > mContent.getX() + mContent.getWidth()
|| touchY < mContent.getY()
|| touchY > mContent.getY() + mContent.getHeight();
|
protected void | onFinishInflate()
super.onFinishInflate();
mDismissButton = (DismissViewButton) findContentView();
|
public void | setClipBounds(android.graphics.Rect clipBounds)
if (mDismissAllInProgress) {
// we don't want any clipping to happen!
return;
}
super.setClipBounds(clipBounds);
|
public void | setDismissAllInProgress(boolean dismissAllInProgress)
if (dismissAllInProgress) {
setClipBounds(null);
}
mDismissAllInProgress = dismissAllInProgress;
|
public void | setOnButtonClickListener(OnClickListener listener)
mContent.setOnClickListener(listener);
|
public void | showClearButton()
mDismissButton.showButton();
|