public class InfoWindow
extends java.lang.Object
InfoWindow
is a tooltip shown when a Marker
or MarkerView
is tapped. Only
one info window is displayed at a time. When the user clicks on a marker, the currently open info
window will be closed and the new info window will be displayed. If the user clicks the same
marker while its info window is currently open, the info window will be closed.
The info window is drawn oriented against the device's screen, centered above its associated
marker by default. The info window anchoring can be adjusted using
MarkerView.setInfoWindowAnchor(float, float)
for MarkerView
. The default info
window contains the title in bold and snippet text below the title. While either the title and
snippet are optional, at least one is required to open the info window.
Modifier and Type | Field and Description |
---|---|
protected java.lang.ref.WeakReference<android.view.View> |
view |
Modifier and Type | Method and Description |
---|---|
android.view.View |
getView()
Retrieve this
InfoWindow 's current view being used. |
void |
update()
Will result in getting this
InfoWindow and updating the view being displayed. |
public void update()
InfoWindow
and updating the view being displayed.@Nullable public android.view.View getView()
InfoWindow
's current view being used.InfoWindow
's current View.