microsoftarchive / android-sliding-layer-lib

Highly customizable SlidingLayer as you have seen in Wunderlist
http://wunderlist.com
Apache License 2.0
932 stars 279 forks source link

Recyclerview inside slidinglayer #112

Closed chiragagrawal-tudip closed 6 years ago

chiragagrawal-tudip commented 6 years ago
chiragagrawal-tudip commented 6 years ago

Hi @JlUgia, Please have a look at this PR.

chiragagrawal-tudip commented 6 years ago

Hi @JlUgia, Any update on this PR.

JlUgia commented 6 years ago

Hey @chiragagrawal-tudip! That'd would technically work, but it'd collide with the class structure. The method canScroll was intentionally used and exposed as a protected method so that further child classed in the hierarchy could follow this same standard that you can see in other views like the ViewPager. What I'd recommend is that you subclass the SlidingLayer and override the canScroll method similar to how you have done already.

That wouldn't require any change to this lib; and this change does not necessarily add anything to it. Nonetheless, I leave @CesarValiente and @aconsuegra in CC in case they have a different view on things.

Let me know if any further explanation would help.

chiragagrawal-tudip commented 6 years ago

Hi @JlUgia, Thank you for your valuable suggestion. I have achieved the same in my code. Thanks!

JlUgia commented 6 years ago

💃 🎉