Skip to content
This repository has been archived by the owner on May 1, 2024. It is now read-only.

ListView in Xamarin Forms 4 With Shell in Android not Scrolling #6381

Closed
YovanyTabares opened this issue Jun 1, 2019 · 7 comments
Closed
Assignees
Milestone

Comments

@YovanyTabares
Copy link

Description

ListView in Xamarin Forms 4 With Shell in Android not Scrolling

Steps to Reproduce

  1. Fill a List View With Data
  2. Try Scrolling

Expected Behavior

ListView Scrolling

Actual Behavior

Basic Information

  • Version with issue: Xamarin Forms 4.0

  • Platform Target Frameworks:

    • Android: API 19, 22
@YovanyTabares YovanyTabares added s/unverified New report that has yet to be verified t/bug 🐛 labels Jun 1, 2019
@samhouts samhouts added a/listview Problems with the ListView/TableView a/shell 🐚 p/Android labels Jun 1, 2019
@samhouts samhouts added this to the 4.0.0 milestone Jun 1, 2019
@samhouts
Copy link
Member

samhouts commented Jun 1, 2019

Same root cause as #5306 and #5205

@King-Xero
Copy link

Just ran into this issue, seems to be somewhat of a result of the following code being added to ListViewRenderer.cs in #4522:

if (Forms.IsLollipopOrNewer)
    nativeListView.NestedScrollingEnabled = true;

For now i'm using this solution as a workaround. If you create a custom renderer for your ListView and add the following code as an override:

protected override void OnElementChanged(ElementChangedEventArgs<ListView> e)
{
        base.OnElementChanged(e);
        if (Control == null) return;
        Control.NestedScrollingEnabled = false;
}

Hope this helps someone.

@samhouts
Copy link
Member

#6310

@moustafashaban
Copy link

IsPullToRefresh=false, solved the issue, but I hope the team can solve that soon

@PureWeen
Copy link
Contributor

PureWeen commented Jul 31, 2019

@adrianknight89 @moustafashaban @YovanyTabares

I wasn't able to recreate this issue. That being said
#7032

Should fix whatever ListView woes you are having. If you have a reproduction of your issue with ListView not scrolling that would be helpful to ensure that I did indeed address your scenario.

I tested creating a basic ListView, setting IsPullToRefresh to true and I never encountered any scrolling issues

@adrianknight89
Copy link
Contributor

@PureWeen For now, I'm using @King-Xero's workaround to fix my ListView scrolling issues. I'll test it all again after #7032 is merged and let you know.

@PureWeen PureWeen modified the milestones: 4.0.0, 4.3.0 Aug 1, 2019
@samhouts
Copy link
Member

closed by #7032

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

No branches or pull requests

6 participants