任何人都知道如何删除自定义信息窗口的边缘
这是我的infowindow的XML
我正在使用一个实现InfoWindowAdapter的adaptar
谢谢!
解决方案是在适配器上,而不是覆盖getInfoContents覆盖getInfoWindow
public class MyInfoWindowAdapter implements InfoWindowAdapter { private final View myContentsView; private Context ctx; public MyInfoWindowAdapter(View myContentsView, Context ctx) { this.myContentsView = myContentsView; this.ctx = ctx; } @Override public View getInfoContents(Marker marker) { return null; } @Override public View getInfoWindow(Marker marker) { TextView tvTitle = ((TextView)myContentsView.findViewById(R.id.title)); tvTitle.setText(marker.getTitle()); return myContentsView; } }