TableView icon indicating copy to clipboard operation
TableView copied to clipboard

The rowHeader was unable to align with cells when slided quickly

Open yyy000112 opened this issue 7 years ago • 6 comments

The rowHeader was unable to align with cells when slided quickly

yyy000112 avatar Nov 02 '18 06:11 yyy000112

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

evrencoskun avatar Nov 02 '18 06:11 evrencoskun

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

yyy000112 avatar Nov 02 '18 07:11 yyy000112

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.

evrencoskun avatar Nov 02 '18 08:11 evrencoskun

@evrencoskun

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

yyy000112 avatar Nov 02 '18 08:11 yyy000112

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

heyjude992241 avatar Feb 26 '19 09:02 heyjude992241

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.

ReejeshPK avatar Jun 17 '21 15:06 ReejeshPK