TableView - add row dynamically
Hi all,
I have an Android application that can dynamically load data from a webservice and append it to a tableView. That works in 0.8.x without any problem.
I'm doing the migration of my app to 1.0 and I have found some problem with appendRow method. It seems not to work after the tableView is added (initialized) to the current window. Here is the prototype of my code that no longer works in 1.0:
1 Answer
-
Accepted Answer
The tableview modification APIs are implemented as of 1.1.0. If you're only adding a few rows your technique is fine. I would recommend that if you're changing a lot of data, you'll get better response building the new data array and using setData on it. It will prevent unnecessary model change events being fired in the native sub-system.