Change fields colors in ListView

mitobobo

Member
Licensed User
Longtime User
Hello everyone.

I'm very sorry in advance if this question has already been asked before. I used the search tool, but I didn't find it, or I found it but I didn't understand very well :eek:

I have a ListView which contains different fields, for example:
Field 1: "Hi";
Field 2: "Hello";
Field 3: "Bye"
...

How can I change the text color of field 1 to Blue, the text color of field 2 to Red, etc..?

Thank you very much in advance and sorry for my English.

Best
 

klaus

Expert
Licensed User
Longtime User
It depends on what you mean with Field1, Field2, Field3 and Field4.
If you add them with AddSingleLine, you cannot, all fields have the same color.
If you add Field1 and Field2 with AddTwoLines you can change the colors, but then Field3 has the same color as Field1 and Field4 has the same color as Field2 etc.
The definition of the layouts with SingleLineLayout or TwoLinesLayout all ListView items are the same.
Otherwise you should use a ScrollView.

Best regards.
 
Upvote 0

mitobobo

Member
Licensed User
Longtime User
Oh, ok. Thank you very much for your answer. How can I do that with a ScrollView?
 
Last edited:
Upvote 0
Top