sdk-maps / com.tomtom.online.sdk.map / SingleLayoutBalloonViewAdapter

SingleLayoutBalloonViewAdapter

open class SingleLayoutBalloonViewAdapter : BaseBalloonViewAdapter<BaseMarkerBalloon!>

Adapter which inflate one single layout for all balloons.

Constructors

<init>

SingleLayoutBalloonViewAdapter(layout: Int)

Provide a layout which is inflated for all marker balloons.

Functions

getLayout

open fun getLayout(marker: Marker!, balloon: BaseMarkerBalloon!): Int

return layout for marker or marker balloon. In this implementation for all markers and marker balloons layout are the same.

onBindView

open fun onBindView(view: View!, marker: Marker!, markerBalloon: BaseMarkerBalloon!): Unit

Override to bind marker balloon view model to view inflated from layout.

Inherited Functions

getBalloonOffset

open fun getBalloonOffset(marker: Marker!): Point

Specify the position of the balloon relatively to the marker (anchoring). By default it is above the marker icon. It can be overrided to change the default anchoring position.

getBalloonView

open fun getBalloonView(): View

onCreateView

open fun <M : T> onCreateView(container: ViewGroup!, marker: Marker!, markerBalloon: M): View!

A callback which is called when inflating model.

Inheritors

TextBalloonViewAdapter

open class TextBalloonViewAdapter : SingleLayoutBalloonViewAdapter

View the adapter and inflater for the "single line" marker balloon.