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.14k stars 459 forks source link

The rowHeader was unable to align with cells when slided quickly #180

Open yyy000112 opened 5 years ago

yyy000112 commented 5 years ago

The rowHeader was unable to align with cells when slided quickly

evrencoskun commented 5 years ago

Hi @yyy000112 Row header width is a constant value which is determined by you. So, you need to set the proper value.

yyy000112 commented 5 years ago

@evrencoskun I have set the width, this issue like #153

evrencoskun commented 5 years ago

This bug has been already fixed. However, the latest version has no this fix yet. So, you need to wait for the next release or use the sources as a library.

yyy000112 commented 5 years ago

@evrencoskun

tim 20181102162047 So where can I download the sources? The v0.8.8-alpha?

heyjude992241 commented 5 years ago

Hi @yyy000112 Row header width is a constant value which is determined by you. So, you need to set the proper value.

@evrencoskun how to set the header width? I set it in the view xml but no effect

ReejeshPK commented 3 years ago

It is also good to have a look at the number of columns. The number of columns should match the number of cells in each row. It can be easily tested with this piece of code:

 var columnCount=0;
        for(i in 0 until 10){
            mRowHeaderList.add(RowHeader("$i"))
            val tempLiss:ArrayList<Cell> = ArrayList()
            for(j in 0 until 15){
                if(i==0){
                    //add it once for a row alone
                    columnCount++
                    mColumnHeaderList.add(ColumnHeader("Column $columnCount"))
                }
                tempLiss.add(Cell("[$i][$j]"))
            }
            mCellList.add(tempLiss)
        }
        myTableViewAdapter.setAllItems(mColumnHeaderList, mRowHeaderList, mCellList);

If this piece of code works well, with scrolling, then the problem is mismatch in size of columns and cells.