Android Gridview OnScrollListener ScrollUp和ScrollDown事件
我有gridview,我需要做两件事: 当我向下滚动时,我想找到最后一个可见位置,例如int index = GridView.getLastVisiblePosition(); 当我向上滚动时,我想找到第一个可见位置,例如int index = GridView.getFirstVisiblePosition(); 我知道我可以使用以下代码,但我不确定如何以及在何处为ScrollUp和Scrol