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

The column width follows the adapter that was first opened #410

Open
ilhamhadisyah opened this issue Nov 1, 2023 · 0 comments
Open

The column width follows the adapter that was first opened #410

ilhamhadisyah opened this issue Nov 1, 2023 · 0 comments
Labels

Comments

@ilhamhadisyah
Copy link

still having this issue after added
cellContainerView.layoutParams.width = xxx
cellCcontainerView.requestLayout().

and

headerContainerView.layoutParams.width = xxx
headerCcontainerView.requestLayout().

all of these located on
onBindCellViewHolder and onBindColumnHeaderViewHolder

Reference original code example : CellViewHolder.java

issue :

  • if the first time I select filter1 with adapter1, the width is normal, then I select filter 2 with adapter 2, the width is resized (some cell have same width with the adapter 1).
  • if the first time I select filter2 with adapter2, the width is normal, then I select filter 1 with adapter 1, the width is resized (some cell have same width with the adapter 2).
  • and so on.

condition :

  • I have 4 adapter and 1 tableView, the adapter will changed on each filter triggered by spinner
  • on each adapter has different colWidth
  • changing adapter using tableView.adapter = adapter1 / adapter2 and so on.
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

1 participant