Skip to content

Latest commit

 

History

History
22 lines (18 loc) · 797 Bytes

README.md

File metadata and controls

22 lines (18 loc) · 797 Bytes

AnimationPopupWindow

PopupWindow添加显示和消失动画
使用
  • 1、添加引用
maven { url 'https://www.jitpack.io' }
implementation 'com.github.whxceg:AnimationPopupWindow:0.0.2'
  • 2、把项目中的PopupWindow替换成AnimationPopupWindow并使用addAnimation给View添加动画和removeAnimation移除动画
 mPopupWindow = new AnimationPopupWindow(view, ViewGroup.LayoutParams.WRAP_CONTENT, ViewGroup.LayoutParams.WRAP_CONTENT, true);

 mPopupWindow.addAnimation(R.id.lv, R.anim.slide_top_to_bottom, R.anim.slide_bottom_to_top);
        
截图

image image