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

Use AlphabetIndexer with MultiChoiceBaseAdapter #9

Closed
lakeba opened this issue Jun 3, 2013 · 4 comments
Closed

Use AlphabetIndexer with MultiChoiceBaseAdapter #9

lakeba opened this issue Jun 3, 2013 · 4 comments

Comments

@lakeba
Copy link

lakeba commented Jun 3, 2013

Any chance to use the AlphabetIndexer with MultiChoiceBaseAdapter ?

@ManuelPeinado
Copy link
Owner

As far as I know AlphabetIndex must be used with a cursor, so you'll have to use MultiChoiceSimpleCursorAdapter.

I've written a sample that demonstrates that this is in fact pretty easy:

https://github.com/ManuelPeinado/MultiChoiceAdapter/tree/master/sample/src/com/manuelpeinado/multichoiceadapter/demo/alphabetindexersample

@lakeba
Copy link
Author

lakeba commented Jun 4, 2013

I have implemented it also for MultiChoiceBaseAdapter, do you want me to merge it?

From: ManuelPeinado [mailto:notifications@github.com]
Sent: lunedì 3 giugno 2013 23:23
To: ManuelPeinado/MultiChoiceAdapter
Cc: Giuseppe
Subject: Re: [MultiChoiceAdapter] Use AlphabetIndexer with MultiChoiceBaseAdapter (#9)

As far as I know AlphabetIndex must be used with a cursor, so you'll have to use MultiChoiceSimpleCursorAdapter.

I've written a sample that demonstrates that this is in fact pretty easy:

https://github.com/ManuelPeinado/MultiChoiceAdapter/tree/master/sample/src/com/manuelpeinado/multichoiceadapter/demo/alphabetindexersample


Reply to this email directly or view it on GitHub #9 (comment) . https://github.com/notifications/beacon/mWSZf_BQ3zaOqVGxn5p45q9W-s6-mTfw4Xr5D7XeVUbtpLxXEAqLkrDfBHlHcurU.gif

@ManuelPeinado
Copy link
Owner

There's something I don't understand. If you don't have a cursor, what do you pass AlphabetIndexer#setCursor? And if you do have a cursor, why don't you use a MultiChoiceSimpleCursorAdapter?

@lakeba
Copy link
Author

lakeba commented Jun 4, 2013

I have just implemented SectionIndexer

Attached my class

It work a charm.

From: ManuelPeinado [mailto:notifications@github.com]
Sent: martedì 4 giugno 2013 08:52
To: ManuelPeinado/MultiChoiceAdapter
Cc: Giuseppe
Subject: Re: [MultiChoiceAdapter] Use AlphabetIndexer with MultiChoiceBaseAdapter (#9)

There's something I don't understand. If you don't have a cursor, what do you pass AlphabetIndexer#setCursor? And if you do have a cursor, why don't you use a MultiChoiceSimpleCursorAdapter?


Reply to this email directly or view it on GitHub #9 (comment) . https://github.com/notifications/beacon/mWSZf_BQ3zaOqVGxn5p45q9W-s6-mTfw4Xr5D7XeVUbtpLxXEAqLkrDfBHlHcurU.gif

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