Hi Kittipat
Sorry for the inconvenience.
We have checked the reported issue “SfListView does not have smooth scrolling” at our end and we could able to reproduce the issue in Android platform when the images with larger size and high resolution are loaded in ItemTemplate property.
In Android platform:
We have analyzed the Scrolling performance with framework and found that, in android the native objects are created for each images load in ItemTemplate of SfListView when update the BindingContext of ListView item while scrolling. So scrolling gets affected when load two or more images in each item. This is due to the fact that the Android Mono Framework collects the minor garbage whenever the live objects count in the current application exceeds a threshold which causes a temporary glitch pausing the application for few milli-seconds which is unavoidable in the android development. Thus the only way to resolve the minor garbage collection is to reduce the live object count which is currently not possible for a component like ListView that has to handle certain functions mandatorily to render its view. Further when loading complex layout in the template that contains images or nested containers, the Android System and the Xamarin framework takes its time to render them in view. This largely depends on the views that used in template and the CPU of the Android device that the application is being deployed.
So, we suggest you to use images with less size and resolution to achieve the maximum performance.
Also, we regret to inform that the reported issue “Smooth scrolling does not occur in Android platform” is a framework issue and we have logged a defect report to Bugzilla team. The issue is caused when the Garbage Collection(GC) is collected as mentioned earlier. We will let you know once the Xamarin team provides any solution or workaround to fix the GC collection. You can follow up the same from the below Bugzilla link.
Meanwhile we are also analyzing the possibilities to remove it from our side by any workaround and will let you know if found any possible solution to overcome it.
Also, could you please share the below information’s? which would help us to analyze the issue better and update you an appropriate solution.
- Whether the issue replicates only in Android platform or in other platforms too?
- Could you please share the View loaded in ItemTemplate property? If possible, please replicate the issue in a sample and revert us.
Please let us know if you require further assistance.
Dinesh Babu Yadav