/** * Returns a {@link android.widget.AbsListView.RecyclerListener} to be added to the * {@link ListView} using {@link ListView#setRecyclerListener(RecyclerListener)}. */ public AbsListView.RecyclerListener makeRecyclerListener() { return new AbsListView.RecyclerListener() { @Override public void onMovedToScrapHeap(View view) { final Object tag = view.getTag(R.id.original_height); // To reset the view to the correct height after its animation, the view's height // is stored in its tag. Reset the view here. if (tag instanceof Integer) { ViewHelper.setAlpha(view, 1f); ViewHelper.setTranslationX(view, 0); final ViewGroup.LayoutParams lp = view.getLayoutParams(); lp.height = (int) tag; view.setLayoutParams(lp); view.setTag(R.id.original_height, null); } } }; }
public final void onMovedToScrapHeap(View paramView) { if ((this.h instanceof AbsListView.RecyclerListener)) { ((AbsListView.RecyclerListener)this.h).onMovedToScrapHeap(paramView); } this.g.setBackgroundDrawable(null); }
public ConversationListAdapter(Context context, Cursor cursor, ListView list) { super(context, cursor, false); mFactory = LayoutInflater.from(context); list.setRecyclerListener(new RecyclerListener() { public void onMovedToScrapHeap(View view) { if (view instanceof ConversationListItem) { ((ConversationListItem) view).unbind(); } } }); }
public ContactsListAdapter(Context context, ListView list) { super(context, null, false); mFactory = LayoutInflater.from(context); list.setRecyclerListener(new RecyclerListener() { public void onMovedToScrapHeap(View view) { if (view instanceof ContactsListItem) { ((ContactsListItem) view).unbind(); } } }); }
public MessageListAdapter(Context context, Cursor cursor, Pattern highlight, ListView list, AudioPlayerControl audioPlayerControl) { super(context, cursor, false); mFactory = LayoutInflater.from(context); mHighlight = highlight; mAudioPlayerControl = audioPlayerControl; list.setRecyclerListener(new RecyclerListener() { public void onMovedToScrapHeap(View view) { if (view instanceof MessageListItem) { ((MessageListItem) view).unbind(); } } }); }
public ConversationListAdapter(Context context, Cursor cursor, ListView list) { super(context, cursor, false); mFactory = LayoutInflater.from(context); list.setRecyclerListener(new RecyclerListener() { public void onMovedToScrapHeap(View view) { if (view instanceof MessageListItem) { ((ConversationListItem) view).unbind(); } } }); }
public ContactsListAdapter(Context context, ListView list) { super(context, null, false); mFactory = LayoutInflater.from(context); list.setRecyclerListener(new RecyclerListener() { public void onMovedToScrapHeap(View view) { if (view instanceof MessageListItem) { ((ContactsListItem) view).unbind(); } } }); }
public MessageListAdapter(Context context, Cursor cursor, Pattern highlight, ListView list) { super(context, cursor, false); mFactory = LayoutInflater.from(context); mHighlight = highlight; list.setRecyclerListener(new RecyclerListener() { public void onMovedToScrapHeap(View view) { if (view instanceof MessageListItem) { ((MessageListItem) view).unbind(); } } }); }
/** * @see AbsListView#setRecyclerListener(RecyclerListener) */ public W setRecyclerListener(RecyclerListener listener) { mView.setRecyclerListener(listener); return (W) this; }
public void onMovedToScrapHeap(View paramView) { if ((paramView instanceof AbsListView.RecyclerListener)) { ((AbsListView.RecyclerListener)paramView).onMovedToScrapHeap(paramView); } }
public final void onMovedToScrapHeap(View paramView) { if ((paramView instanceof AbsListView.RecyclerListener)) { ((AbsListView.RecyclerListener)paramView).onMovedToScrapHeap(paramView); } }