Multiple line or break line in .snippet (google maps apiv2)

后端 未结 3 1865
Happy的楠姐
Happy的楠姐 2020-12-05 20:45

I\'m developing in google maps APIv2. The issue that I\'m facing now is I only able to add in one line of word in info windows/snippet. But the output that I want is able to

3条回答
  •  失恋的感觉
    2020-12-05 21:15

    I would like to add something to @tony , According to documentation you cant add action to your custom view as it draw as image in run time.

    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 (for example, after an image has loaded), call showInfoWindow(). 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.

提交回复
热议问题