tgai
tgai

Reputation: 1115

Changing the content of a ListView (Android)

I have added a menu to ListView Activity and wanted to allow the user to select the information that would be displayed in the ListView. So for example:

Is onResume() executed after the menu is closed? I would test this but I am not currently home. What is the best way to do this?

Thanks, Rob

Upvotes: 0

Views: 739

Answers (1)

CaseyB
CaseyB

Reputation: 25058

No, OnResume is not called when the menu is closed. What you want to do is put the code that swaps out the information in the adapter in the OnMenuItemSelected method.

Upvotes: 1

Related Questions