Open swatiomar opened 4 years ago
Thanks for creating an issue. Can you upload a video of this behavior?
Also, based on the log, it seems that the anchor
point is not on the screen => anchor point: 767, -771
. Perhaps, that could be an issue.
Hi @jayrambhia,
PFA video link for reference,
One more thing I want to specify here as you can see in video clearly there is complex view hierarchy. Is that issue or How can I resolve that issue? Please suggest. Is there any other thing which I miss?
Hey @swatiomar , I tried your code in a fragment and it seems to work fine. device-2020-05-08-114922.webm.zip
Are you using some fork of this lib? Because there's no setMargin
method. Plus, what type is mRootLayout
? Is your anchor in a RecyclerView?
I used Tooltip.builder() in Fragment but when I click on ImageView it shows and after showing whole it gets disappeared in just a second? Please suggest me.
Please find logs here: 2020-05-06 16:36:19.390 25288-25288/com.ikea.tradfri.lighting I/Tooltip: child layout: left: 435 top: -759 right: 794 bottom: -682 2020-05-06 16:36:19.391 25288-25288/com.ikea.tradfri.lighting I/Tooltip: px: 767, py: -771 2020-05-06 16:36:19.392 25288-25288/com.ikea.tradfri.lighting D/Tooltip: anchor point: 767, -771 2020-05-06 16:36:19.392 25288-25288/com.ikea.tradfri.lighting D/Tooltip: size: 359, 77 2020-05-06 16:36:51.415 25288-25288/com.ikea.tradfri.lighting I/Tooltip: l: 0, t: 849, r: 824, b: 849 2020-05-06 16:36:51.447 25288-25288/com.ikea.tradfri.lighting I/Tooltip: onPreDraw: 940, 595 2020-05-06 16:36:51.447 25288-25288/com.ikea.tradfri.lighting D/Tooltip: anchor location: 940, 595 2020-05-06 16:36:51.448 25288-25288/com.ikea.tradfri.lighting D/Tooltip: holder location: 188, 1402 2020-05-06 16:36:51.448 25288-25288/com.ikea.tradfri.lighting D/Tooltip: child w: 359 h: 77 2020-05-06 16:36:51.448 25288-25288/com.ikea.tradfri.lighting D/Tooltip: left: 752, top: -807 2020-05-06 16:36:51.448 25288-25288/com.ikea.tradfri.lighting D/Tooltip: tip top Before: -807 2020-05-06 16:36:51.448 25288-25288/com.ikea.tradfri.lighting D/Tooltip: tip top: -759 2020-05-06 16:36:51.448 25288-25288/com.ikea.tradfri.lighting D/Tooltip: tip Move to: 767 -771 2020-05-06 16:36:51.448 25288-25288/com.ikea.tradfri.lighting D/Tooltip: tip Line to: 761 -759 2020-05-06 16:36:51.448 25288-25288/com.ikea.tradfri.lighting D/Tooltip: tip Line to: 773 -759 2020-05-06 16:36:51.448 25288-25288/com.ikea.tradfri.lighting D/Tooltip: tip Line to: 767 -771 2020-05-06 16:36:51.449 25288-25288/com.ikea.tradfri.lighting I/Tooltip: child layout: left: 435 top: -759 right: 794 bottom: -682 2020-05-06 16:36:51.449 25288-25288/com.ikea.tradfri.lighting I/Tooltip: px: 767, py: -771 2020-05-06 16:36:51.451 25288-25288/com.ikea.tradfri.lighting D/Tooltip: anchor point: 767, -771 2020-05-06 16:36:51.452 25288-25288/com.ikea.tradfri.lighting D/Tooltip: size: 359, 77 2020-05-06 16:36:54.729 25288-25288/com.ikea.tradfri.lighting I/Tooltip: canvas w: 824, h: 0
private void showCustomTooltip(@nonnull View anchor) {
}