-
Notifications
You must be signed in to change notification settings - Fork 332
added rubber band like scrolling effect #358
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
very cool. i'm not sure how a fling would bounce back (sounds like it's shows interpolation from the word "bounce" with just those offsets, but i haven't had a chance to run it (i'll try to do so this weekend). i'm not sure this feature would be used by enough people to add it to the core api, but i am in the first stages of version 3, which is going to use a plugin system for things like paths, hotspots, markers, etc - effects like this might also be a good fit. |
|
I reworked and polished it. I replaced the Scroller with an OverScroller and adjusted the getConstrainedScroll() methods. |
…roll() and onScroll() allow overscrolling
Updating Tile.draw to use intrinsic dimensions
|
does this have any effect whatsoever if the option is not explicitly turned on? will existing apps with TileView notice any difference if this change is incorporated? |
use localized string format to support non-roman languages
issue-221 dont draw recycled bitmaps
…ScrollMinY, #getScrollLimitX, #getScrollLimitY, #getConstrainedScrollX, #getConstrainedScrollY
…s after they are no longer being used
Feature Request: Overridable Scrolling Limitations
|
@krabo0om you should be able to implement this off the trunk w/o rewriting any base code, now |
Feature Request: Expose API For Capturing Bitmaps On Tile#reset
|
hey @MisterRager, sorry it took me so long to respond. I checked out your changes from 8ff22db and overwrote |
|
np. let's see how this other feature set turns out. i'll leave the PR open |
# Conflicts: # tileview/src/main/java/com/qozix/tileview/widgets/ZoomPanLayout.java
|
Feel free to close this pull request, for now I will just use the simple additional whitespace feature from #384. |
|
👍 |
I've added a simple setter to allow scrolling outside of the image. A (nice) side effect is a rubber band like effect, which should help to visualize the edge of the image.
It works most of the times, but if it's a drag and not a fling the view will not bounce back. Although we could sell this as a feature :D
However, I didn't had time to look into it further, but if you like this feature and don't see a breaking change I'll finalize it.