Open yyy000112 opened 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 I have set the width, this issue like #153
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
So where can I download the sources? The v0.8.8-alpha?
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
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.
The rowHeader was unable to align with cells when slided quickly