Java 类android.widget.AbsListView.RecyclerListener 实例源码

项目:mc_backup    文件:SwipeDismissListViewTouchListener.java   
/**
 * 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);
            }
        }
    };
}
项目:FMTech    文件:PeopleListRowAsCardView.java   
public final void onMovedToScrapHeap(View paramView)
{
  if ((this.h instanceof AbsListView.RecyclerListener)) {
    ((AbsListView.RecyclerListener)this.h).onMovedToScrapHeap(paramView);
  }
  this.g.setBackgroundDrawable(null);
}
项目:androidclient    文件:ConversationListAdapter.java   
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();
            }
        }
    });
}
项目:androidclient    文件:ContactsListAdapter.java   
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();
            }
        }
    });
}
项目:androidclient    文件:MessageListAdapter.java   
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();
            }
        }
    });
}
项目:Chatting-App-    文件:ConversationListAdapter.java   
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();
            }
        }
    });
}
项目:Chatting-App-    文件:ContactsListAdapter.java   
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();
            }
        }
    });
}
项目:Chatting-App-    文件:MessageListAdapter.java   
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();
            }
        }
    });
}
项目:AndroidViewHelper    文件:AbsListViewWrapper.java   
/**
* @see AbsListView#setRecyclerListener(RecyclerListener)
*/
 public W setRecyclerListener(RecyclerListener listener) {
     mView.setRecyclerListener(listener);
     return (W) this;
 }
项目:FMTech    文件:cjx.java   
public void onMovedToScrapHeap(View paramView)
{
  if ((paramView instanceof AbsListView.RecyclerListener)) {
    ((AbsListView.RecyclerListener)paramView).onMovedToScrapHeap(paramView);
  }
}
项目:FMTech    文件:cas.java   
public final void onMovedToScrapHeap(View paramView)
{
  if ((paramView instanceof AbsListView.RecyclerListener)) {
    ((AbsListView.RecyclerListener)paramView).onMovedToScrapHeap(paramView);
  }
}