Android Question Customlistview text size

Pacache

Member
Hello, i use a designer-made customlistview with texts only. Sometimes i need to insert a line ( just like a comment) but i want this specific line with small text characters. I ve looked though the forum thoroughly and found this line " lbl.TextSize = DefaultTextSize" but when i right click to look for this function, i cant find it. I assume there is another way to create a customlistview without the designer but still is it possible to change the text size inside chosen lines ? Thank you
 

Mahares

Expert
Licensed User
Longtime User
i use a designer-made customlistview with texts only.
How are you adding the text to the xCustomeListView. Can you show the sub with that code and what you want to do. It may have something like: clv1.AddTextItem(....)
 
Upvote 0

Pacache

Member
I have hundreds of lines to show, i take them from a File that i put in a list. I have another File with comments in it. Sometimes i want to insert a comment from this second file but i want the comment text to appear much smaller then the main lines.
For i =0 to liste.size-1
mot=liste.get(i)
CLVPerso.AddTextItem(mot,mot) ' this text is size 20 its the main one
for x=0 to filecomment.size-1
comment=filecomment.get(i)
if blablabla then
ClvPerso.addtextitem(comment, comment) ' i would love this line to appear with smaller text in the listview like size 10
end if
next
next
 
Upvote 0

Pacache

Member
It works fine ! i feel bad i didnt see that before .... i dont know how to post code yet i saw my way was not "normalized" afterwards. Thank you for your time and help.
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…