I have a ListView
. I updated its adapter, and call notifydatasetchanged()
. I want to wait until the list finishes drawing and then call getLastVisiblePosition() on the list to check the last item.
Calling getLastVisiblePosition()
right after notifydatasetchanged()
doesn't work because the list hasnt finished drawing yet.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…