I want to set an array adapter, and cursor adapter, for one spinner. Is it possible?
1
-
No it's not. How would you propose that worked? What exactly are you trying to do?– FalmarriDec 31, 2010 at 9:11
Add a comment
|
1 Answer
Not directly, but you can take a look to commonsguy's MergeAdapter, an Adapter implementation that accept multiple adapters and merges them into one single Adapter that you can pass to your spinner, if that's what you are looking for...
-
i used two adapter arrayadapter and cursor adapter how i merge this two adapter and set this merge adapter for spinner Dec 31, 2010 at 9:44
-
in the library page and package there is documentation. basically you install the library, then you construct the MergeAdapter, you call addAdapter method to add as many adapters as you need, and then you call spinner's setAdapter passing the mergeAdapter...– maid450Dec 31, 2010 at 9:49