XCaffeinated wrote:I guess that is a long-winded way of answering your question of why I didn't add fling or double tap to the tutorials :). As for zoom, yes I should probably add that somewhere :).
Regards,
Sharon
hi Sharon
yes i understand why you didn'n add those flings and double taps ;)
in my Scroll.java i added zoom and it took just couple of lines of code (except handler implementation) but i hate idea how my zooming works - i cannot find out some elegant solution for zooming where the content zooms in, exactly in the spot of double tap (i mean double tap screen location doesn't move, everything else zooms in). i tried several approaches and always it gets too complicated (tons of fields, complex logic etc).
so if you are considering adding zoom, and will figure it out please share it somewhere here. or maybe you know any tutorials describing how to do such things?
my optimized Scroll.java is here, it uses Picture for speeding graphics and StaticLayout for compex text drawing on canvas
thanks

):

