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

Index is not generated if listview has a header view. #8

Open
shivakumars opened this issue Aug 6, 2013 · 1 comment
Open

Index is not generated if listview has a header view. #8

shivakumars opened this issue Aug 6, 2013 · 1 comment

Comments

@shivakumars
Copy link

Hi,

Everything works well, Thanks for the library. But Once i used addHeaderView(View) and added a header to my list view, i cannot see the index on right side. Can u please help me on this?

@jingyichushi
Copy link

public void setAdapter(Adapter adapter) {
Log.d(TAG, "setAdapter() got called..." + adapter.getClass().getName());
if (adapter instanceof WrapperListAdapter) {
adapter = ((WrapperListAdapter) adapter).getWrappedAdapter();
}
Log.d(TAG, "After getWrappedAdapter() got called..."
+ adapter.getClass().getName());
if (adapter instanceof SectionIndexer) {
Log.d(TAG, "The adapter implement SectionIndexer Interface");
mIndexer = (SectionIndexer) adapter;
mSections = (String[]) mIndexer.getSections();
}
}

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