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

Get original ListAdapter #11

Closed
pushbit opened this issue Jan 12, 2015 · 3 comments
Closed

Get original ListAdapter #11

pushbit opened this issue Jan 12, 2015 · 3 comments

Comments

@pushbit
Copy link

pushbit commented Jan 12, 2015

It would be nice to be able to get back the ListAdapter that we provide in setAdapter. Currently we would have to use something like
(SomeAdapter) ((WrapperListAdapter) getAdapter()).getWrappedAdapter()
which is a bit long. Maybe GridViewWithHeaderAndFooter could have a new method, getListAdapter.

@liaohuqiu
Copy link
Owner

ListView and GridView do not support that, do you think it's necessary?

@pushbit
Copy link
Author

pushbit commented Jan 13, 2015

It's not necessary. It would just be a convenience.

@liaohuqiu
Copy link
Owner

OK, I will add it. Thank you for your suggestion.

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