views:

65

answers:

1

I'm trying to determine how to set the ViewConfiguration.zoomControlsTimeout setting in the Android 1.5 framework, when working with a MapView. There is information on how to get this data, but how can I set it?

My end goal is to ensure zoom controls are always displayed on the screen, instead of the default hide/show behavior.

A: 

If you look at the source code to getZoomControlsTimeout() in ViewConfiguration (e.g., use Google Code Search), you will see that it is a hardwired constant.

I suspect that you will need to implement your own zoom controls to achieve the look you seek.

CommonsWare
Thanks, somehow I hadn't discovered Google Code Search in my Android work yet!
MikeG
Yeah, Google Code Search is a lifesaver for finding stuff in Android. Just put package:android in your search query, and it will restrict your search to Android-related projects (Android itself plus projects in Google Code and github that seem Android-y).
CommonsWare