Skip to content

RecyclerView render issue if wrapped inside NestedScrollView #400

Open
@punitshah89

Description

@punitshah89
  • [x ] I have searched existing issues and confirmed this is not a duplicate

Issues and steps to reproduce

RecyclerView is not showing all items when list is long when used with FlexboxLayoutManager

  1. Wrap RecyclerView with android:nestedScrollingEnabled="false" inside NestedScrollView
  2. Create and add FlexboxLayoutManager to RecyclerView
  3. Load recycler view with long list of items

Expected behavior

RecyclerView should render all items

Version of the flexbox library

0.3.1, 0.3.2

Code example based on repro steps

<android.support.v4.widget.NestedScrollView
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
   android:id="@+id/nested_scroll_view"
   android:layout_width="match_parent"
   android:layout_height="match_parent"
   android:fillViewport="true"
   android:scrollbars="none"
   app:layout_behavior="@string/appbar_scrolling_view_behavior">
       <android.support.v7.widget.RecyclerView
           android:id="@+id/recycler_view"
           android:nestedScrollingEnabled="false"
           android:layout_width="match_parent"
           android:layout_height="match_parent"
       />
</android.support.v4.widget.NestedScrollView>
RecyclerView.LayoutManager layoutManager = new FlexboxLayoutManager(this.getContext());
mRecyclerView.setLayoutManger(layoutManager);

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions