I ran into the situation that I need a way to edit the data of list-view item from another activity. I can handle the click event on each item, then edit it on the fly. However, I still prefer to handle all the editing in a separate activity. My listview item is customized from BaseAdapter.
Here is my main page,
Each item within the ListView
, contains two other TextView
. When the I hit the menu setting, it will go to another activity where I can edit and update the information:
I'm currently having two solutions in mind. Either retrieving data from the previous activity and update the whole ListView
(which I think it's kinda expensive in the case user just edit one item). Or I can just get rid of the ListView
and create a bunch TextView in the xml, by doing this I can just reference to each TextView
by their id. So my question is, which way is preferred in this case? Any suggestion would be greatly appreciated.