У меня есть карта Google с некоторыми маркерами, и у каждого из них есть заголовок и фрагмент. Я храню маркеры в HashMap. Я хочу отобразить заголовок и фрагмент с функцией showInfoWindow (), когда кнопка нажата. это мой код:
Marker m = getMarker(location); //this function return marker from HashMap with its location
if(m!=null)
m.showInfoWindow();
m не равен нулю, но showInfoWindow () не работает
отладочный вывод: ![enter image description here](https://i.stack.imgur.com/PGBrH.png)
m.getTitle () log: ![enter image description here](https://i.stack.imgur.com/4FGNH.png)