Skip to content
This repository has been archived by the owner on Jun 5, 2018. It is now read-only.

Spinner on actionbar and listview is blank after notifydatasetchanged() #824

Open
0iron0 opened this issue Apr 15, 2014 · 1 comment
Open

Comments

@0iron0
Copy link

0iron0 commented Apr 15, 2014

I met a same issue(#764).

I have a spinner(navigation) as custom view on actionbar and a listview to show some doucuments data. when I change navigation(onItemSelected()), it will tigger updateNavigation() to update data source for navigation(notifyDatasetChanged()), and clear the data of listview(notifyDatasetChanged() to show empty view), then it will trigger a runnable to get new data of folder and show a loading dialog, when message return to handler, it will invoke notifyDatasetChanged() for listview to show new data.

But, I got a empty view because it seems getView() is not invoked.

And I tried build-in spinner, it is no this issue.

Same as http://stackoverflow.com/questions/21282964/notifiydatasetchanged-makes-listview-disappear-until-touch/22411606#22411606

@0iron0
Copy link
Author

0iron0 commented Apr 15, 2014

I found if I call notifyDatasetChanged() in onItemSelected() callback, then the listview cannot be refresh anymore.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant