evrencoskun / TableView

TableView is a powerful Android library for displaying complex data structures and rendering tabular data composed of rows, columns and cells.
MIT License
3.14k stars 459 forks source link

TableView inside BottomSheet not scrolling #226

Closed jck9007 closed 5 years ago

jck9007 commented 5 years ago

Hi, it's the first time I use TableView and I'm really liking it!

However I'm having some troubles with vertical scrolling, I'm using TableView inside a BottomSheet. I had the same issue adding a ListView inside BottomSheet, but I solved it by adding a setOnTouchListener and disabling the BottomSheet scrolling when scrolling the ListView.

¿How can I do something like this on TableView? If I add setOnTouchListener to TableView it does not get called.

This is displayed in console each time I try to scroll:

W/CellRecyclerView: mIsVerticalScrollListenerRemoved has been tried to add itself before remove the old one D/VerticalRecyclerViewListener: mCellRecyclerView scroll listener added D/HorizontalRecyclerViewListener: Scroll listener has been added to 1 at action down D/HorizontalRecyclerViewListener: Scroll listener has been removed to 1 at action cancel

Thank you.

evrencoskun commented 5 years ago

Hi @jck9007

It's probably because of nested scrolling process of recyclerview. Check this.

There are also several dublicate issues about that #104 , #79

jck9007 commented 5 years ago

You're right that really helped!

Thank you!