an app to test the speed of native android scrolling

The place to discuss anything and everything about running your LiveCode on Android

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
keram
Posts: 340
Joined: Fri Nov 08, 2013 4:22 am

an app to test the speed of native android scrolling

Post by keram » Thu Apr 10, 2014 4:54 pm

Hi,

Does anybody know any app created with LC that is using a data grid form (not the SQL) to display a list of about 500-1000 records that you can view with the native android scrolling. I just want to check the speed and responsiveness of scrolling in such an app and compare to what I created.

keram
Using the latest stable version of LC Community 6.7.x on Win 7 Home Premium, 64bit

Mark
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 5150
Joined: Thu Feb 23, 2006 9:24 pm
Contact:

Re: an app to test the speed of native android scrolling

Post by Mark » Fri Apr 11, 2014 9:50 am

Hi Keram,

Are you the person who uploaded allin1-1.2.4 somewhere? There was a coding error in that stack, which prevented the scroller control from scrolling correctly. It didn't have anything to do with speed.

Kind regards,

Mark
The biggest LiveCode group on Facebook: https://www.facebook.com/groups/livecode.developers
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode

keram
Posts: 340
Joined: Fri Nov 08, 2013 4:22 am

Re: an app to test the speed of native android scrolling

Post by keram » Fri Apr 11, 2014 11:37 am

Hi Mark,

Thanks for your response both here and on the other place.
Mark wrote:There was a coding error in that stack, which prevented the scroller control from scrolling correctly.
I tried with your correction to put this:

Code: Select all

put 0,0,(the DGformattedWidth of group "DataGrid 1"),(the DGformattedHeight of group "DataGrid 1") into tContentRect
mobileControlSet "loremScroll", "contentRect", tContentRect
into all the buttons All Categories, My Selection or My Categories scripts but it makes it even worse - the correct groups are not put into grid. When I disable this line:
mobileControlSet "loremScroll", "contentRect", tContentRect
then it woks better. But still the scrolling in the My Selection or My Categories does not work properly. First when I exit the app and start again then the scrolling works OK.

You said: "If I click on My Selection, the datagrid is empty and obviously scrolling won't work." Yes, that's correct, you have to make few selections first enough in numbers to exceed that height of the dg.

I'm attaching the corrected stack.

keram
Attachments
android native scroller for data grid_correction1.zip
(30.35 KiB) Downloaded 281 times
Using the latest stable version of LC Community 6.7.x on Win 7 Home Premium, 64bit

bangkok
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 937
Joined: Fri Aug 15, 2008 7:15 am

Re: an app to test the speed of native android scrolling

Post by bangkok » Fri Apr 11, 2014 1:15 pm

I don't want to hijack your thread... But there is an alternative to datagrid + mobilecontrol "scroller" (without graphic elements) : rrpTGrid

from :
http://www.runrevplanet.com

Very easy to handle and works very well on Android, although I never tried with with very large grid.

keram
Posts: 340
Joined: Fri Nov 08, 2013 4:22 am

Re: an app to test the speed of native android scrolling

Post by keram » Sat Apr 12, 2014 2:07 pm

Hi bangkok,

I checked it out - the demos... It may work very well with spreadsheet type of data, but in my case the data grid works better I think... except the scrolling.

keram
Using the latest stable version of LC Community 6.7.x on Win 7 Home Premium, 64bit

Post Reply