Cardview: First and Fourth Page Duplicate ISSUE

Created on 6 Nov 2018  路  6Comments  路  Source: AndreiMisiukevich/CardView

Hi, I tried to use the "CarouselView" of this Plugin in order to display list of data and everything works fine. However, the only thing that I found some issue is that after every three pages, the next three pages (fourth, fifth, sixth and so on...) unexpectedly duplicate some of the UI Design from the first three pages without touching/changing anything on the current index/page as shown in image(below):

THIS IS THE FIRST PAGE:
first page

THIS IS THE FOURTH PAGE:
fourth page

When I check the 'check icon' in the first page, the fourth page check icon is also being selected.
The second and third page is working fine they are not selected.

Hoping you can help me with this. Thanks. :)

question resolved

All 6 comments

@toshitani23

Hi, do you use bindings for managing carousel?
It seems, that bindings doesn't work.. you should clear view each time when they will appear.
hmm..
So, you can try to set "IsViewCacheEnabled = false", but it isn't very good solution.
Or try to subscribe BindingContextChanged in your cards and clear view...
There are a lot of possible fixes/workarounds

It would be great to have small sample with this issue, i will help to figure out.

Hi @AndreiMisiukevich, thank you for helping me.

Here is the small sample you're requesting.

CarouselViewDuplicateItem.zip

@toshitani23 i will try to check it today-tomorrow :)

-
if you like this plugin, you may STAR it)

I checked your sample
You don't use bindings properly for storing selected image.

I can create small sample, how to use it .. because it's difficult a little to understand your code :)

So, if you have 4-8 views at all
you can set MaxChildrenCount = 12, DesiredMaxChildrenCount = 12 and probably it will solve your issue too, or you can figure out with bindings

test.zip

I created very similar sample, check it :)
You just need to figure out with your bindings )

Was this page helpful?
0 / 5 - 0 ratings

Related issues

jolugarbe picture jolugarbe  路  8Comments

shoeIT picture shoeIT  路  6Comments

JTOne123 picture JTOne123  路  5Comments

alicint picture alicint  路  3Comments

EldinHb picture EldinHb  路  8Comments