Open asamarsal opened 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
When i scroll to end
When i scroll back to start
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
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
When i scroll to end
When i scroll back to start
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