I have a graph API
that I am using to display data. Now, I wish to enable pinch
to zoom from within the graph such that the user can zoom into the graph. I tried to implement with ScaleGestureDetector using the method described in Pinch zoom for custom view. But the problem I am getting is:
- When I try to invalidate() it says
Cannot resolve method
- In the
onDraw
method, when I codesuper.onDraw(canvas);
it sayscannot resolve method onDraw
.
I am new to Android development, so excuse me if the question is too basic. I have been read the Android Developers blog on Multitouch and I have used the stackoverflow link mentioned above; still no luck. Any help would be appreciated.
The graph API I used is from here.