TableView icon indicating copy to clipboard operation
TableView copied to clipboard

Column header not match cell when to reload

Open phucdzvcll opened this issue 4 years ago • 1 comments

Clicking on reload will pass the adapter a new set of data, but on reload the column headers and cells no longer match.

  • For example below:

ezgif com-gif-maker (1)

phucdzvcll avatar Nov 28 '21 09:11 phucdzvcll

you can fix temporary by fixed width for every column in view holder

  • ColumnHeaderViewHolder column_header_container.layoutParams.width = mContext.resources.getDimension(R.dimen.width_item_timesheet).toInt() column_header_container.requestLayout()

  • CellViewHolder cell_container.layoutParams.width = mContext.resources.getDimension(R.dimen.width_item_timesheet).toInt() cell_container.requestLayout()

you can different every column base on id

HanTH2 avatar Jul 14 '22 00:07 HanTH2