I\'m trying to use a RelativeLayout as custom InfoWindow for my markers, but a I get a NullPointerException every time showInfoW
RelativeLayout
InfoWindow
NullPointerException
showInfoW
I had this problem and was able to fix it by adding
view.setLayoutParams(new ViewGroup.LayoutParams(desiredWidth,desiredHeight));
to the view before returning it from InfoWindowAdapter.getInfoWindow