getInfoWindow
Returns the whole info window view for marker.
Called every time the location is (re-)rendered as selected, so it may be called repeatedly for the same marker; returning a single cached view instance is fine and is what MPDefaultInfoWindow does.
Prefer giving the returned view layout params — either inflate with a non-null root and attachToRoot=false, as in LayoutInflater.from(context).inflate(resId, root, false), or call setLayoutParams(new ViewGroup.LayoutParams(WRAP_CONTENT, WRAP_CONTENT)) on a view you built in code. A view inflated with a null root, or constructed programmatically, has nulllayoutParams until it gets a parent. The Mapbox adapter defaults those to WRAP_CONTENT rather than failing, but setting them yourself is what gives you control over the size.
Return
the view to show, or null to show no info window for this marker.
Parameters
the marker being selected; getId is the MapsIndoors location id, so MapsIndoors.getLocationById(marker.getId()) gives you the location.