CarouselView - Poor performance and even crashing on older devices such as iPad 2
See original GitHub issueHi Andrei,
First of all thank you for your great library and amazing work!
I am using your library in my highly dynamic app where the views are all created using C# based on the JSON API response
I have something like this in my ContentPage:
<panCardView:CarouselView
IsPanInteractionEnabled="False"
IsPanSwipeEnabled="False"
IsVerticalSwipeEnabled="False"
ItemsSource="{Binding RecordCreateContentViews}"
MoveThresholdDistance="1"
SwipeThresholdDistance="20"
SwipeThresholdTime="20"
UserInteractionDelay="100">
<controls:IndicatorsControl
IsTapToNavigateEnabled="True"
Margin="0,0,0,6"
Spacing="10"
VerticalOptions="Start" />
</panCardView:CarouselView>
RecordCreateContentViews is also an ObservableCollection of type ContentView.
So basically, what I am doing is creating ContentViews inside the OnAppearing override and then add them to the ObservableCollection.
It works fine and I can use it just fine:
The trouble is when I want to navigate to different tabs (either using swipe gesture or by tapping on the dots), it takes around 2-3 seconds on a physical devices - even on iPad Pro (latest generation) and iPhone 11 Pro Max.
on iPad 2 the situation is really worse! It will take around 10 seconds to go to the next tab and it will then give up and crash the app (I cannot see any crash log either!)
My question is:
Is there a way to preload the layouts and somehow cache them? Can anything be done about memory usage as well as smooth navigating across tabs?
Thanks!
Issue Analytics
- State:
- Created 3 years ago
- Comments:9 (6 by maintainers)
Top GitHub Comments
This is what I get from the native Xamarin.Forms’s CV:
LOL!
I think this issue ticket can be closed)