edittext annotation click listener - 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: edittext annotation click listener

edittext annotation click listener 2 years 8 months ago #10354

  • ankur123987
  • ankur123987's Avatar Topic Author
  • Offline
  • Expert Boarder
  • Expert Boarder
  • Available as freelancer (ex website to app 30min)
  • Posts: 97
  • Thank you received: 0
Hi support team,

can i get onclicklistener of edittext annotation? I want to disable click on edittext onclicklistener after added the text
can the width of edittext blank and shown to pdf? and then the width change as according text is added
write now i am doing with page.AddAnnotEditbox(rect, 0xFFD50321, 1, Color.TRANSPARENT, 20, Color.BLACK);; method
but the problem with float[] rect = new float[4];
rect[0] = x;
rect[1] = y;
rect[2] = x + 200;
rect[3] = y + 100;
it grab the following rect


please help
The topic has been locked.

edittext annotation click listener 2 years 8 months ago #10356

  • 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 the type of the annotation using Annotation.GetType() in OnPDFAnnotTapped() method of PDFViewAct and handle it as you want.

To change annot size I suggest you to use Annotation.SetRect(float left, float top, float right, float bottom)
For more info check this: www.radaeepdf.com/documentation/javadocs...t-float-float-float-
The topic has been locked.

edittext annotation click listener 2 years 8 months ago #10360

  • ankur123987
  • ankur123987's Avatar Topic Author
  • Offline
  • Expert Boarder
  • Expert Boarder
  • Available as freelancer (ex website to app 30min)
  • Posts: 97
  • Thank you received: 0
But how can i resize the edittext as i enter the character .so edittext size will change as character enter.

actually i want the edittext in such a way that first time its show show 1 character size with black border once user tap on it .he/she can enter the text then the size of edittext is adjustable as input text. . if user delete some character from edittext then size will decrease .


after add the text . the edittext will not be modified


how can i do that
your suggested method make edittext object with specfic lenght
The topic has been locked.
  • Page:
  • 1
Powered by Kunena Forum