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

TOPIC:

Extending Height &width of EditTextBox dynamically 8 years 9 months ago #10930

  • sbettal
  • sbettal's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
  • Posts: 20
  • Thank you received: 0
I need to extend height and width of edit text box dynamically when user provides lengthy text to the edit text field. Is it possible?

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

Extending Height &width of EditTextBox dynamically 8 years 9 months ago #10931

  • nermeen
  • nermeen's Avatar
  • Offline
  • Platinum Member
  • Platinum Member
  • Posts: 962
  • Thank you received: 87
Dear Sbettal,

You can modify PopupEditAct and PDFLayoutView.onEditAnnot to adapte them to your needs...

You can add a listener to check the entered text length and adapte the editbox accordingly, using Annotation.SetRect.

But as a warning it will not be optimal (performance wise)..as a modification on the annotation level, requires a re-render.

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

  • Page:
  • 1
Powered by Kunena Forum