只要将PullToRefreshListView源码中的:

@Override

protected void onRefreshing(final boolean doScroll) {

/**

 * If we're not showing the Refreshing view, or the list is empty, the

 * the header/footer views won't show so we use the normal method.

 */

 

// ListAdapter adapter = mRefreshableView.getAdapter();

// if (!mListViewExtrasEnabled || !getShowViewWhileRefreshing() || null == adapter || adapter.isEmpty()) {

// super.onRefreshing(doScroll);

// return;

// }

下面注释的部分注释掉再在想刷新的地方加上:

mPullToRefreshListView.setRefreshing(true);

就行了

相关文章:

  • 2022-12-23
  • 2022-02-22
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-11-24
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-07-10
  • 2021-10-14
相关资源
相似解决方案