设为首页 加入收藏

TOP

Android中调用高德地图的自定义标记视图
2014-11-24 03:17:12 来源: 作者: 【 】 浏览:1
Tags:Android 调用 高德 地图 定义 标记

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方法里处理标记提示信息具体的内容,包括显示人名、点击事件等等。


】【打印繁体】【投稿】【收藏】 【推荐】【举报】【评论】 【关闭】 【返回顶部
分享到: 
上一篇Android编程心得-图片自适应心得 下一篇Lua 语言 15 分钟快速入门

评论

帐  号: 密码: (新用户注册)
验 证 码:
表  情:
内  容:

·Python中文网 - 人生 (2025-12-24 18:49:47)
·【整整648集】这绝对 (2025-12-24 18:49:44)
·Python超详细一条龙 (2025-12-24 18:49:42)
·【超详细】JDK 下载 (2025-12-24 18:19:32)
·Java_百度百科 (2025-12-24 18:19:29)