Microsoft Windows Phone 8.1 support ends (13 Jul 2017)

Microsoft has ended support for Windows Phone 8.1

Development and suggestions about third part tool integration.
Cordova, Xamarin, Basic4Android topics are listed here.

Customize popup text

More
IP: 84.220.114.69 6 years 8 months ago #14444 by Soldan
Customize popup text was created by Soldan
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
More
IP: 212.97.62.176 6 years 7 months ago - 6 years 7 months ago #14446 by luca.f
Replied by luca.f on topic Customize popup text
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.
Last edit: 6 years 7 months ago by luca.f.
More
IP: 88.36.189.149 6 years 7 months ago #14448 by Soldan
Replied by Soldan on topic Customize popup text
Ok thanks!
is it scheduled to move that string from hardcoded to an xml string value, like other strings?
More
IP: 88.36.189.149 6 years 7 months ago #14449 by Soldan
Replied by Soldan on topic Customize popup text
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?
Time to create page: 0.623 seconds
Powered by Kunena Forum