java - Correct way to "merge" two custom listview adapters -
i'm using custom listview adapter connect listview database. i'd add endless list functionality listview. i've found custom listview adapter here https://github.com/commonsguy/cwac-endless implements endless functionality i'm looking for.
now what's ideal way integrate these 2 adapters? should make current listview adapter sub-class of endless one? i.e. baseadapter -> endlesslistadapter -> mycustomlistadapter. work? they'll duplicate overridden methods.
have downloaded demo app of cwac-endless? have demo, , demo answer question, have class called demoadapter overrides endlessadapter. :) also, take @ this
"to use endlessadapter, need create subclass control endlessness, specifying view use "loading" placeholder, , updating placeholder actual row once data has been loaded."
Comments
Post a Comment