I\'m using Google maps APIv2 for android. I\'ve implemented MapFragment, put markers where I need, added custom InfoWindow for markers.
The issue is - I
As stated at Google Maps Android API v2 Documentation:
Note: The info window that is drawn is not a live view. The view is rendered as an image (using
View.draw(Canvas)
) at the time it is returned. This means that any subsequent changes to the view will not be reflected by the info window on the map. To update the info window later (e.g., after an image has loaded), callshowInfoWindow()
. Furthermore, the info window will not respect any of the interactivity typical for a normal view such as touch or gesture events. However you can listen to a generic click event on the whole info window as described in the section below.
Perhaps you should try to call showInfoWindow()
somewhere again in your code.
I had the same problem here.
I think that calling showInfoWindows() for a spinning ( indeterminate ) progress bar doesn't make sense to me, and I'm also not sure it works. ( of course showinfoWindows may have sense for a horizontal progress bar) So I went for one of the following three solutions,
1) left the progress bar not animated beside a "Loading..." text, it gives an idea to the user at least. 2) put the loading spinning wheel somewhere else in the UI. 3) Using a dialog fragment to show loading procedure but it really depends on the feel you want to achieve with your app.
Personally I've chosen the first one.
I really hope that Google will fix this in future.