Comments (3)
You can request a render during a drag event, but it'll be performance hit. Both concepts are discussed in #25. The render request is already throttled by 250 milliseconds - you can tweak that if you wish, but again be careful of the work being required of the UI thread.
from tileview.
I'm aware of the performance. I'd like to request render only if the drag distance is over certain limit, e.g. 100dp. However calling requestRender removes the RENDER_FLAG from a handler's message queue and adds a new one after 250ms. Since dragging the view continuously calls onDrag, the requestRender is effectively cancelling the previous requests and happens only 250ms afer thelast onDrag update (e.g. when I stop dragging the view around). Thus I'd have to add another method, e.g. requestRenderNow, that'd do it instantly. I can see there are some more performance issues raising from this approach so I'll reconsider what can be achieved here. Thanks very much for your help.
from tileview.
FWIW, adding a downsample (the third argument of some addDetailLevel signatures) is the compromise for not rendering during drag/pinch. It's intended to show a low-memory version of the tiled image, scaled. Post back if that's not clear.
Also, I wouldn't necessarily be adverse to adding a "requestRenderNow" (or "requestImmediateRender") method.
from tileview.
Related Issues (20)
- Issues scaling past 1f HOT 3
- Remote tile demo freezes and crashes HOT 2
- Combine smooth scroll and scale HOT 2
- Tiles not properly laid out when Scale < 1 with remote tiles HOT 15
- Open source but no license? HOT 2
- Markers disappear when zooming HOT 4
- Cannot add tile images on the fly HOT 1
- StreamProvider asked to provide data for rows and columns out of bounds with to small images HOT 5
- Tiles outside the image are created HOT 8
- White text on white background in Advanved Tile Demo HOT 1
- Get touched position when touch on the tileview (version 4.0.7)
- longtouch
- App killed in background crashes when returning to foreground HOT 1
- `android.os.BadParcelableException` regarding `com.moagrius.widget.ScrollView$SavedState.<init>` HOT 1
- Use in viewholder for recycler view. HOT 2
- build() method starts to return void instead of TileView HOT 1
- Mike passed away HOT 5
- Does this lib support SVG format
- JCenter -> MavenCenter
- implementation 'com.qozix:tileview:2.7.7' doesn't seem to work HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tileview.