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

Change row color according to data field #286

Open yoram-s opened 4 years ago

yoram-s commented 4 years ago

Hi, In my case I in my data record I have a Boolean field named dirty. I do not want to display this column. However I do want to set different background color to the row. In the example provided, the cellModel only holds data which can be displayed and I couldn't find a way to hold this information. Any suggestion will be appreciated

evrencoskun commented 4 years ago

Hi @yoram-s

Unfortunately, you can not hide the column headers. Because it helps to the TableView in some calculations. In the future, we can make the TableView work without a column header. But because of its existing structure, it's not possible for now.

please check out #281 to find out changing row header colors.