Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Column header not match cell when to reload #399

Open
phucdzvcll opened this issue Nov 28, 2021 · 1 comment
Open

Column header not match cell when to reload #399

phucdzvcll opened this issue Nov 28, 2021 · 1 comment
Labels

Comments

@phucdzvcll
Copy link

phucdzvcll commented Nov 28, 2021

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 phucdzvcll added the bug label Nov 28, 2021
@HanTH2
Copy link

HanTH2 commented Jul 14, 2022

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants