title: Android - Disposing of Listeners in an Adapter
body: <p>I have a few ListViews driven by custom Adapters (ArrayAdapter and CursorAdapter). In the getView() and bindView() functions of the adapters, I'm creating a row in the ListView and setting a Listener to a particular UI element in the row.</p>
  
  <p>Currently, as the ListView rows are sent to the Recycler the listener is still hooked up so the memory is never released. I don't see a callback for when the row is being disposed of that would give me an opportunity to detach the listener before the row is recycled.</p>
  
  <p>How do I manage the listener in the ListView rows? I only have the getView()/bindView() to add the listener to the row, but nothing to remove them.</p>
  
  <p>Thanks</p>