Signin/Signup with: 
Welcome, Guest
Username: Password: Remember me
Development and suggestions about third part tool integration.
Cordova, Xamarin, Basic4Android topics are listed here.
  • Page:
  • 1

TOPIC:

Customize popup text 4 years 9 months ago #14444

  • Soldan
  • Soldan's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 9
  • Thank you received: 0
Hi,
I'm using the latest version of your Xamarin library and I'm developing an Android application.
When a user touches a ReadOnly annotation, the library shows a Toast with the text "Readonly annotation".
Could this text be customized? I have an internationalized application and I would like to change that text based on the language.
Thank you so much

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

Customize popup text 4 years 9 months ago #14446

  • luca.f
  • luca.f's Avatar
  • Offline
  • User is blocked
  • User is blocked
  • Posts: 93
  • Thank you received: 10
That string is hardcoded so you need to customize it on the android side:
in classes PDFLayoutView.java and GLView.java:
Toast.makeText(getContext(), "Readonly annotation", Toast.LENGTH_SHORT).show();

make it a xml string value and customize it, build and export viewlib aar, and import it on xamarin.

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

Last edit: by luca.f.

Customize popup text 4 years 9 months ago #14448

  • Soldan
  • Soldan's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 9
  • Thank you received: 0
Ok thanks!
is it scheduled to move that string from hardcoded to an xml string value, like other strings?

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

Customize popup text 4 years 9 months ago #14449

  • Soldan
  • Soldan's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 9
  • Thank you received: 0
Sorry, I have another question:
from the download area I can download the version 3.52.3 of the android package and from there I can change the hardcoded string and export a new ViewLib.aar
But from the xamarin's github repo, I noticed that the ViewLib.aar has been updated several times after the release of the 3.52.3 version, and I guess this has been done to fix some bugs or stuff like that.
Recompiling and importing the version 3.52.3 with the non hardcoded string I'm "downgrading" the ViewLib.aar and I could re-introduce the bugs fixed with the commits
02ae486386d9b9e6e31de2547c33f4dedcfe0c86 (06/20/2019)
d66c777bedfa65ea95e38dedac77636fd5cc25f9 (07/03/2019)
Is it correct? Should I wait an update of the xamarin ViewLib.aar dependency with the non hardcoded string?

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

  • Page:
  • 1
Powered by Kunena Forum