I'm trying to create a list with headers above a grouping of items. I was looking at SeperatedListAdapter available here: http://jsharkey.org/blog/2008/08/18/separating-lists-with-headers-in-android-09/ but I ran into an error (ERROR/AndroidRuntime(2025):
java.lang.IllegalStateException: ArrayAdapter requires the resource ID to be a TextView
)
Now I'm looking into more options including making a new one. Do you guys have any hints?
Thanks, Bryon
AFAIK, Mr. Sharkey's code works just fine. You may be using the wrong ArrayAdapter
constructor.
You can also use my MergeAdapter
to achieve the same ends.
That's how I solved the sectioning in ListViews with an ArrayAdapter http://bartinger.at/listview-with-sectionsseparators/
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With