Knowing when a View in a ListView has gone off the screen?

后端 未结 4 1079
醉梦人生
醉梦人生 2020-12-30 23:36

I have Googled this but can\'t find an answer, so here goes...

I have a ListView that displays some text and an image. The underlying adapter recycles the views for

4条回答
  •  情书的邮戳
    2020-12-31 00:36

    There is actually a simpler way to do that, you can use a listener :

    mListView.setRecyclerListener(new AbsListView.RecyclerListener() {
    @Override
        public void onMovedToScrapHeap(View view) {
      }
    });
    

提交回复
热议问题