I have an app that was compiled with PhoneGap for Android. It uses a scrollview to display up to 100 items that include both text and graphics.
I wrote the code to use xhr to bring the "next" item (page x+1) when you are viewing page x - so performance is pretty good - it generally works well - but when using the app for a while - it sometimes gets "stuck" in the scollview - after displaying the first page of the new "query" result.
I switch content after a preview using the content method - with something like the following:
$("#adBoard").data("kendoMobileScrollView").content(previewStr);
$('#adcounter').text('1');
$('#totalads').text(cnt);
$("#adBoard").data("kendoMobileScrollView").scrollTo(0);
downloadFirst(currRequest, pDiv);
// switch to the view of the results
I wonder if this is an issue of memory consumption that is not released - when using the content() method. Because - doing the same stuff in Chrome on my development machine - it never gets stuck - with the exact same queries.
The question is - is there possibly a memory issue with this method - and would it be better to dynamically create a new scrollview element and initialize it with the query results after every query?
I wrote the code to use xhr to bring the "next" item (page x+1) when you are viewing page x - so performance is pretty good - it generally works well - but when using the app for a while - it sometimes gets "stuck" in the scollview - after displaying the first page of the new "query" result.
I switch content after a preview using the content method - with something like the following:
$("#adBoard").data("kendoMobileScrollView").content(previewStr);
$('#adcounter').text('1');
$('#totalads').text(cnt);
$("#adBoard").data("kendoMobileScrollView").scrollTo(0);
downloadFirst(currRequest, pDiv);
// switch to the view of the results
I wonder if this is an issue of memory consumption that is not released - when using the content() method. Because - doing the same stuff in Chrome on my development machine - it never gets stuck - with the exact same queries.
The question is - is there possibly a memory issue with this method - and would it be better to dynamically create a new scrollview element and initialize it with the query results after every query?