Closed davidHarush closed 6 years ago
SwipeRefreshLayout only supports one child, so this library could not work with it since the header is added as a child view of the RecyclerView's parent.
SwipeRefreshLayout still works just fine with the FrameLayout that hosts the RecyclerView put inside it:
SwipeRefreshLayout -FrameLayout --RecyclerView
Thanks, i wiil try it.
it's not working..
java.lang.IllegalArgumentException: RecyclerView parent must be either a FrameLayout or CoordinatorLayout at com.brandongogetap.stickyheaders.Preconditions.validateParentView(Preconditions.java:23) at com.brandongogetap.stickyheaders.StickyLayoutManager.onAttachedToWindow(StickyLayoutManager.java:123) at android.support.v7.widget.RecyclerView$LayoutManager.dispatchAttachedToWindow(RecyclerView.java:7739) . . .
from --> static void validateParentView(View recyclerView)
at Preconditions
My mistake, seems to be working, Thanks
it is possible to use SwipeRefreshLayout as parent view in addition to FrameLayout or use SwipeRefreshLayout?
Thanks...