android - Cannot center marker's info window? -


i trying center marker's info window because it's visible. there 2 images showing problem. on first title of info window not visible , on second image how should like. here code:

mmap.setonmarkerclicklistener(new googlemap.onmarkerclicklistener() {         @override         public boolean onmarkerclick(final marker marker) {              latlng markerlocation = marker.getposition();             point mappoint = mmap.getprojection().toscreenlocation(new latlng(markerlocation.latitude, markerlocation.longitude));             mappoint.set(mappoint.x, mappoint.y - 100);              cameraupdate cu = cameraupdatefactory.newlatlng(mmap.getprojection().fromscreenlocation(mappoint));              mmap.animatecamera(cu, new googlemap.cancelablecallback() {                 @override                 public void onfinish() {                     if (marker != null)                         marker.showinfowindow();                 }                 @override                 public void oncancel() {                 }             });              return false;         }     }); 

enter image description here

enter image description here

the problem line:

returning false; 

should be:

returning true; 

Comments