goweii / AnyLayer

Android稳定高效的浮层创建管理框架
https://github.com/goweii/AnyLayer
Apache License 2.0
993 stars 114 forks source link

可以让跟随targetView滑动吗? #12

Closed ChillingVan closed 5 years ago

ChillingVan commented 5 years ago
  1. 可以使用targetView.getViewTreeObserver().addOnScrollChangedListener来监听target的滑动事件
  2. PopupWindow有类似的功能
  3. 目前看了下应该是不可以的,demo好像弹出popup后也动不了了。 如有误请斧正

然后看了下似乎是用margin来控制弹出的坐标的,个人感觉用layout方法好些

goweii commented 5 years ago

感谢建议,这个功能我也在考虑,有空再实现。

goweii commented 5 years ago

已实现跟随targetView滑动,需设置outsideInterceptTouchEvent(false)可响应底部Activity的事件

goweii commented 5 years ago

需升级到2.5.0版

ChillingVan commented 5 years ago

谢谢,试了一下,demo里关不了这个Popup了,不过小问题。