public class QuickPopup extends BaseLazyPopupWindow
快速popup
BasePopupWindow.GravityMode, BasePopupWindow.OnBeforeShowCallback, BasePopupWindow.OnBlurOptionInitListener, BasePopupWindow.OnDismissListener, BasePopupWindow.OnPopupWindowShowListenerDEFAULT_BACKGROUND_COLOR, FLAG_KEYBOARD_ALIGN_TO_ROOT, FLAG_KEYBOARD_ALIGN_TO_VIEW, FLAG_KEYBOARD_ANIMATE_ALIGN, FLAG_KEYBOARD_FORCE_ADJUST, FLAG_KEYBOARD_IGNORE_OVER, MATCH_PARENT, WRAP_CONTENT| Constructor and Description |
|---|
QuickPopup(Fragment fragment,
int width,
int height,
QuickPopupConfig config) |
| Modifier and Type | Method and Description |
|---|---|
protected <C extends QuickPopupConfig> |
applyConfigSetting(C config) |
QuickPopupConfig |
getConfig() |
View |
onCreateContentView()
返回一个contentView以作为PopupWindow的contentView
|
protected Animation |
onCreateDismissAnimation()
|
protected Animator |
onCreateDismissAnimator()
该方法决定您的PopupWindow将会以怎样的动画消失(返回
Animator),可以返回为 null
功能详情请看 BasePopupWindow.onCreateDismissAnimation() ()} |
protected Animation |
onCreateShowAnimation()
该方法决定您的PopupWindow将会以怎样的动画展示出来,可以返回为
null |
protected Animator |
onCreateShowAnimator()
该方法决定您的PopupWindow将会以怎样的动画展示出来(返回
Animator),可以返回为 null
功能详情请看 BasePopupWindow.onCreateShowAnimation() |
void |
onViewCreated(View contentView)
当ContentView创建的时候回调该方法,ContentView指
BasePopup.onCreateContentView()返回的值 |
initImmediatelybindLifecycleOwner, computeGravity, createPopupById, dipToPx, dismiss, dismiss, dismissWithOutAnimate, findViewById, getContentView, getContext, getDefaultAlphaAnimation, getDefaultAlphaAnimation, getDefaultScaleAnimation, getDefaultScaleAnimation, getDefaultSlideFromBottomAnimationSet, getDismissAnimation, getDismissAnimator, getDisplayAnimateView, getHeight, getOffsetX, getOffsetY, getOnBeforeShowCallback, getOnDismissListener, getPopupBackground, getPopupGravity, getPopupWindow, getScaleAnimation, getShowAnimation, getShowAnimator, getTranslateVerticalAnimation, getTranslateVerticalAnimation, getWidth, isAllowDismissWhenTouchOutside, isAllowInterceptTouchEvent, isAutoLocatePopup, isOutSideTouchable, isPopupFadeEnable, isShowing, linkTo, onAnchorBottom, onAnchorBottom, onAnchorTop, onAnchorTop, onBackPressed, onCreateAnimateView, onCreateDismissAnimation, onCreateDismissAnimator, onCreateShowAnimation, onCreateShowAnimator, onDestroy, onDismiss, onDispatchKeyEvent, onInterceptTouchEvent, onLogInternal, onOutSideTouch, onPopupLayout, onPreShow, onShowError, onShowing, onTouchEvent, setAdjustInputMethod, setAdjustInputMethod, setAdjustInputMode, setAdjustInputMode, setAlignBackground, setAlignBackgroundGravity, setAllowDismissWhenTouchOutside, setAllowInterceptTouchEvent, setAutoLocatePopup, setAutoShowInputMethod, setAutoShowInputMethod, setBackground, setBackground, setBackgroundColor, setBackgroundView, setBackPressEnable, setBlurBackgroundEnable, setBlurBackgroundEnable, setBlurOption, setClipChildren, setDebugMode, setDismissAnimation, setDismissAnimator, setFitSize, setHeight, setMaxHeight, setMaxWidth, setMinHeight, setMinWidth, setOffsetX, setOffsetY, setOnBeforeShowCallback, setOnDismissListener, setOnPopupWindowShowListener, setOutSideDismiss, setOutSideTouchable, setOverlayStatusbar, setPopupAnimationStyle, setPopupFadeEnable, setPopupGravity, setPopupGravity, setPopupGravityMode, setPopupWindowFullScreen, setShowAnimation, setShowAnimator, setSoftInputMode, setViewClickListener, setWidth, showPopupWindow, showPopupWindow, showPopupWindow, showPopupWindow, update, update, update, update, updatepublic QuickPopup(Fragment fragment,
int width,
int height,
QuickPopupConfig config)
public void onViewCreated(View contentView)
BasePopupWindowBasePopup.onCreateContentView()返回的值onViewCreated in class BasePopupWindowprotected <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 in class BasePopupWindowprotected Animation onCreateDismissAnimation()
BasePopupWindow
该方法决定您的PopupWindow将会以怎样的动画消失,可以返回为 null
如果返回不为空,则在返回动画播放结束后触发PopupWindow.dismiss()
本类提供一些简单的动画方法:
BasePopupWindow.getDefaultAlphaAnimation(boolean) ()}:得到一个默认进入的渐变动画BasePopupWindow.getDefaultScaleAnimation(boolean) ()}:得到一个默认的放大缩小动画BasePopupWindow.getTranslateVerticalAnimation(float, float, int) ()}:快速获取垂直方向的动画
如果需要用到属性动画,请覆写BasePopupWindow.onCreateDismissAnimator() ()}
onCreateDismissAnimation in class BasePopupWindowprotected Animator onCreateDismissAnimator()
BasePopupWindow
该方法决定您的PopupWindow将会以怎样的动画消失(返回 Animator),可以返回为 null
功能详情请看BasePopupWindow.onCreateDismissAnimation() ()}
onCreateDismissAnimator in class BasePopupWindowprotected Animator onCreateShowAnimator()
BasePopupWindow
该方法决定您的PopupWindow将会以怎样的动画展示出来(返回 Animator),可以返回为 null
功能详情请看BasePopupWindow.onCreateShowAnimation()
onCreateShowAnimator in class BasePopupWindowpublic View onCreateContentView()
BasePopup返回一个contentView以作为PopupWindow的contentView
BasePopupWindow.createPopupById(int),该方法支持读取View的xml布局参数,否则可能会出现与布局不一样的展示从而必须手动传入宽高等参数