Android Question changing listview text color more than once

Devv

Active Member
Licensed User
Longtime User
is it possible to change a list view item text color after even if it already holds items ?

i mean i would like to have each line of a list view text with a color is that possible ?
 

DonManfred

Expert
Licensed User
Longtime User
You have THREE layouts. One line, two lines and two lines and bitmap.
You can set a layout for ALL Items of the same layout.
You can NOT use different colors on the same type of items.

Use a custom scroll view instead a listview; here you have all possibilities on all "items"
 
Upvote 0

Devv

Active Member
Licensed User
Longtime User
so no way to make this work without using the complex custom listview ?
B4X:
    Activity.LoadLayout("main")
    ListView1.AddSingleLine("default")
    ListView1.SingleLineLayout.Label.TextColor = Colors.Green
    ListView1.AddSingleLine("green")
    ListView1.SingleLineLayout.Label.TextColor = Colors.red
    ListView1.AddSingleLine("red")
 
Upvote 0
Top