public class QuickPopup extends BaseLazyPopupWindow
快速popup
BasePopupWindow.CalledFromWrongThreadException, BasePopupWindow.GravityMode, BasePopupWindow.KeyEventListener, BasePopupWindow.OnBeforeShowCallback, BasePopupWindow.OnBlurOptionInitListener, BasePopupWindow.OnDismissListener, BasePopupWindow.OnPopupWindowShowListener| 构造器和说明 |
|---|
QuickPopup(Fragment fragment,
int width,
int height,
QuickPopupConfig config) |
| 限定符和类型 | 方法和说明 |
|---|---|
protected <C extends QuickPopupConfig> |
applyConfigSetting(C config) |
QuickPopupConfig |
getConfig() |
View |
onCreateContentView()
返回一个contentView以作为PopupWindow的contentView
强烈建议使用 BasePopupWindow.createPopupById(int),该方法支持读取View的xml布局参数,否则可能会出现与布局不一样的展示从而必须手动传入宽高等参数 |
protected Animation |
onCreateDismissAnimation()
该方法决定您的PopupWindow将会以怎样的动画消失,可以返回为
null
如果返回不为空,则在返回动画播放结束后触发 PopupWindow.dismiss()
本类提供一些简单的动画方法:
AnimationHelper:快速创建动画
如果需要用到属性动画,请覆写BasePopupWindow.onCreateDismissAnimator() ()} |
protected Animator |
onCreateDismissAnimator()
该方法决定您的PopupWindow将会以怎样的动画消失(返回
Animator),可以返回为 null
功能详情请看 BasePopupWindow.onCreateDismissAnimation() ()}
|
protected Animation |
onCreateShowAnimation()
该方法决定您的PopupWindow将会以怎样的动画展示出来,可以返回为
null
本类提供一些简单的动画方法:
AnimationHelper:快速创建动画
如果需要用到属性动画,请覆写BasePopupWindow.onCreateShowAnimator() |
protected Animator |
onCreateShowAnimator()
该方法决定您的PopupWindow将会以怎样的动画展示出来(返回
Animator),可以返回为 null
功能详情请看 BasePopupWindow.onCreateShowAnimation()
|
void |
onDestroy() |
void |
onViewCreated(View contentView)
当ContentView创建的时候回调该方法,ContentView指
BasePopupWindow.onCreateContentView()返回的值 |
initImmediatelybindLifecycleOwner, computeGravity, createPopupById, dipToPx, dismiss, dismiss, dismissWithOutAnimate, findViewById, getContentView, getContext, getDismissAnimation, getDismissAnimator, getDisplayAnimateView, getHeight, getMaskOffsetX, getMaskOffsetY, getOffsetX, getOffsetY, getOnBeforeShowCallback, getOnDismissListener, getPopupBackground, getPopupGravity, getPopupWindow, getPreMeasureHeight, getPreMeasureWidth, getShowAnimation, getShowAnimator, getWidth, isAllowDismissWhenTouchOutside, isAllowInterceptTouchEvent, isAutoLocatePopup, isOutSideTouchable, isPopupFadeEnable, isShowing, isTouchable, linkTo, onAnchorBottom, onAnchorBottom, onAnchorTop, onAnchorTop, onBackPressed, onBeforeDismiss, onBeforeShow, onCreateAnimateView, onCreateDismissAnimation, onCreateDismissAnimator, onCreateShowAnimation, onCreateShowAnimator, onDismiss, onDispatchKeyEvent, onInterceptTouchEvent, onLogInternal, onOutSideTouch, onPopupLayout, onShowError, onShowing, onTouchEvent, onWindowFocusChanged, preMeasure, setAdjustInputMethod, setAdjustInputMethod, setAdjustInputMode, setAdjustInputMode, setAdjustInputMode, setAlignBackground, setAlignBackgroundGravity, setAllowDismissWhenTouchOutside, setAllowInterceptTouchEvent, setAutoLocatePopup, setAutoShowInputMethod, setAutoShowInputMethod, setBackground, setBackground, setBackgroundColor, setBackgroundView, setBackPressEnable, setBlurBackgroundEnable, setBlurBackgroundEnable, setBlurOption, setClipChildren, setDebugMode, setDismissAnimation, setDismissAnimator, setFitSize, setHeight, setHeightAsAnchorView, setKeyEventListener, setLayoutDirection, setMaskOffsetX, setMaskOffsetY, setMaskViewDismissAnimation, setMaskViewShowAnimation, setMaxHeight, setMaxWidth, setMinHeight, setMinWidth, setOffsetX, setOffsetY, setOnBeforeShowCallback, setOnDismissListener, setOnKeyboardChangeListener, setOnPopupWindowShowListener, setOutSideDismiss, setOutSideTouchable, setOverlayNavigationBar, setOverlayNavigationBarMode, setOverlayStatusbar, setOverlayStatusbarMode, setPopupAnimationStyle, setPopupFadeEnable, setPopupGravity, setPopupGravity, setPopupGravityMode, setPopupGravityMode, setPopupWindowFullScreen, setShowAnimation, setShowAnimator, setShowKeybaordDelay, setSoftInputMode, setTouchable, setViewClickListener, setWidth, setWidthAsAnchorView, showPopupWindow, showPopupWindow, showPopupWindow, showPopupWindow, syncMaskAnimationDuration, update, update, update, update, update, updateKeyboardAlignpublic QuickPopup(Fragment fragment,
int width,
int height,
QuickPopupConfig config)
public void onViewCreated(View contentView)
BasePopupWindowBasePopupWindow.onCreateContentView()返回的值onViewCreated 在类中 BasePopupWindowprotected <C extends QuickPopupConfig> void applyConfigSetting(C config)
public QuickPopupConfig getConfig()
protected Animation onCreateShowAnimation()
BasePopupWindow
该方法决定您的PopupWindow将会以怎样的动画展示出来,可以返回为 null
本类提供一些简单的动画方法:
AnimationHelper:快速创建动画
如果需要用到属性动画,请覆写BasePopupWindow.onCreateShowAnimator()
onCreateShowAnimation 在类中 BasePopupWindowprotected Animation onCreateDismissAnimation()
BasePopupWindow
该方法决定您的PopupWindow将会以怎样的动画消失,可以返回为 null
如果返回不为空,则在返回动画播放结束后触发PopupWindow.dismiss()
本类提供一些简单的动画方法:
AnimationHelper:快速创建动画
如果需要用到属性动画,请覆写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()
BasePopupWindow返回一个contentView以作为PopupWindow的contentView
BasePopupWindow.createPopupById(int),该方法支持读取View的xml布局参数,否则可能会出现与布局不一样的展示从而必须手动传入宽高等参数onCreateContentView 在类中 BasePopupWindowpublic void onDestroy()
onDestroy 在类中 BasePopupWindow