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

Table still reload data #415

Open asamarsal opened 1 month ago

asamarsal commented 1 month ago

Table still reload data when i scroll table to end of table and back to start of table.

I dont want the table reload again when i reach end of the table.

This is my table :

Normal b3a06648a94ea54979f37adbc81514cc

When i scroll to end b6a13f72aee2ed97002fc0090672276b

When i scroll back to start 7d55106662cc6b2021f93a1a9fd19a09

I know my code will remove index 0 from array artnrHeader. so, i dont want my table reload again when i scroll to end

My code : if (columnPosition == 0) { if (!artnrHeader.isEmpty()) { int artnr = artnrHeader.get(0); bezeich = artikelMap.get(artnr); artnrHeader.remove(0); } cellViewHolder.cell_textview.setText(bezeich.trim()); cellViewHolder.cell_textview.setGravity(Gravity.START | Gravity.CENTER_VERTICAL); }

Thanks