DpadRecyclerView
DpadRecyclerView copied to clipboard
Touch behavior in scrolling
Can we use this lib for mobile app as well? It works perfect for Leanback focus and scrolling behavior in TV devices but I want to use same recycler view for support Mobile device scrolling and touch behavior
Hi @HarshaliSachani
Can you explain why you want to use this library for a mobile app? Which feature are you missing from the standard RecyclerView library?
@rubensousa Standard recycler view is perfect there is no issue with it. But I wanted to use same app in TV and mobile. As in this library you used recycler view instead of Leanback gridview and modify layout manager to handle focus and scrolling behaviour in nested recyclerview and gridview. So I tried to use the dpad recycler view on mobile devices with touch scrolling behaviour. Can we use it or is there any way to support it in mobile as well?
@HarshaliSachani If you're building 2 different apps (tv and mobile), I wouldn't combine DpadRecyclerView
. I only introduced basic touch support for this component. So my advise is to stick with plain RecyclerView
for the mobile app and only use DpadRecyclerView
for tvs or automotive projects that require both dpad and touch support.
However, I also plan to work on this sometime, which would improve touch support: https://github.com/rubensousa/DpadRecyclerView/issues/85
@HarshaliSachani any update here?
Added DpadSelectionSnapHelper
that helps with this in 1.3.0-alpha04