Results 1 to 3 of 3

Thread: callout tail is displayed at the top of the map instead of under the call out

  1. #1
    Neuer skobbler
    Join Date
    27.07.2016
    Posts
    9

    callout tail is displayed at the top of the map instead of under the call out

    I have code that adds a custom annotation callout view to be displayed whenever an annotation is selected my Skobbler mapview.

    @Override
    public void onAnnotationSelected(final SKAnnotation annotation) {
    ...
    mapPopup = mapHolder.getCalloutView();
    // set the callout view’s background color
    mapPopup.setViewColor(Color.WHITE);
    View view = getLayoutInflater().inflate(R.layout.map_callout, null);
    ...
    mapPopup.setCustomView(view);
    // setting 2nd parameter to 'true' will cause tail to be displayed
    mapPopup.showAtLocation(annotation.getLocation(), true);
    ...
    }
    I also request in the showAtLocation() call that the callout view be displayed with the "tail" imageview. However, when I test in the app, I see that the tail appears at the top of my map_surface_holder RelativeLayout container instead of at the bottom of the FrameLayout container that displays the callout popup view.

    tPwFm.jpg

    One difference I could see between my custom callout view and the default one provided by the Skobbler is that the standard view is a RelativeLayout container while my implementation is a FrameLayout. However, I'm not sure that it should matter since the Tail ImageView here is being added to the parent of my callout view, not as a child.

  2. #2
    Dev platform evangelist dandronic's Avatar
    Join Date
    31.03.2014
    Posts
    177
    Are you using the latest SDK version? (3.0.1)

  3. #3
    Neuer skobbler
    Join Date
    27.07.2016
    Posts
    9
    Yes I am using 3.0.1

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •