Is there any way to "overscroll" a PhotoView?
- Dominant language
- Java
- Stars
- 18.8k
- Forks
- 3.9k
- PR merge metrics
- No merged PRs in 30d
Description
I would like to be able to overscroll a `PhotoView`. For example, if a user zooms in and scrolls all the way to the bottom of the image contained in the `PhotoView`, and then keeps pulling the image upward, I would like the `PhotoView` to realize it has scrolled to the edge of its bottom bound, and then essentially translate upwards. Currently you cannot do this, in this example the bottom of the image cannot be scrolled beyond the bottom of the `PhotoView` itself.
I tried implementing this custom, by wrapping the `PhotoView` in a custom `ViewGroup`, and overriding `requestDisallowInterceptTouchEvent` in the `ViewGroup`, but from what I've gathered from logs I added, `PhotoView` doesn't call that method in a way that makes it easy to implement what I want
Contributor guide
Assessment
This issue has not been assessed yet.