Marker marker = aMap.addMarker(new MarkerOptions() .anchor(0.5f,0.5f) .position(new LatLng(lat.get(i)[0],lat.get(i)[1])) .snippet("nnn").title(i + "").snippet(i + "") .draggable(true)); String imageUrl = "http://img01.taobaocdn.com/bao/uploaded/i3/13215023749568975/T1UKWCXvpXXXXXXXXX_!!0-item_pic.jpg_230x230.jpg"; View view = LayoutInflater.from(getActivity()).inflate( R.layout.marker,null); ImageView imageView = (ImageView) view.findViewById(R.id.iv); mAbImageDownloader.display(imageView,imageUrl); marker.setIcon(BitmapDescriptorFactory.fromView(view));@H_502_2@
@H_502_2@
@H_502_2@加载的是网络图片 因为之前有人说自定义的marker设置icon时不能使用网络的图片 @H_502_2@自己写的xml里可以设置各种样式的Marker 原文链接:https://www.f2er.com/xml/296934.html