我希望能够判断一个观点是在我的列表视图,这是由填充一个自定义的CursorAdapter可见。我怎样才能做到这一点?
I want to be able to tell if a view is visible in my listview, which is populated by a custom CursorAdapter. How can I do this?
您可以检查一个给定的位置是否可见,使用getFirstVisiblePosition()和getChildCount()。
You can check whether a given position is visible, using getFirstVisiblePosition() and getChildCount().