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
1.为了实现类似IOS点击状态栏,列表回滚到顶部的功能(要平滑滚动效果),android上点击一个按钮或是图片什么的也可以让listview一次性滚动到顶部(滑动太多页时,一次可能滚不到顶部,使用handler定时监听,继续滚动,直至回到顶部) public static void scrollToListviewTop(final AbsListView listView) { listView.smoothScrollToPosition(0); final
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