Jack Dsilva
Jack Dsilva

Reputation: 1514

How to set zooming controls to the customized buttons?

I have an UI in which I am having a WebView and two buttons on top of it.Say,I want to set zooming controls for these two buttons i.e one for zooming in and the other for zooming out.

How will I do this? I know that WebView and MapView do have automatic zoom controls but I want to set them to the buttons which I have created in my UI.

Any help?

Upvotes: 2

Views: 704

Answers (1)

Anasthase
Anasthase

Reputation: 491

Call zoomIn() and zoomOut() on the WebView in your buttons onClick listeners.

Upvotes: 2

Related Questions