Signin/Signup with: 
Welcome, Guest
Username: Password: Remember me
Questions about Android development and PDF
  • Page:
  • 1

TOPIC:

Drawing rectangle finished 6 years 2 months ago #13421

  • shinijoker
  • shinijoker's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • 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 6 years 2 months ago #13423

  • Davide
  • Davide's Avatar
  • Offline
  • User is blocked
  • User is blocked
  • Posts: 814
  • 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 6 years 2 months ago #13424

  • shinijoker
  • shinijoker's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • 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 6 years 2 months ago #13426

  • shinijoker
  • shinijoker's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • 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 6 years 2 months ago #13427

  • shinijoker
  • shinijoker's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • 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