I have a code that adds a visual representation of a custom annotation that will be displayed whenever my Skobbler image is selected for annotation.
@Override public void onAnnotationSelected(final SKAnnotation annotation) { ... mapPopup = mapHolder.getCalloutView();
I also request in a call to showAtLocation() that the showAtLocation() view is displayed with a tail image. However, when I test the application, I see that the tail appears at the top of my map_surface_holder RelativeLayout container, and not at the bottom of the FrameLayout container, which displays the callout popup.

When I pan the map, I see that the tail view moves left and right relative to the leader view movement, but it remains aligned to the top of the map_surface_holder container, never moving up or down.
Do I need to add code somewhere to make the representation of the tail image aware of where it should be placed in the Y-axis of the RelativeLayout container?
I tried adding a call to mapPopup.setVerticalOffset(offset) to see if this affected it, but the tail image remained locked at the top of the screen.
Another difference that I could see between my custom callout view and the standard one provided by Skobbler is that the standard view is a RelativeLayout container and my implementation is FrameLayout. However, I'm not sure if that matters, because the Tail ImageView here is added to the parent of my leader view, and not as a child.
Thanks in advance for any help on this, and let me know if any additional information will be helpful.
Thanks!
source share