Closed ashish-d-hh closed 3 years ago
Solved it using following code:
private lateinit var preferencesHandler: PreferencesHandler
private lateinit var preferencesOfPosition: Preferences
To save current position of scroll, use:
preferencesOfPosition= preferencesHandler.savePreferences()
To revert back to the save scroll, use
preferencesHandler.loadPreferences(preferencesOfPosition)
Thanks @evrencoskun for this great feature. 👍
I am looking for a way, where I update some value in the cell of a column, then I hit an API to save that change, and then reload data from API and then fill the table view again with it.
Currently what happens is if I am at column 30th, then on refreshing data I am taken back to 0th column
@evrencoskun