문제

I have an app which displays icons a user can place and add details to. Recently I noticed, when a User clicks one of the icons, it moves down slightly. Any suggestions welcome !

Before before click

After after click

도움이 되었습니까?

해결책

The problem was that in myItemizedOverlay, I had an onTap method which displayed information about the point including it's icon.

When opening the dialog, I used a reference to the icon which was placed on the map.

The solution was to create an entirely new icon (Drawable) and use that instead of the reference.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top