Update model and refresh the view

Put problem concerning Views, Layouts and other XML-Resources (like AndroidManifest) here.

Update model and refresh the view

Postby MoxFulder » Sat Jun 06, 2009 11:09 pm

Hi there,

I follow the Checkboxlist tutorial and it works great. Nevertheless, I don't know the clean way to implement something that is easy.

When I long click on a row (view that contains checkbox and text), I want to remove that row. I have a longClick listener which ask a custom service to remove the row. After that, I have to manually ask the adapter (use getParent then cast to ListActvity, get the adapter and cast to my adapter type) to reload the data from my custom service and the view gets refreshed.

I don't think it is the right way to do that. I don't know where to ask my custom service and how to notify the adapter that the data have been changed.

Have you some examples or some ideas for this problem ?
Thanks a lot !
Posts: 3
Joined: Sat Jun 06, 2009 11:04 pm


Return to View, Layout & Resource Problems

Who is online

Users browsing this forum: No registered users and 5 guests