public abstract class BaseMarkerBalloonLayout extends java.lang.Object implements MarkerBalloon
getBalloonOffset(Marker),
onCreateView(ViewGroup) and BalloonViewAdapter.onBindView(View, Marker) methods.
to specify the position of balloon. By default position of balloon center position above marker.
onCreateView(ViewGroup) method inflate a layout from BaseMarkerBalloonLayout(int)
constructor.
The most important method is BalloonViewAdapter.onBindView(View, Marker)
method where you can full fill a inflated balloonView by information from Marker or MarkerBalloon class.| Constructor and Description |
|---|
BaseMarkerBalloonLayout(int layout) |
| Modifier and Type | Method and Description |
|---|---|
android.graphics.Point |
getBalloonOffset(Marker marker)
Specify the position of the balloon relatively to the marker (anchoring).
|
android.view.View |
getBalloonView()
Root view of balloon.
|
android.view.View |
onCreateView(android.view.ViewGroup container)
Method called to inflate a layout.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitonBindViewpublic BaseMarkerBalloonLayout(@LayoutRes
int layout)
layout - will be inflated by onCreateView(ViewGroup) method@NonNull public android.graphics.Point getBalloonOffset(Marker marker)
getBalloonOffset in interface BalloonViewAdaptermarker - Marker.getAnchor(),
Marker.getIconHeight(),
Marker.getIconWidth()public android.view.View onCreateView(android.view.ViewGroup container)
onCreateView in interface BalloonViewAdaptercontainer - - container where marker or balloon item will be inflated@Nullable public android.view.View getBalloonView()