MEMBUAT INFO WINDOW MAP ANDROID TRANSPARANT
Example code
private final View mWindow;
public MarkerAdapter() {
mWindow = getLayoutInflater().inflate(R.layout.custom_info_window,
null);
}
@Override
public View getInfoContents(Marker mark) {
return null;
}
@Override
public View getInfoWindow(Marker marker) {
render(marker, mWindow);
return mWindow;
}
private void render(Marker marker, View view) {
int badge;
// Use the equals() method on a Marker to check for equals. Do not
// use ==.
badge = R.drawable.ic_launcher;
((ImageView) view.findViewById(R.id.badge)).setImageResource(badge);
String title = marker.getTitle();
TextView titleUi = ((TextView) view.findViewById(R.id.title));
titleUi.setText(title);
String snippet = marker.getSnippet();
TextView snippetUi = ((TextView) view.findViewById(R.id.snippet));
snippetUi.setText(snippet);
}
}
Then call it as mMap.setInfoWindowAdapter(new MarkerAdapter());