Found my own answer, almost:

mapView.getZoomButtonsController().setAutoDismissed(false);

First of all mapView.getZoomButtonsController() is not documented in
the Reference API :file:///C:/android-sdk-windows/add-ons/
google_apis-5_r01/docs/reference/index.html, so I guess its no wonder
I didn't find it right away.

Second of all even with calling this and even calling this in
conjunction with  mapView.displayZoomControls(true); the zoom controls
still don't show up when the map is first displayed. However, the
mapView.getZoomButtonsController().setAutoDismissed(false); does
prevent the zoom controls from disappearing once they are there. Now
if I can just get them to appear when the mapview first gets
displayed. I guess I'll have to find some hidden method to do that as
well.

-Paul



On Nov 12, 5:27 pm, Paul <[email protected]> wrote:
> SinceMapView.getZoomControls() is deprecated in API level 5, how do
> we keep the &*(#$(!!!zoomcontrols from disappearing ???? (when it
> wasn't deprecated you could add thezoomcontrols to a ZoomControls
> view.
>
> I've tried
>
>  mapView.setBuiltInZoomControls(true);
>  mapView.displayZoomControls(true);
>
> to no avail, they still require a user touch and disappear after a few
> seconds. FYI I'm in satellite mode if that matters.
>
> Its a big problem. Need a way to know whether user is touching the
> screen because they want tozoomor because they want to say drop a
> pin on that spot. With disappearingzoomcontrols you cannot achieve
> this.
>
> Please help.

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to