Outsystems 11 On Mobile
Because of Android Mobile system can set the font size. Therefore causing the font size of the application change according to it.
I have read posts from
https://stackoverflow.com/questions/21546805/how-to-prevent-system-font-size-changing-effects-to-android-application/21546897
and they say
If you want your text to be the same size, you will need to use dp.
then I look for another post from
https://stackoverflow.com/questions/23981260/should-use-sp-instead-of-dp-for-text-sizes about the dp unit but I'm not sure this is gonna be work on outsystems and how to use it?
(I place dp instead of px but nothing happened)
If there is another way, please guide me. Thank you!
Hi,
I am not sure dp/sp works in OutSystems.
But you can check this plugin: https://www.outsystems.com/forge/component-overview/4791/lock-font-size
Cheers.
Eduardo Jauch wrote:
Thank you for your advice.
I have tried lock font-size plugin by put the lock client action like this.Set this action to On Ready but the android font size setting still effective to my application font.
Hi Chunyanunch,
You should not set it in your screen or block OnReady event, but in the On Application Ready event.
Regards,
Daniel
Daniël Kuhlmann wrote:
Thank you. I already set it in On Application Ready event.
But still the same. Here are my test examples. First is the original font-size 16px and 20px.
Then change the font-size in android systems to huge.It still causes of increase font-size application.
Chunyanuch Kimpiam wrote:
Ok, sorry then it wasn't clear from what you wrote.
Did you created a new package and install it again on the mobile?I think this plugin, as it has to "talk" to the OS, it requires a new package, and will not work on a browser.
(I think) You need to create a package, install in the device and test it in the device.
Remember, plugins need to be installed in the device, and the auto-update does not fetch their code, so you really need to create a new package and install in the device every time you add a new plugin.
Cheers!
Hello, Eduardo Jauch and Daniël Kuhlmann
Sorry for my mistake grammar. What I want to say is I have just instead of I already.
Thank you for all your assistance. I know how to solve it now!
I place lock font size in OnApplicationReady and OnApplicationResume for sure. Then install the application on android device.
It doesn't work on OutSystems Now but it works well on installed application.
Best regards
Hi!
Yes, only a few plugins work on OutSystems Now, because they are installed with it.
Other plugins require the app to be installed in order to test and use them.
Cheers