Droidscript Settings>Accessibility>Large Text

62 views
Skip to first unread message

rico de graaf

unread,
Nov 18, 2016, 1:27:26 PM11/18/16
to DroidScript
Hey Everyone.
I've got a problem.

I've Created a Application in Droidscript.
On My Phone [Sony Xperia E1][Software Version 4.4.1] it works fine.
But i noticed when i change my Mobile Settings in Accessibility to Large Text On my TEXT and LAYERS overlap.
Also on other devices if they have turned Large Text On [Settings>Accessibility>Large Text>On] they also face problems
with TEXT and LAYERS that overlap.

Is there a way i can turn the Mobile Settings Accessibility Large Text off within the script.
Is there a code i can use to manage the users Mobile Settings and turn Large Text of inside Accessibility?

If Not: Is there a way i can adjust my script so it does not get effected by the Mobile Settings?
Can i Use a FontFile or CSS File so all the TEXT and LAYERS looks correct.
Please Comment.

Dune Browser Based.js

davefinney

unread,
Nov 18, 2016, 10:10:23 PM11/18/16
to DroidScript
Hi rico,
yes, you can set text sizes to be independent of your phones settings, such as hello.SetTextSize( 21, "px" ). The "px" sets size to screen pixels.

Other codes here:

Netpower8

unread,
Nov 19, 2016, 7:08:00 AM11/19/16
to DroidScript
Does this code handle different density on screen

davefinney

unread,
Nov 19, 2016, 11:17:03 AM11/19/16
to DroidScript
Hi Np8,
I think "px" is pixels so text may be different sizes on different density screens.

If you want same size text independent of phone settings on any density screen, try "dip".

Netpower8

unread,
Nov 19, 2016, 7:27:59 PM11/19/16
to DroidScript
Thanks

rico de graaf

unread,
Nov 21, 2016, 12:33:40 PM11/21/16
to DroidScript
Thank You.
Problem Solved.
Reply all
Reply to author
Forward
0 new messages