1

I've a running graph library developed with onDraw plotting the graph using canvas.drawLine methods. In onTouch I've implemented scroll functionality.

Now my customer wants Zoom/Pinch. Is it possible to perform zoom/pinch on such a view without redrawing for these operations?

What is the best way to implement this?

Now next.. How can I display Zooming indicators for this?? I've some how managed to display scale of zoom (scaleFactor * 100). How will I show a zooming indicator? I can display static images using canvas.drawBitmap. But is there a more better way?

Any help is appreciated

Ramya K Sharma
  • 743
  • 8
  • 16

1 Answers1

2

Add a pinch zoom capability to the graph:

How to implement pinch zoom refer : android pinch zoom

Community
  • 1
  • 1
Vinayak Bevinakatti
  • 40,205
  • 25
  • 108
  • 139