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

Try to listen the horizontal scroll view #315

Open rviannaoliveira opened 4 years ago

rviannaoliveira commented 4 years ago

Hi, @evrencoskun first congrats for your libs.

Can you help with a problem?

I need to listen when the scrollView is running or stopped, The listen of VerticalRecyclerViewListener it is works I get to take after the emitter, but HorizontalRecyclerViewListener I dont get to take.

I used your sample too. Maybe the HorizontalListener isnt emitter the rest of the events.

      adapter.tableView.cellRecyclerView.addOnScrollListener(object : RecyclerView.OnScrollListener(){
            override fun onScrollStateChanged(recyclerView: RecyclerView, newState: Int) {
                super.onScrollStateChanged(recyclerView, newState)
                println(">>>>>>>>>>>>>>")
            }
        }) 
rviannaoliveira commented 4 years ago

I got to take the scrollView inside from the my adapter in the onCreateCellViewHolder I took the parent that is CellRowRecyclewView

but It can be a new improve