I have an Android app with a MapView, and zoom controls have been implemented. But I want to detect when the zoom level has changed, so I can do certain things when that happens. Is there any listener to do that? Any example?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
With a little bit of research, I found this site:
http://pa.rezendi.com/2010/03/responding-to-zooms-and-pans-in.html
Specifically, this code:
Would seem to do more or less what you want.
Edit:
In other words, you can solve this by subclassing the mapview, and override the dispatchDraw.