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.15k stars 457 forks source link

Workaround for issue Cell positions are not synchronized or Changes during scroll. #381

Open MayankChowdhary opened 3 years ago

MayankChowdhary commented 3 years ago
    //first set the data to the adpater
    userList = getInvoiceData()
     mTableAdapter!!.setUserList(userList)

//then please fix the column width after setting data

    mTableView!!.setColumnWidth(0,500)
    mTableView!!.setColumnWidth(1,300)
    mTableView!!.setColumnWidth(2,300)
    mTableView!!.setColumnWidth(3,400)
    mTableView!!.setColumnWidth(4,200)
    mTableView!!.setColumnWidth(5,200)
    mTableView!!.setColumnWidth(6,200)
    mTableView!!.setColumnWidth(7,200)
    mTableView!!.setColumnWidth(8,200)

it will completely fix the cell position issue during scroll.. Thanks