Marcio 2 Posted January 25, 2019 I have a listview application with dynamic items, which is connected to a fdmemtable, when clicking repeatedly on any item in the listview, the application closes. If you put the listview without the dynamic items, and clicking several times this does not occur I'm using delphi 10.2.3 works ok, but in delphi 10.3 comunity, the error occurs, with android 8.0.1 Has anyone had this problem ? Share this post Link to post
mausmb 13 Posted January 25, 2019 (edited) Hi, I have all ListViews dynamicly created and "connected" to FDmemTable. Key word is "connected" - what do you mean with that ? With Live Bindings ? var LItem: TListViewItem; begin MyLV1.BeginUpdate; MyLV1.Items.Clear; myFDmemTable.First; While not myFDmemTable.eof Do Begin LItem := MyLV1.Items.Add; LItem.Text := myFDmemTableName.AsString; LItem.Tag := myFDmemTableKey.AsInteger; myFDmemTable.next; end; MyLV1.EndUpdate; Working fine (and fast) on Android 5.x to 9.1 br, m Edited January 25, 2019 by mausmb Share this post Link to post
Marcio 2 Posted January 25, 2019 Hi, I use livebinding to popular Listview. Share this post Link to post
mausmb 13 Posted January 25, 2019 (edited) 34 minutes ago, Marcio said: Hi, I use livebinding to popular Listview. I'm affraid you won't get best UX&performance with livebindigs br, m p.s. If you have more complex ListView you can do it manually 🙂 with TAppearanceListViewItems... LItem.Objects.FindDrawable('name').Width:=LColWidth; // LItem.Objects.FindDrawable('name').Data:=yourdata Edited January 25, 2019 by mausmb 1 Share this post Link to post