DpadRecyclerView icon indicating copy to clipboard operation
DpadRecyclerView copied to clipboard

Touch behavior in scrolling

Open HarshaliSachani opened this issue 1 year ago • 4 comments

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

HarshaliSachani avatar Jan 24 '24 17:01 HarshaliSachani

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 avatar Jan 24 '24 23:01 rubensousa

@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 avatar Jan 25 '24 01:01 HarshaliSachani

@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

rubensousa avatar Jan 25 '24 22:01 rubensousa

@HarshaliSachani any update here?

rubensousa avatar Mar 14 '24 22:03 rubensousa

Added DpadSelectionSnapHelper that helps with this in 1.3.0-alpha04

rubensousa avatar Jun 04 '24 21:06 rubensousa