aMap.addMarker(new MarkerOptions().position(mList.get(i)).snippet(myFans.get(i).getNickname()).icon(BitmapDescriptorFactory.defaultMarker()));
3、可以设置窗口模式,再点击标记后自动回调getInfoWindow()、getInfoContents(),如果需要自定义显示图像可以在这两个方法里调用render(marker, mWindow);,同时需要在CustomInfoWindowAdapter()里加入需要显示的布局view CustomInfoWindowAdapter() {
mWindow = getLayoutInflater().inflate(R.layout.custom_info_window, null);
mContents = getLayoutInflater().inflate(R.layout.custom_info_contents, null);
// mOptions = (RadioGroup)
// findViewById(R.id.custom_info_window_options);
}
在render方法里处理标记提示信息具体的内容,包括显示人名、点击事件等等。