Skip to content
moagrius edited this page Aug 8, 2013 · 11 revisions
How do I use from XML?
You don't. Since at least 2 method calls are required to have an actionable widget, inflating from XML didn't seem like it was mission-critical. If you'd like to fork a patch, I'd be happy to merge.
I'm using large Paths and am getting crashes or ANRs
The built-in path drawing mechanism uses Canvas.drawPath, which is notably inefficient. Each path is tested with .quickReject before it's drawn, but that's about it. Canvas.drawLines is much more efficient, but looks poor with Paint more complex than a single pixel. If you need larger paths, consider writing your own implementation (with Canvas.drawLines, or a custom bitmap), and adding it to the View tree of the TileView. You can listen for scale changes and react appropriate in whatever fashion makes the most sense for you implementation.

TODO:

Clone this wiki locally