Drawing rectangle finished - RadaeePDF.com
Signin/Signup with: 
Welcome, Guest
Username: Password: Remember me
13 Jul 2017
Microsoft has ended support for Windows Phone 8.1
Read More...
Questions about Android development and PDF
  • Page:
  • 1

TOPIC: Drawing rectangle finished

Drawing rectangle finished 10 months 1 week ago #13421

  • shinijoker
  • shinijoker's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 11
  • Thank you received: 0
Hello,
I want to ask how can I detect the end of drawing a rectangle in the editor demo.

Please Log in or Create an account to join the conversation.

Drawing rectangle finished 10 months 1 week ago #13423

  • Davide
  • Davide's Avatar
  • Offline
  • User is blocked
  • User is blocked
  • Posts: 814
  • Karma: 18
  • Thank you received: 65
Hi,
I suggest you to check PDFLayoutView class.
Here you will find the PDFSetRect method, when this is called with code = 1 it draws the rect to the pdf using AddAnnotRect method.
These methods are called by the library when you draw the rectangle and re-tap the rect icon.

Hope this will help you, if you need others info ask.

Please Log in or Create an account to join the conversation.

Last edit: by Davide.

Drawing rectangle finished 10 months 1 week ago #13424

  • shinijoker
  • shinijoker's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 11
  • Thank you received: 0
Thank you for your response Davide. I want to use this method automatically without having the user to re-tap the icon.

Please Log in or Create an account to join the conversation.

Drawing rectangle finished 10 months 1 week ago #13426

  • shinijoker
  • shinijoker's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 11
  • Thank you received: 0
If that's impossible can I remove the previous rect when I draw a second after clicking on the draw rect icon?

Please Log in or Create an account to join the conversation.

Drawing rectangle finished 10 months 1 week ago #13427

  • shinijoker
  • shinijoker's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 11
  • Thank you received: 0
I have solved this by using "case MotionEvent.ACTION_UP:" in the PDFLayoutView class. Thank you and sorry foe the spam

Please Log in or Create an account to join the conversation.

  • Page:
  • 1
Powered by Kunena Forum