how to know from adapter if the item of ListView is visible or not?

后端 未结 3 1715
终归单人心
终归单人心 2021-02-19 15:00

I have an adapter that connected to ListView, e.g.

mJournalAdapter = new JournalAdapter();
journalEntryList.setAdapter(mJournalAdapter);

and I

3条回答
  •  深忆病人
    2021-02-19 15:28

    You can use getFirstVisiblePosition() will give you the first visible Item in the ListView, so you can use that in your case.

提交回复
热议问题