I'm trying to make search template in light theme. Have succeed in part of it, but missing last one. This is how it looks now:
What I would like to do is color items with white background and black font color.
What I have tried are few options or ideas which came to my mind :
For a = 0 To SearchTemplate.CustomListView1.Size-1
Dim pnl As B4XView
pnl = SearchTemplate.CustomListView1.GetPanel(a)
pnl.Color = Colors.White
For Each ob As B4XView In pnl.GetAllViewsRecursive
ob.Color = XUI.Color_Transparent
ob.TextColor = TextColor
Next
Next
In this one, "SearchTemplate.CustomListView1.Size" is 0.
For Each pp As B4XView In SearchTemplate.mBase.GetAllViewsRecursive
Try
pp.Color = XUI.Color_Transparent
pp.TextColor = TextColor ' teksta
Catch
Log(LastException)
End Try
Next
Have put TryCatch as it returns "Type does not match"
Any ideas ?