Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DraggedDrawer with ListView doesn't seem to refresh when ListView changes #2

Open
sanjeev82 opened this issue Sep 28, 2015 · 2 comments

Comments

@sanjeev82
Copy link

The Drawers work very well, but I had a problem while refreshing the layout. They contain a Listview which is rendered only the first time when the Activity is created. When the Listview is refreshed, it does not reflect on the Drawer ( it becomes empty).

I have tried calling postInvalidate() and requestLayout() on the Drawers but it did not help.

Any pointers would be greatly appreciated!

Thanks for this library.

@sanjeev82
Copy link
Author

I found that the ListView in the drawers refresh only if the drawer is opened. Which kind of solves my problem. I open the drawer, refresh the listviews and close it.

@kedzie
Copy link
Owner

kedzie commented Oct 4, 2015

There is an option in the drawers which control the visibility of the content of a closed drawer. It can either be INVISIBLE or GONE. Try using INVISIBLE, which is NOT the default. I imagine if a view is GONE android will not include it in the layout refresh..

I don't remember the exact attribute but you can set it in the XML layout on each drawer I believe.

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

No branches or pull requests

2 participants