maui
maui copied to clipboard
Collection View in MAUI iOS, Android scrolling erratically.
Description
Hi, I am creating an app where I am using collection views with complex item templates and fetching data from API. But the list after loading scrolls erratically and freezes sometimes. Any suggestions or workarounds to make the scroll animation more smooth?
Steps to Reproduce
- Create a collection view.
- Fetch data from API.
- Populate the list and see the scroll behaviour.
Version with bug
6.0.400 (current)
Last version that worked well
Unknown/Other
Affected platforms
iOS, Android, I was not able test on other platforms
Affected platform versions
iOS 15, Android API 30, 31
Did you find any workaround?
Not yet.
Relevant log output
Did not find any significant output
@Awesomer9561 I don't repro this issue by writing a little repro project for collection view data binding. could you check my repro project and tell me if I miss something or share your repro project for us to repro this issue. thanks. MauiApp4.zip
Hi @Awesomer9561. We have added the "s/needs-info" label to this issue, which indicates that we have an open question for you before we can take further action. This issue will be closed automatically in 7 days if we do not hear back from you by then - please feel free to re-open it if you come back to this issue after that time.
@Awesomer9561 I don't repro this issue by writing a little repro project for collection view data binding. could you check my repro project and tell me if I miss something or share your repro project for us to repro this issue. thanks. MauiApp4.zip
Hi, In your code collection view is working fine but can you explain why are you using scroll as a parent?
@Awesomer9561 removing scroll does not effect the scrolling for collection view. you can have a try for this.
I tried using collection view with and without scrollview but whenever I am trying to render data from API it is jittering.
@Awesomer9561 Could you attach a small sample where reproduce the issue?. Happens on Android and iOS?. Thanks in advance.
Hi @Awesomer9561. We have added the "s/needs-info" label to this issue, which indicates that we have an open question for you before we can take further action. This issue will be closed automatically in 7 days if we do not hear back from you by then - please feel free to re-open it if you come back to this issue after that time.
@Awesomer9561 Could you attach a small sample where reproduce the issue?. Happens on Android and iOS?. Thanks in advance.
Hi, Sorry for the late reply I tried on Android and iOS and found the iOS version to be a little smoother than the Android. The problem is with simultaneous API calls. If I am using pagination or loading a lot of data at once the scroll view is freezing. Can this be handled if I use skeleton loaders in my app?
Edit: This is my implementation MauiApp4.zip
@Awesomer9561, When you get a chance, could you please re-share the sample in the form of a GitHub repository? Thank you :)
Hi @Awesomer9561. We have added the "s/needs-info" label to this issue, which indicates that we have an open question for you before we can take further action. This issue will be closed automatically in 7 days if we do not hear back from you by then - please feel free to re-open it if you come back to this issue after that time.
This issue has been automatically marked as stale because it has been marked as requiring author feedback but has not had any activity for 4 days. It will be closed if no further activity occurs within 3 days of this comment. If it is closed, feel free to comment when you are able to provide the additional information and we will re-investigate.