Android Question XCustomListView - change colours in code

JdV

Active Member
Licensed User
Longtime User
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
 

JdV

Active Member
Licensed User
Longtime User
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
Top