JdV Active Member Licensed User Longtime User Mar 24, 2021 #1 Hello I'm using XCustomListView to display a simple list of text items. How do I change the items' background colour and text colour in code? Regards Joe
Hello I'm using XCustomListView to display a simple list of text items. How do I change the items' background colour and text colour in code? Regards Joe
Erel B4X founder Staff member Licensed User Longtime User Mar 24, 2021 #2 Question is a bit ambiguous. If you are adding items with AddTextItem then you can set CLV.DefaultTextBackgroundColor and CLV.DefaultTextColor. You can also change CLV.DesignerLabel properties to change the text size and font. You can also use CSBuilder instead of standard text. Upvote 0
Question is a bit ambiguous. If you are adding items with AddTextItem then you can set CLV.DefaultTextBackgroundColor and CLV.DefaultTextColor. You can also change CLV.DesignerLabel properties to change the text size and font. You can also use CSBuilder instead of standard text.
JdV Active Member Licensed User Longtime User Mar 24, 2021 #3 Thanks. That was the solution I was looking for. I had tried the following: B4X: Dim cd As ColorDrawable cd.Initialize(Colors.Green, 25) XCLV.DesignerLabel.Background = cd And: B4X: XCLV.DesignerLabel.Color = Colors.Green And neither had worked. Upvote 0
Thanks. That was the solution I was looking for. I had tried the following: B4X: Dim cd As ColorDrawable cd.Initialize(Colors.Green, 25) XCLV.DesignerLabel.Background = cd And: B4X: XCLV.DesignerLabel.Color = Colors.Green And neither had worked.