question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

CarouselView gets out of sync with rapid swiping of views

See original GitHub issue

I have a page with a CarouselView containing 4 view - on rapid swiping data gets out of sync. The data that should be shown on 4th view is show on 3rd view and when you swipe to 4th view its blank. I have tried setting IsViewReusingEnabled = false but still getting out of sync data.

Also in between swiping - i get the following message in the console.

CardsView: Couldn’t handle InvalidOperationException

Below is the code snippet:

<cards:CarouselView
                Grid.Row="1"
                x:Name="MainCardView"
                IsCyclical="False"
                IsClippedToBounds="True"
                IsViewReusingEnabled = "False"
                SelectedIndex="{Binding SelectedIndex, Mode=TwoWay}"
                BackgroundColor="White"
                ItemsSource="{Binding Characteristics}">
                <cards:CarouselView.ItemTemplate>
                    <DataTemplate>
                        <ScrollView
                            BackgroundColor="{StaticResource AppWhite}"
                            Padding="24,0,24,16">
                            <StackLayout
                                Spacing="16"
                                BindableLayout.ItemsSource="{Binding Sections}"
                                BindableLayout.ItemTemplateSelector="{StaticResource ExploreDataTemplateSelector}">
                            </StackLayout>
                        </ScrollView>
                    </DataTemplate>
                </cards:CarouselView.ItemTemplate>
                <cardsControl:IndicatorsControl
                    SelectedIndicatorStyle="{StaticResource ActiveIndicator}"
                    UnselectedIndicatorStyle="{StaticResource InactiveIndicator}" />
            </cards:CarouselView>

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:37 (21 by maintainers)

github_iconTop GitHub Comments

1reaction
vunhutiencommented, Dec 17, 2019

@vunhutien thanks

so, i think

  1. TextType=“Html” : it’s something wrong with this label type. But it isn’t related to this project, because it works fine with regular labels. No idea for now, what can be wrong
  2. back button: it looks like UI glitch. Probably it is related to HTML label as well

I agreed that issue no 1 may not related to this library, but i’m not very sure about No 2 cause in screen that i used Text Label it still got that issue.

BTW i highly appreciate your effort to create this lib, troubleshoot issue and resolve it. Thanks so much.

1reaction
AnthonyNjugunacommented, Dec 10, 2019

Yes

Read more comments on GitHub >

github_iconTop Results From Across the Web

CarouselView gets out of sync with rapid swiping of views
I have a page with a CarouselView containing 4 view - on rapid swiping data gets out of sync. The data that should...
Read more >
Carousel View swiping performance issue - Microsoft Q&A
After adding multiple content views inside Carousel view, it is getting little stuck on first swipe. Tried to debug it, and got one...
Read more >
How do I get Xamarin.Forms CarouselPage in Android to ...
Sometimes, OnCurrentPageChanged does not get called on fast swiping and currentIndex gets out of sync. To correct this I changed ...
Read more >
Carousel doesn't render Labels with Fade: False
There isn't a “flick swipe” gesture in place with the new carousel. That said, it wouldn't be hard to add, and I can...
Read more >
Android Question Carousel View - B4X Programming Forum
This version works with landscape and portrait. I have added a opacity screen for visible images out of focus. There is no problem...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found