{"issue":{"state":"open","pull_request":{"diff_url":null,"html_url":null,"patch_url":null},"milestone":null,"user":{"avatar_url":"https://secure.gravatar.com/avatar/5baca72f595aed11b919133fe2483a79?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"5baca72f595aed11b919133fe2483a79","url":"https://api.github.com/users/klondike","login":"klondike","id":4592},"assignee":null,"updated_at":"2011-11-15T15:41:29Z","labels":[],"closed_at":null,"comments":0,"url":"https://api.github.com/repos/sunlightlabs/congress/issues/478","body":"It would take care of:\r\n\r\nDefining 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.\r\n\r\nOptionally 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).\r\n\r\nIn future, we could implement the \"sticky header\" effect on dates, or whatever, all through this adapter. \r\n\r\nThis would seem to be applicable both to activities and fragments, and wouldn't require full fragmentization of Roll-, Bill-, and LegislatorList.","html_url":"https://github.com/sunlightlabs/congress/issues/478","title":"Unified arrayadapter superclass template","number":478,"id":2245422,"created_at":"2011-11-15T15:41:29Z"},"action":"opened"}