Skip to content

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

Description

@ilhamhadisyah

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions