Skip to content
This repository was archived by the owner on Aug 8, 2023. It is now read-only.
This repository was archived by the owner on Aug 8, 2023. It is now read-only.

InfoWindow tip sometimes has a 1 pixel gap #2636

Closed

Description

@ljbade

Sometimes (must depend on rounding somewhere) there is a small but noticeable 1 pixel gap between the InfoWindow tip triangle and the main rectangle.

I have attached a screenshot showing this, but you need to zoom in to see it clearly:
device-2015-10-16-114002

I noticed this on my Samsung S6.

/cc @tobrun

Activity

  1. added
    Android
    on Oct 16, 2015
  2. added this to the android-v2.1.0 milestone on Oct 16, 2015
  3. tobrun commented on Oct 16, 2015

    @tobrun
    Member

    @ljbade well spotted ;)

  4. ljbade commented on Oct 17, 2015

    @ljbade
    ContributorAuthor

    I found a quick fix (nothing else seemed to work) of setting the topMargin for the tip view to -1 px.

  5. self-assigned this
    on Oct 17, 2015
  6. added a commit that references this issue on Oct 17, 2015
    3a2c842
  7. tobrun commented on Oct 18, 2015

    @tobrun
    Member

    @ljbade
    Setting margins to negative values is considered bad practice..
    Personally I find it acceptable to get 2.1.0 out the door but should be fixed in 2.2.0.
    I'm thinking about creating 1 shape for the whole background,
    then we can also implement same rounded bordes as iOS.

    Update: I created #2658 to track this

  8. ljbade commented on Oct 18, 2015

    @ljbade
    ContributorAuthor

    @tobrun Yeah I did some Googling on negative margins, and found a comment from one of the Android engineers that it is supported on relative layout.

    I agree correct way to address this would be to combine everything into just one custom view.

  9. tobrun commented on Oct 18, 2015

    @tobrun
    Member

    @ljbade Didn't know about support for relative layout. Interesting.
    Do we want the same design for our InfoWindow as iOS?

  10. ljbade commented on Oct 18, 2015

    @ljbade
    ContributorAuthor

    @tobrun Hmm, not sure can you take screenshots that compare our current InfoWindows with iOS and Google Maps?

  11. added 2 commits that reference this issue on Oct 20, 2015
    18c4d4f
    a6aade6
  12. added a commit that references this issue on Nov 6, 2015
    5a098ae
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Androidbug

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions