Microsoft Windows Phone 8.1 support ends (13 Jul 2017)

Microsoft has ended support for Windows Phone 8.1

Questions about Android development and PDF

Get Annotation View/Coordinate

More
9 years 5 months ago #11257 by saynas
Hello,
im trying to add a bubble popup after select an annotation (rectangle, circle..). but i need the annotion view or the coordinates of annotation.
i try to use OnAnnotClicked(PDFVPage vpage, Annotation annot) fuction.
to display the bubble popup i need the annot view to use it in this function:
leftTopWindow.show(viewofannot, Gravity.BOTTOM, 0); // display popup at the bottom of annot draw
[img]http://[/img]
More
9 years 5 months ago - 9 years 5 months ago #11258 by Davide
Hi,
you can get the coordinates of the annot by calling GetRect() method.
For more info check this : www.radaeepdf.com/documentation/javadocs...ation.html#GetRect--

You can also change OnAnnotClicked listener and add x and y parameters when it is called.
public void OnAnnotClicked(PDFVPage vpage, Annotation annot, float x, float y);
So you will have the coordinates you have tapped.
Last edit: 9 years 5 months ago by Davide.
Time to create page: 0.407 seconds
Powered by Kunena Forum