【问题标题】:Custom Info Window Adapter and 2 other issues自定义信息窗口适配器和其他 2 个问题
【发布时间】:2013-08-07 10:55:16
【问题描述】:

所以我在寻找解决方案时遇到了the code from this answer on stackoverflow

我在这里遇到错误:

googleMap.setInfoWindowAdapter(new CustomInfoWindowAdapter( GPSTracker.this)); 表示无法解析为类型。

Share 也无法解析为变量

private void GetCurrentLocation() {

    double[] d = getlocation();
    Share.lat = d[0];
    Share.lng = d[1];

    googleMap.addMarker(new MarkerOptions().position(new LatLng(Share.lat, Share.lng)).title("Current Location").icon(BitmapDescriptorFactory.fromResource(R.drawable.red)));

我无法为CustomInfoWindowAdapter 找到任何解决方案,而且我不明白Share 代表什么。

对于理解和解决我的问题的任何帮助将不胜感激。感谢您的宝贵时间。

【问题讨论】:

    标签: android google-maps


    【解决方案1】:

    【讨论】:

    • 感谢您的建议,但我现在已经完成了那里写的所有内容,问题仍然没有解决。
    猜你喜欢
    • 2013-02-11
    • 2012-07-17
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2015-03-29
    • 2016-12-17
    • 2021-12-15
    • 1970-01-01
    相关资源
    最近更新 更多