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

Not working when enclosed inside a NestedScrollView #33

Open
saurabharora90 opened this issue Sep 17, 2017 · 1 comment
Open

Not working when enclosed inside a NestedScrollView #33

saurabharora90 opened this issue Sep 17, 2017 · 1 comment

Comments

@saurabharora90
Copy link

For my use case, I had to include a RecylerView a NestedScrollVIew. Once I do that, the layout manager does not work anymore. I thought it would be a height issue so I modified the FixedGridLayoutManager to include setAutoMeasureEnabled(true). That caused the content to show up but the scrolling would not happen.

I also tried enabling and disabling NestedScrolling on the RecyclerView.

Sample:


<?xml version="1.0" encoding="utf-8"?>
<android.support.v4.widget.NestedScrollView xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:fillViewport="true">

    <android.support.v7.widget.RecyclerView xmlns:android="http://schemas.android.com/apk/res/android"
        android:id="@+id/rvFanClubs"
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:clipChildren="false"
        android:clipToPadding="false"
        android:paddingLeft="12dp"
        android:paddingRight="12dp" />

</android.support.v4.widget.NestedScrollView>

@LouisCAD
Copy link

@saurabharora90 I'd advice you to replace the NestedScrollView with a RecyclerView with a single view adapter and see if it fixes the issue

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

2 participants