iOS Question Customlistview change textsize property in b4i

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