Android Question Problem: Textsize in xCustomListView-Labels do not always fit

awama

Active Member
Licensed User
Longtime User
Hello,

If you set the system font to extra large, the text in xCustomListView labels (B4Xviews) no longer fits completely into the label because the labels are not enlarged, but the text already.

The example with ResetUserFontScale does not seem to work.

Can anybody help me further? Thank you in advance

awama
 

awama

Active Member
Licensed User
Longtime User
I add items with VisibleRangedChanged and I use the Class xCustomListView v1.54. The Cards-Example is the Code-Base.
 
Upvote 0

awama

Active Member
Licensed User
Longtime User
For the list, I load a layout (Panel with 4 labels) for each row.

VisibleRangedChanged function I need because of
1000 entries.

The label height should not be changed.

How do I use AddTextItem in this configuration?
 
Upvote 0

awama

Active Member
Licensed User
Longtime User
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 works as desired.
 
Upvote 0
Top