iOS Question How to change the CustomListView fontsize?

watesoft

Active Member
Licensed User
Longtime User
I use CustomListView to show a string list, I want to change the font size in "Sub Page1_Resize",but no way to do it.
 

MarcoRome

Expert
Licensed User
Longtime User
Do you use CSBuilder ?
Try:
If you want to change the font with CSBuilder then you have two options:
- Remove the AutoScaleAll call from the designer script.
 
Upvote 0

watesoft

Active Member
Licensed User
Longtime User
Do you use CSBuilder ?
Try:
thanks,that's a good idea,but CustomListView doesn't seem to support CSBuilder.

CSBuilder support attributed strings:
- Label / TextField / TextView.AttributedText
- TableCell.Text / DetailText
- Picker items
 
Upvote 0

MarcoRome

Expert
Licensed User
Longtime User
thanks,that's a good idea,but CustomListView doesn't seem to support CSBuilder.

CSBuilder support attributed strings:
- Label / TextField / TextView.AttributedText
- TableCell.Text / DetailText
- Picker items

??

Read Better documentation

B4X:
Dim cs As CSBuilder
cs.Initialize
cs.Font(Font.DEFAULT_BOLD).Color(Colors.White).Append("Esempio").Append(CRLF).Pop.Pop
cs.Color(Colors.Yellow).Append("View:" & Rnd(1,1000000)).PopAll
clv1.Add(CreateListItem(cs, "test", clv1.AsView.Width, 15%y, i), i)
....

Sub CreateListItem(Text As CSBuilder, name_image As String, Width As Int, Height As Int, record As Int ) As Panel

Look also this example: https://www.b4x.com/android/forum/threads/b4x-youtube-v3.88291/
 
Last edited:
Upvote 0

watesoft

Active Member
Licensed User
Longtime User
@MarcoRome ,@Erel,Thanks to give me good solution.I'm a newbie in B4i, a simple method is better for me,so I decide to replace xCustomListView module to library.
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…