matteoli wrote: > I am using a ListView with a CursorAdapter connected to. Now I want to > add some special list items to the list that are not part of the > cursor. Is it possible to do this? Or do I have to use a more generic > ListView and implement the database adapter by my own? If I invoke the > ListView's addView method, there is an Exception thrown, which says > that in case of an AdapterView this method is not available.
If your additional list items appear at the top or bottom of the list, use addHeaderView() or addFooterView(), respectively. Otherwise, you can try my MergeAdapter: https://github.com/commonsguy/cwac-merge/tree I have a blog post that also describes this up on AndroidGuys: http://androidguys.com/?p=6154 -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy _The Busy Coder's Guide to *Advanced* Android Development_ Version 1.0 Available! --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---

