Hello!
@jmpessoa , I think there could be something wrong with the new Inserrt method you added some days ago to jListView.
In fact, the method works as expected and adds a new item in the specified position but ... it seems that then you cannot use jListview.delete method properly! The item is not deleted at all! For example, if you put 3 jButtons (Button1, Button2 and Button3) and a jListView (ListView1) in an empty module (AndroidModule1) and add the next code:
procedure TAndroidModule1.Button1Click(Sender: TObject);
begin
ListView1.Add('Added '+intToStr(ListView1.count));
end;
procedure TAndroidModule1.Button2Click(Sender: TObject);
begin
ListView1.delete(0);
end;
procedure TAndroidModule1.Button3Click(Sender: TObject);
begin
ListView1.Insert(0,'Inserted in 0');
end;
and runs it:
if you Adds, lets say,three items with Button1, then you can delete the three pressing Button2
If you now Insert, lets say, three items with Button3, then you CAN'T delete any one pressing Button2
If you reopen the app and Add 3 items with Button1 and then Insert other three items with Button3 (or viceversa or in any other order) then you can ONLY delete the three first items.
It looks like when inserting items the control doesn't increase the count of them so, even having 6 items (for example), it's only capable of deleting three of them.
Am I right or am I doing something wrong?
Thanks in advance.