iOS Question Customlistview change textsize property in b4i

mcqueccu

Well-Known Member
Licensed User
Longtime User
In B4A, I use customlistview1.DesignerLabel.TextSize to change the textsize, but in B4i the textsize property is missing.

Please whats the B4i way of setting custom listview text size
 

Erel

B4X founder
Staff member
Licensed User
Longtime User
B4X:
Private Sub Button1_Click
    'Not working
    CustomListView1.DesignerLabel.As(B4XView).TextSize = 60    
End Sub
The DesignerLabel is a template that is used when adding text items. Changing the DesignerLabel properties after the items were already added will have no effect.

You can change the text size with:
B4X:
Private Sub Button1_Click
    For i = 0 To CustomListView1.Size - 1
        Dim item As CLVItem = CustomListView1.GetRawListItem(i)
        If item.TextItem Then
            item.Panel.GetView(0).GetView(0).TextSize = 30
        End If
    Next
End Sub
 
Upvote 0
Top