I need my ListView to identify the values of a Text item, for example:, "Full" / "Pending" and make each one have a different color inside the ListView. I tried to format by code, but I could not, I saw that in .VCL there is the CustomDrawSubItem that puts the loop there and does it, however I did not find it in .FMX which is what I want. The one below gives Access Violation, how should I do this?
procedure TformExames.listView1ApplyStyleLookup(Sender: TObject);
var
i : integer;
begin
for i := 0 to listView1.Items.Count -1 do
if listView1.Items[i].Text = 'Cancel' then
listView1.BeginUpdate;
listView1.Items[i].Objects.TextObject.TextColor := 444444;
listView1.EndUpdate;
end;