Jump to content
Sign in to follow this  
Marcio

Problems with Listview fmx 10.3 ,close application

Recommended Posts

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

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 by mausmb

Share this post


Link to post
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 by mausmb
  • Like 1

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×