Cardview: Black blinking / Orientation changed issues

Created on 14 Jun 2018  路  18Comments  路  Source: AndreiMisiukevich/CardView

Here is a sample project with the issue.

video

bug resolved

All 18 comments

Super!

But why did you write, that carousel doesn't want to update children?
I see only one issue - black color blinking.

So, I've resolved black blinking
Is it your issue?)

@AndreiMisiukevich Sorry about the lack of specificity on the title, I really didn't have a clue of what could be the problem, except for what it could be maybe related to CarouselView not "updating" the state of the individual pages, their position maybe!?

There is still something weird going on when the device changes orientation though, I've attached a screen-capture below:

video2

Thanks for looking into the issue.

@AndreiMisiukevich , it seems adding a call to RaiseChild() immediately after the modification in your last commit solves the problem, but I'm not sure if I'm messing with something else by doing so. Maybe the call should be put in some other place, I don't know.

if (ItemTemplate != null)
{
    SetupBackViews();
}
RaiseChild(CurrentView); // <--- here

Thanks again for looking into this.

Thank you
I will figure out it a little bit later

Btw, if you like this plugin, star pls this project)

Ok... just star-ed your plugin, I almost always forget about the star-ing system.
btw, is this plugin being merged into Xamarin Forms?

@rraallvv no..
I suggested them it, but they are very busy for review.
__
I'll create new pack version on weekend. Is it ok for you?

Awesome! It's very much appreciated. Thanks again!

Strange, I have the same problem. Please, is this resolved?
On android and ios, when I switch from portrait to landscape, the previous page is in the middle of the current one.

@dblookup hi
What version of Xamarin Forms and CardsViw do you use

Hi Andrei,
Xamarin.Forms 3.1.0.637273
CardsView 1.5.6

Could you confirm that this use reproduces on my test samples ? (Which one)
Or send me please your sample

Sure, I just create a sample. Please find attached.
PanCardViewApp.zip

@dblookup thanks a lot) i will look through it a little bit later (maybe tomorrow, maybe at weekend)

@dblookup why don't you want to user ItemTemplate and any ItemsSource?
A added one extra check/attempt, but don't think, that it will help.

So, as you use Views collection instead of ItemTemplate, there is only one instance of you view at one time, and when you change orientation of you device, sometime app cannot get in time all animations etc. And i think, it can be the reason.

Btw, could you create small video with reproduction on you test sample? I tried with iOS simulator (iPhone X), and didn't catch any black blinking

Hello Andrei,
Ok, but it is occured in both situations (ItemTemplate and ItemsSource). Please, find attached the video.

cardview_mov.zip

Thank you so much!

@dblookup hope these fixes will help you.
You may check reproducing of this issue this in my samples or create local nuget ..

Was this page helpful?
0 / 5 - 0 ratings

Related issues

LuisM000 picture LuisM000  路  3Comments

ssotir picture ssotir  路  7Comments

jolugarbe picture jolugarbe  路  8Comments

troyvnit picture troyvnit  路  8Comments

2092015 picture 2092015  路  5Comments