android - Get an event when a ListView item is visible or not -
i wondering if there kind of onvisibilychangelistener views in listview because have method called every time listview item change visibility.
i know onpredrawlistener check if view gonna visible. how can check if view gets scrolled out of visible screen area?
you can implement onscrolllistener
listview , override onscrollstatechanged(abslistview view, int scrollstate)
, onscroll(abslistview view, int firstvisibleitem, int visibleitemcount, int totalitemcount)
, listview item visible.
onscroll(abslistview view, int firstvisibleitem, int visibleitemcount, int totalitemcount)
method know row of listview visible using value of firstvisibleitem
, visibleitemcount
.
Comments
Post a Comment