googleMap.setInfoWindowAdapter(new GoogleMap.InfoWindowAdapter() {
@Override
public View getInfoWindow(Marker marker) {
return null;
}
@Override
public View getInfoContents(Marker marker) {
LayoutInflater inflater = (LayoutInflater) getActivity().getSystemService(Context.LAYOUT_INFLATER_SERVICE);
View infoView = inflater.inflate(R.layout.row_sightings, null);
//showSightingInfoWindow(infoView, (Sighting) marker.getData());
return infoView;
}
});
我正在考虑这个但是它没有提供在此
中添加数据模型对象的选项