Android 如何使maps InfoWindowAdapter使用模型设置标记

Android 如何使maps InfoWindowAdapter使用模型设置标记,android,google-maps,Android,Google Maps,我正在尝试这一点,但它没有提供在该中添加数据模型对象的选项。我已经通过代码段完成了这一操作,但我现在遇到了新问题,我无法在infolayout中单击标记查看图像,我正在使用Imageloader加载图像 googleMap.setInfoWindowAdapter(new GoogleMap.InfoWindowAdapter() { @Override public View getInfoWindow(Marker mark

我正在尝试这一点,但它没有提供在该

中添加数据模型对象的选项。我已经通过代码段完成了这一操作,但我现在遇到了新问题,我无法在infolayout中单击标记查看图像,我正在使用Imageloader加载图像
 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;
                    }
            });