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

setEmptyView don't work when use addFooterView #27

Closed
PankovSerge opened this issue May 15, 2015 · 2 comments
Closed

setEmptyView don't work when use addFooterView #27

PankovSerge opened this issue May 15, 2015 · 2 comments
Assignees

Comments

@PankovSerge
Copy link

Empty view not showing if you use addFooter view, no exceptions.

@liaohuqiu liaohuqiu self-assigned this May 16, 2015
@PankovSerge
Copy link
Author

Add emptyView use a isEmpty() adapter method. When we add footer, that method don't return true, so solution is a in HeaderViewGridAdapter:

@Override
public boolean isEmpty() {
    //boolean empty = (mAdapter == null || mAdapter.isEmpty()) && getHeadersCount() == 0 && getFootersCount() == 0;
    boolean empty = (mAdapter == null || mAdapter.isEmpty());
    return empty;
}

@liaohuqiu
Copy link
Owner

👍 thank you.

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