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

Columns/cells width is reset after scroll to the same value for all the cell #174

Closed DavideBicego closed 6 years ago

DavideBicego commented 6 years ago

Hi, thanks for the lib. As said in the title after a scroll all the cells width is set to the same value (i think to wrap the largest content). I can't found the issue, any suggestion? Here is the layout right after activity launch: before

here after a scoll down: after

DavideBicego commented 6 years ago

I managed to resolve this by returning different values for all the columns in getCellItemViewType() method. Now the problem is that the only column width updated on scroll down is the one of the column in which i'm scrolling. I need to update all the columns width when a new text size is bigger than the current column width value. What can I do?