naver / android-pull-to-refresh

Pull To Refresh Views for Android! v3.2.3
Apache License 2.0
310 stars 82 forks source link

How can i get the same animation when Pulling Up from the bottom in ListView? #23

Closed 01joy closed 10 years ago

01joy commented 10 years ago

Hello everyone, It's a great lib, I have included in my project, I wonder how can i get the same animation when Pulling Up from the bottom in ListView.

  1. I know when pulling up from the bottom, setOnLastItemVisibleListener triggered.
  2. So I pasted these code:
            mListItems.addLast("Added after refresh...");
            mAdapter.notifyDataSetChanged();

            // Call onRefreshComplete when the list has been refreshed.
            mPullRefreshListView.onRefreshComplete();

to onLastItemVisible.

  1. It did work, but I can't get the loading animation.
  2. How do i do.
01joy commented 10 years ago

Hey guys, I have figured it out, Just change OnRefreshListener to OnRefreshListener2 in setOnRefreshListener, and then override onPullDownToRefresh onPullUpToRefresh methods. If you can read Chinese, see this.

ncoolz commented 10 years ago

Cool. Thanks for sharing the solution.