[android] Use -1px topMargin on InfoWindowTipView to avoid occasional gap.

Fixes #2636
This commit is contained in:
Leith Bade
2015-10-17 12:47:58 +11:00
parent f3d4c3fc1a
commit a6aade629b

View File

@@ -32,5 +32,8 @@ class InfoWindowView extends RelativeLayout{
public void setTipViewMarginLeft(int marginLeft){
RelativeLayout.LayoutParams layoutParams = (RelativeLayout.LayoutParams) mTipView.getLayoutParams();
layoutParams.leftMargin = marginLeft;
// This is a bit of a hack but prevents an occasional 1 pixel gap between the InfoWindow and
// the tip
layoutParams.topMargin = -1;
}
}