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

edittext annotation click listener

More
10 years 4 weeks ago #10354 by ankur123987
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
More
10 years 4 weeks ago #10356 by Davide
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-
More
10 years 4 weeks ago #10360 by ankur123987
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
Time to create page: 0.395 seconds
Powered by Kunena Forum