I can customize the content of the infoWindow with a simple block of code:
private GoogleMap mMap;
mMap.setInfoWindowAdapter(new InfoWindowAdapter() {
you have to write your code in getInfoWindow method. so you can customize info window. e.g.
@Override
public View getInfoWindow(Marker marker) {
// Getting view from the layout file
View v = inflater.inflate(R.layout.map_popup, null);
TextView title = (TextView) v.findViewById(R.id.title);
title.setText(marker.getTitle());
TextView address = (TextView) v.findViewById(R.id.distance);
address.setText(marker.getSnippet());
return v;
}
@Override
public View getInfoContents(Marker arg0) {
// TODO Auto-generated method stub
return null;
}