@Override public void bindView(View view, Context context, Cursor cursor) { if (!(view instanceof ConversationListItem)) { Log.e(TAG, "Unexpected bound view: " + view); return; } ConversationListItem headerView = (ConversationListItem) view; Conversation conv = Conversation.from(context, cursor); headerView.bind(context, conv); }
public void onMovedToScrapHeap(View view) { ConversationListItem headerView = (ConversationListItem) view; headerView.unbind(); }