有没有办法在osmdroid bonuspack中定位InfoWindow?

时间:2016-01-15 11:30:11

标签: android dictionary positioning marker osmdroid

我的代码:

Marker startMarker = new Marker(mMapView);
startMarker.setPosition(VBA.getPosition());
startMarker.setIcon(getResources().getDrawable(R.drawable.marker_hotel1));
startMarker.setTitle(VBA.getHotelName());
startMarker.setRelatedObject(null);
startMarker.setInfoWindow(new CustomInfoWindow(mMapView, startMarker));
mMapView.getOverlays().add(startMarker);

我的CustomInfoWindow

public class CustomInfoWindow extends MarkerInfoWindow {

    ...SOME ATTRIBUTES....

    public CustomInfoWindow(MapView mapView,Marker marker) {
        super(R.layout.bonuspack_bubble_edited, mapView);

        ...OTHER CODE...

    }

Click here to open image

我想从标记中消除泡沫。

1 个答案:

答案 0 :(得分:0)

将layout_marginBottom放在R.layout.bonuspack_bubble_edited