sunlightlabs/congress — Issue #478: Unified arrayadapter superclass template
Author: klondike
Created: 2011-11-15 15:41:29+00:00
State: open

It would take care of:

Defining a "Date" subitem, and require the subclass to define a method to map items to their date. It would take care of inserting the date wherever it changed. It would inflate the date view and insert the date into it. Subclasses could optionally override the dateformat or even the whole inflation.

Optionally accept an array of IDs to highlight, as long as the subclass has overridden the method to map an item to its ID. It would take the getView method that the subclass implements and insert it into a frame inside of a bigger view, with room for a highlight effect (depending on how the highlight effect should be implemented).

In future, we could implement the "sticky header" effect on dates, or whatever, all through this adapter.

This would seem to be applicable both to activities and fragments, and wouldn't require full fragmentization of Roll-, Bill-, and LegislatorList.