You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hey guys, first let me thank you for making this library opened sourced.
The problem I am facing is the following: one of my fargments is basically a full page recyclerview that every row of that recyclerview host another horizontal recyclerview, so my fragment is filled with horizontal scrollable recyclerviews.
As the suggestion and following the example app, I added view.addOnLayoutChangeListener(PanelsChildGestureRegionObserver.Provider.get()) to the entire fragment view.
The issues is that sometimes it works and sometimes it does not work, when it works everything is perfect, when it doesn't the horizontal recyclerview is un scrollable and the panels won't open.
The weird thing is that when it's not working, either locking the phones and opening it again will fix it (without closing the app), or even pressing the Home button and then going back to the app will fix it.
Any suggestiongs?
The text was updated successfully, but these errors were encountered:
Hey guys, first let me thank you for making this library opened sourced.
The problem I am facing is the following: one of my fargments is basically a full page recyclerview that every row of that recyclerview host another horizontal recyclerview, so my fragment is filled with horizontal scrollable recyclerviews.
As the suggestion and following the example app, I added view.addOnLayoutChangeListener(PanelsChildGestureRegionObserver.Provider.get()) to the entire fragment view.
The issues is that sometimes it works and sometimes it does not work, when it works everything is perfect, when it doesn't the horizontal recyclerview is un scrollable and the panels won't open.
The weird thing is that when it's not working, either locking the phones and opening it again will fix it (without closing the app), or even pressing the Home button and then going back to the app will fix it.
Any suggestiongs?
Hi @ , I was thinking about the implementation, can you share the code where you setChildGestureRegions for the view. Would help me a lot.
I've figured out that isTouchingChildGestureRegion() returns the wrong value when using the library with fragments.
To work around the issue I clear childGestureRegions list in each fragment onStop method:
override fun onStop() {
super.onStop()
PanelsChildGestureRegionObserver.Provider.get()
.removeGestureRegionsUpdateListener(this)
onGestureRegionsUpdate(emptyList()) // this calls overlappingPanels.setChildGestureRegions(gestureRegions)
}
Hey guys, first let me thank you for making this library opened sourced.
The problem I am facing is the following: one of my fargments is basically a full page recyclerview that every row of that recyclerview host another horizontal recyclerview, so my fragment is filled with horizontal scrollable recyclerviews.
As the suggestion and following the example app, I added
view.addOnLayoutChangeListener(PanelsChildGestureRegionObserver.Provider.get())
to the entire fragment view.The issues is that sometimes it works and sometimes it does not work, when it works everything is perfect, when it doesn't the horizontal recyclerview is un scrollable and the panels won't open.
The weird thing is that when it's not working, either locking the phones and opening it again will fix it (without closing the app), or even pressing the Home button and then going back to the app will fix it.
Any suggestiongs?
The text was updated successfully, but these errors were encountered: