How to display fast \ smooth scrolling dataset in mobile app?

I am developing a mobile app for Android \ iOS and I need to display a dataset with multiple columns. I can easily do this with TGrid + binding, however scrolling on mobile is extremely slow. TListView is very fast, but unfortunately doesn't support columns as far as I can see. Using TListView + plain text is very responsive:

LItem.Text := Format('%-10s %-30s %-10s %-30s %-10s %-10s %-10s',
            [Trim(myQry.Fields[0].AsString),
             Trim(myQry.Fields[1].AsString),
             Trim(myQry.Fields[2].AsString),
             Trim(myQry.Fields[3].AsString),
             Trim(myQry.Fields[4].AsString),
             Trim(myQry.Fields[5].AsString),
             Trim(myQry.Fields[6].AsString)]);

      

However, our company policy specifies the use of Calibri and therefore alignment occurs everywhere.

Does anyone know of a method for displaying a dataset in multi-column mobile apps that is responsive with smooth scrolling?

+3


source to share


1 answer


Instead of Tlistview or Grid, implement TListbox. You are right OP, as it is not as fast / smooth as TListview when scrolling, but if you work well with styling it might still be perfect.



0


source







All Articles