Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Scrolling issues in Android 9.0 Pie #3

Open
sandeepsipl opened this issue Mar 28, 2019 · 16 comments
Open

Scrolling issues in Android 9.0 Pie #3

sandeepsipl opened this issue Mar 28, 2019 · 16 comments

Comments

@sandeepsipl
Copy link

We have a strange issue with scrolling. When there are 100+ messages and we scroll the list on the Android phone having version 9.0 Pie, the scrolling is stuck and scroll in the wrong direction.

Like, if we try to scroll up speedy, then it came at the last message instead of scroll up and vice-versa.

Has anyone faced this issue earlier?

@sandeepsipl
Copy link
Author

Any Updates?

@Muthutc
Copy link

Muthutc commented May 22, 2019

Hi @sandeepsipl

Is it working in iOS.

@danielbalderas
Copy link

Hi @sandeepsipl Did you find a solution for this issue? I have the same problem

@sandeepsipl
Copy link
Author

Hi @sandeepsipl

Is it working in iOS.

Yes, In iOS, Its working fine. I've tested till iOS 12.3

@danielbalderas
Copy link

Hi @sandeepsipl
Is it working in iOS.

Yes, In iOS, Its working fine. I've tested till iOS 12.3

But in Android 9.0?
I can't find a solution, I know is a problem with the rotationX property

@jaykumarthaker
Copy link

I have the same problem, any solution so far?

@danielbalderas
Copy link

I have the same problem, any solution so far?

The problems is still on android, so I implement a temporal solution. try to detect what type of scroll the user is doing and if is ScrollState.Fling invoke the scrollTo event on your listview again

@jaykumarthaker
Copy link

Thank you so much for the hint @danielbalderas 👍
So, on ScrollState.Fling we shall invoke scrollTo(), for instance below (scrolls to bottom):

ListViewMessages.ScrollTo (ViewModel.Messages [ViewModel.Messages.Count - 1], ScrollToPosition.End, true);

Now, how should we define ScrollTo? You mean, if ScrollState.Fling then scroll 10 items up or scroll 10 items down? Something like that?

Um, any chance you might be able to share code for this?

@VasenevEA
Copy link

I have this problem too. May be we can change something in ListViewRenderer?

@gioggio79
Copy link

Same problem here. Any solution?
Or maybe you can post your workaround?

@gioggio79
Copy link

If you need help for get the ScrollState Event follow this blog, it help me a lot
(http://aklazy.blogspot.com/2019/06/how-to-detect-listview-scroll-state.html)

@acuntex
Copy link

acuntex commented Aug 21, 2020

Reversing the CollectionView and the Items works great on iOS and some Android devices.

But on some Android devices like Samsung if you scroll up, the CollectionView scrolls down and if you scroll down, the CollectionView scrolls up. (Problem only occurs, if you scroll hard enough and let him scroll alone. dunno how to explain it better)

Is there any fix for this?
Is FlowDirection="RightToLeft" and Rotation="180" still the best practice as of 2020?

@acuntex
Copy link

acuntex commented Aug 21, 2020

It's apparently an Android bug, workaround here: xamarin/Xamarin.Forms#7166 (comment)

@angelru
Copy link

angelru commented Jan 13, 2021

@acuntex
does the code passed to a CollectionView work fine too?

@acuntex
Copy link

acuntex commented Jan 13, 2021

@angelru Yes, the code in the linked comment works.

@kofanov
Copy link

kofanov commented Apr 7, 2021

Anyone have a solution for ListView? Not for CollectionView?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

9 participants