如何使地图InfoWindowAdapter设置标记与模型

时间:2016-02-06 10:52:03

标签: android google-maps

 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;
                    }
            });

我正在考虑这个但是它没有提供在此

中添加数据模型对象的选项

0 个答案:

没有答案