SafeDK
Sign upAdd Your SDK

Adding Bits o' Functionality

Provides an AdapterWrapper, a simple wrapper class that, by default, delegates all ListAdapter methods to a wrapped ListAdapter. The idea is that you can extend AdapterWrapper and only override certain ListAdapter methods, with the rest handled via the wrapped adapter.

Android comes with a few "wrapper" classes, like CursorWrapper, that make it relatively easy for you to add just a bit of functionality to an existing object. The wrapper delegates all behaviors to the wrapped object; you just override the specific behaviors you need. This works well in cases where there are many possible underlying implementations, so you could not robustly accomplish these ends by subclassing.

Android lacks such a wrapper for ListAdapter, though. There is a WrappedListAdapter entry in the SDK, but it is an interface, not an implementation. 

So, CWAC offers an AdapterWrapper to fill this void.

Extend AdapterWrapper and override whatever adapter-related methods you wish. By default, all adapter methods delegate to the wrapped adapter. Your code can get at the wrapped adapter by calling getWrappedAdapter().

SDK for Android

updated for Android Studio 1.0

Documentation

Selected Apps that use this SDK

F5xv4czt4heupt9ypsu87jq m6ccqfrqhzadon0l97ejcleg4lxscuttvqe3bh6bxnkkf8hxqlcr vft

Gumtree: Buy and Sell locally

Xx4nwqzrurm04sr sqk7n1d4iv28yohppzfzspvqptfv5hrhbnies af72angshsyznjtbejaxlteqhr

HP Print Pass

Eoq0v5kig oxcblovwfp7mrdk16snrrics jc4wf6t08y5ejabnpaksipcatgxc7ghskycfigl9tkld6

Numler - Caller ID & Blocker

Wgvrz1vflsas46c0cahuuqvh0yl ifvu1woq82wkdhh xp7qu8lm6koozon soyjzhqcwrz5rkzguyse

Walk with Map My Walk

Buokjrlxjawuadpdr5iuaw6wk 9eug0bqjyn2nlxft4it6kjjdpa1i ke64dc9bqhlfjjsp500sf yrf

BBC Worldwide Trade Events

Wzgss2zpjlpmpr3sf5gs8h1sv4gva8bo7ngmdczzfmighkizpb8gbmzqsyn7y c7vgd9qhgduhxkbyxu

Viki: Free TV Drama & Movies

79wfw1kwp8ith  zm3kr0okmqtkj6lim2sjrvb qf6a2gsokkw6lx7gv z3ltcfwxufdsw604 j5emxi

Groupon - Shop Deals & Coupons

Similar SDKs

MORE

Reviews

Rate Now
0
0
0
0
0
0

Start a new discussion about CWAC AdapterWrapper

×
0
/1000

More from this Developer

MORE
Login