public class QuickPopup extends BasePopupWindow
快速popup
DEBUG, DEFAULT_BACKGROUND_COLOR, MATCH_PARENT, WRAP_CONTENT| 构造器和说明 |
|---|
QuickPopup(Context context,
QuickPopupConfig config,
QuickPopupBuilder.OnConfigApplyListener onConfigApplyListener,
int w,
int h) |
attachLifeCycle, callDismissAtOnce, createPopupById, delayInit, dipToPx, dismiss, dismiss, dismissWithOutAnimate, findViewById, getContentView, getContext, getDefaultAlphaAnimation, getDefaultAlphaAnimation, getDefaultScaleAnimation, getDefaultScaleAnimation, getDefaultSlideFromBottomAnimationSet, getDismissAnimation, getDismissAnimator, getDisplayAnimateView, getHeight, getOffsetX, getOffsetY, getOnBeforeShowCallback, getOnDismissListener, getPopupBackground, getPopupGravity, getPopupWindow, getScaleAnimation, getScreenHeight, getScreenWidth, getShowAnimation, getShowAnimator, getTranslateVerticalAnimation, getTranslateVerticalAnimation, getWidth, isAllowDismissWhenTouchOutside, isAllowInterceptTouchEvent, isAutoLocatePopup, isOutSideTouchable, isPopupFadeEnable, isShowing, linkTo, onAnchorBottom, onAnchorBottom, onAnchorTop, onAnchorTop, onBackPressed, onBeforeDismiss, onCreateAnimateView, onDismiss, onDispatchKeyEvent, onFindDecorView, onInterceptTouchEvent, onOutSideTouch, onTouchEvent, removeLifeCycle, setAdjustInputMethod, setAdjustInputMethod, setAlignBackground, setAlignBackgroundGravity, setAllowDismissWhenTouchOutside, setAllowInterceptTouchEvent, setAutoLocatePopup, setAutoShowInputMethod, setBackground, setBackground, setBackgroundColor, setBackgroundView, setBackPressEnable, setBlurBackgroundEnable, setBlurBackgroundEnable, setBlurOption, setClipChildren, setClipToScreen, setDebugMode, setDismissAnimation, setDismissAnimator, setEventInterceptor, setHeight, setKeepSize, setMaxHeight, setMaxWidth, setMinHeight, setMinWidth, setOffsetX, setOffsetY, setOnBeforeShowCallback, setOnDismissListener, setOutSideDismiss, setOutSideTouchable, setPopupAnimationStyle, setPopupFadeEnable, setPopupGravity, setPopupGravity, setPopupWindowFullScreen, setShowAnimation, setShowAnimator, setSoftInputMode, setViewClickListener, setWidth, showPopupWindow, showPopupWindow, showPopupWindow, showPopupWindow, update, update, update, update, updatepublic QuickPopup(Context context, QuickPopupConfig config, QuickPopupBuilder.OnConfigApplyListener onConfigApplyListener, int w, int h)
protected <C extends QuickPopupConfig> void applyConfigSetting(C config)
public QuickPopupConfig getConfig()
protected Animation onCreateShowAnimation()
BasePopupWindow
该方法决定您的PopupWindow将会以怎样的动画展示出来,可以返回为 null
本类提供一些简单的动画方法:
BasePopupWindow.getDefaultAlphaAnimation():得到一个默认进入的渐变动画BasePopupWindow.getDefaultScaleAnimation():得到一个默认的放大缩小动画BasePopupWindow.getTranslateVerticalAnimation(float, float, int) ()}:快速获取垂直方向的动画
如果需要用到属性动画,请覆写BasePopupWindow.onCreateShowAnimator()
onCreateShowAnimation 在类中 BasePopupWindowprotected Animation onCreateDismissAnimation()
BasePopupWindow
该方法决定您的PopupWindow将会以怎样的动画消失,可以返回为 null
如果返回不为空,则在返回动画播放结束后触发PopupWindow.dismiss()
本类提供一些简单的动画方法:
BasePopupWindow.getDefaultAlphaAnimation(boolean) ()}:得到一个默认进入的渐变动画BasePopupWindow.getDefaultScaleAnimation(boolean) ()}:得到一个默认的放大缩小动画BasePopupWindow.getTranslateVerticalAnimation(float, float, int) ()}:快速获取垂直方向的动画
如果需要用到属性动画,请覆写BasePopupWindow.onCreateDismissAnimator() ()}
onCreateDismissAnimation 在类中 BasePopupWindowprotected Animator onCreateDismissAnimator()
BasePopupWindow
该方法决定您的PopupWindow将会以怎样的动画消失(返回 Animator),可以返回为 null
功能详情请看BasePopupWindow.onCreateDismissAnimation() ()}
protected Animator onCreateShowAnimator()
BasePopupWindow
该方法决定您的PopupWindow将会以怎样的动画展示出来(返回 Animator),可以返回为 null
功能详情请看BasePopupWindow.onCreateShowAnimation()
onCreateShowAnimator 在类中 BasePopupWindowpublic View onCreateContentView()
BasePopup返回一个contentView以作为PopupWindow的contentView
BasePopupWindow.createPopupById(int),该方法支持读取View的xml布局参数,否则可能会出现与布局不一样的展示从而必须手动传入宽高等参数