public static interface OSMap.InfoWindowAdapter
Marker.showInfoWindow()
. Since there is only one info window shown at
any one time, this provider may choose to reuse views, or it may choose to create new views on each method invocation.
When constructing an info-window, methods in this class are called in a defined order. To replace the default info-window,
override getInfoWindow(Marker)
with your custom rendering. To replace just the info-window contents, inside the default info-window
frame (the callout bubble), leave the default implementation of getInfoWindow(Marker)
in place and override
getInfoContents(Marker)
instead.
Modifier and Type | Method and Description |
---|---|
android.view.View |
getInfoContents(Marker marker)
Provides custom contents for the default info-window frame of a marker.
|
android.view.View |
getInfoWindow(Marker marker)
Provides a custom info-window for a marker.
|
android.view.View getInfoContents(Marker marker)
getInfoWindow(Marker)
first returns null. If this method returns a view, it will be placed inside
the default info-window frame. If you change this view after this method is called, those changes will not
necessarily be reflected in the rendered info-window. If this method returns null, the default rendering will be used instead.marker
- The marker for which an info window is being populated.android.view.View getInfoWindow(Marker marker)
getInfoContents(Marker)
.marker
- The marker for which an info window is being populated.Copyright © 2012–2013 Ordnance Survey. All rights reserved.