B4A Question Characters out of their frame - Alessandro71 (first post)    Mar 10, 2024 you have to call ResetUserFontScale after LoadLayout, with the root panel as parameter B4A Question Ignore the set system font size - Erel (first post)    Dec 01, 2021   (1 reaction) Check ResetUserFontScale: https://www.b4x.-and-extra-large-font-size-scale.73374/#content Spanish B4A - MANTENER TAMAÑO LETRA ESTABLECIDA EN EL DISEÑO DE LA APP - pcicom (first post)    Jun 30, 2022   (1 reaction) No se si el siguiente codigo te sirva..
Sub ResetUserFontScale(p As Panel)
For Each v As View In p
If v Is Panel Then
ResetUserFontScale(v)
Else If v Is Label Then
Dim lbl As Label = v
lbl.TextSize = lbl.TextSize / access.GetUserFontScale
B4A Question AVD Screen Size & Scale - BillMeyer (first post)    Nov 25, 2018   (4 reactions) Sub ResetUserFontScale(p As Panel)
For Each v As View In p
If v Is Panel Then
ResetUserFontScale(v)
Else If v Is Label Then
Dim lbl As Label = v
lbl.TextSize = lbl.TextSize / access.GetUserFontScale
Else If v Is Spinner Then
B4A Question Prevent text zoom - Erel (first post)    Feb 16, 2022 You can call ResetUserFontScale: https://www.b4x.-and-extra-large-font-size-scale.73374/#content
It is probably a mistake as the user choose to increase the text size for a reason. B4A Question Problem: Textsize in xCustomListView-Labels do not always fit - awama (first post)    Jun 10, 2018 Thank you Erel.
Yesterday I found also the solution "... call ResetUserFontScale on each of the items".
I do this in the
Sub CLV_VisibleRangedChanged(FirstIndex as Int, LastIndex as Int)
....
Dim p AS B4XView = CLV1.GetPanel(i)
...
p.Load Layout("Card1")
ResetUserFontScale(p)
....
End Sub
and it B4A Question CS Builder and text sizes wierd behavior - Erel (first post)    Jun 25, 2020 It is a mistake in most cases. If the user wants an increased text size then you should probably respect his/her choice. Anyway, search for ResetUserFontScale. B4A Question Spinners and extra large font size Scale - aaronk    Nov 23, 2016   (1 reaction) Hi,
On my device (my development phone, Nexus 5x) it shows my UI correctly (it has the font size as normal), but on another persons phone (Samsung Galazy S7 edge) they have the font size set to Extra Large.
I am using the following code to make my objects in my layout display correctly regardless B4A Question GUI text hight problem - Tempomaster (first post)    Jan 24, 2019 Hello,
I have completely revised my app now. In addition I would like to remark that the call of the "ResetUserFontScale" sub must be done after each execution of Activity.LoadLayout ("..."). A single call to Activity_Create was unsuccessful. In addition, some texts had to be corrected manually.
R B4A Question Get size of system-font in use - Erel (first post)    Aug 06, 2015   (10 reactions) This code will take care of Labels, EditText, Buttons, CheckBoxes, RadioBoxes and Spinners:
Sub Process_Globals
Dim access As Accessiblity
End Sub
Sub Globals
End Sub
Sub Activity_Create(FirstTime As Boolean)
ResetUserFontScale(Activity)
End Sub
Sub ResetUserFontScale(p As Panel)
For E Page: 1   2   3   4   5   6   7   Powered by ColBERT |