listView滚动事件 实现接口: android.widget.AbsListView.OnScrollListener Interface definition for a callback to be invoked when the list or grid has been scrolled. 实现接口的抽象方法 public void onScrollStateChanged(AbsListView view, int scrollState) public void onScro…
给listview设置一个OnScrollListener就可 ListView.OnScrollListener scrollListener = new ListView.OnScrollListener() { @Override public void onScrollStateChanged(AbsListView view, int scrollState) { switch (scrollState) { case OnScrollListener.SCROLL_STATE_IDL…
ListView滚动 1.要用到一个监听事件是:setOnScrollListener(); API解释是: Set the listener that will receive notifications every time the list scrolls. Parameters:l the scroll listener 2.它里面包含了两个方法: 一个是:onScrollStateChanged(AbsListView view, int scrollState),用来表明ListVi…