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

TOPIC:

Setting visual attributes on edittext not working 8 years 9 months ago #9307

  • marco.klein
  • marco.klein's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
  • Posts: 22
  • Thank you received: 0
Hi support,

we've been trying the new beta features . The field flag method works like a charm, but somehow, we dont get the hang of the visual attribute methods like strokecolor fillcolor a.s.o

Sometimes, the field gets updated after rerendering, sometimes it does not.

What we do is the following:

this.annotation.SetStrokeColor(color); // Color.RED
this.renderer.rerender();

Should be fairly enough, is it?

Btw, setting visual attributes does not work at all if we don't call this.annotation.SetEditText(this.annotation.GetEditText()); at initializing the document. Checkboxes currently dont react at all because they dont have SetEditText...

What to do about this? Which method do we need to call when trying to make this possible? is there some kind of initialize?

Kindest Regards

Marco

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

Setting visual attributes on edittext not working 8 years 9 months ago #9308

  • radaee
  • radaee's Avatar
  • Offline
  • Moderator
  • Moderator
  • Posts: 1123
  • Thank you received: 73
the method not applied to CheckBox, it is text-box only.
it is not enough, only invoke Annotation.SetStrokeColor(color);
if line width is 0, there are no borders to shown.

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

Setting visual attributes on edittext not working 8 years 9 months ago #9309

  • marco.klein
  • marco.klein's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
  • Posts: 22
  • Thank you received: 0
okay, good to know.

the border width got set to 1 before.

it does not work as well for:

this.annotation.SetStrokeColor(color);
this.annotation.SetStrokeWidth(thickness);
this.annotation.SetFillColor(color);
this.annotation.SetEditTextColor(color);

so all of them.

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

Setting visual attributes on edittext not working 8 years 9 months ago #9311

  • radaee
  • radaee's Avatar
  • Offline
  • Moderator
  • Moderator
  • Posts: 1123
  • Thank you received: 73
fixed and updated, shall coming soon.

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

Last edit: by radaee.
  • Page:
  • 1
Powered by Kunena Forum