worker8 / TourGuide

TourGuide is an Android library that aims to provide an easy way to add pointers with animations over a desired Android View
MIT License
2.63k stars 416 forks source link

Wrong location on some devices #140

Open HosseinArabbeigi opened 6 years ago

HosseinArabbeigi commented 6 years ago

Hi there tanks for TourGuide

im using this lib but does work good on some devices, tooltip and ponter stays on wrong location i reed the tooltip code and problem was in layout observer and getX returns wrong value for tooltip location, it must be same for pointer too

heres the line i'm talking about in setupToolTip():

layoutParams.setMargins((int) mToolTipViewGroup.getX(), fixedY, 0, 0);

pdabade commented 3 years ago

Hi,

Thanks for TourGuide.

I am also facing this issue. The pointer location is wrong on large screen devices.

Screen Shot 2021-03-26 at 12 28 04 PM Screen Shot 2021-03-26 at 12 26 18 PM